Skip to content
GitLab
Erkunden
Anmelden
Registrieren
Primärnavigation
Suchen oder aufrufen …
Projekt
erp
Verwalten
Aktivität
Mitglieder
Labels
Planen
Tickets
20
Ticketübersichten
Meilensteine
Wiki
Code
Merge Requests
0
Repository
Branch
Commits
Tags
Repository-Diagramm
Revisionen vergleichen
Build
Pipelines
Aufgaben
Pipeline-Zeitpläne
Artefakte
Bereitstellung
Releases
Betreiben
Umgebungen
Überwachen
Vorfälle
Service-Desk
Analysieren
Wertschöpfungskettenanalyse
Mitwirkenden-Analyse
CI/CD-Analyse
Repository-Analysen
Hilfe
Hilfe
Support
GitLab-Dokumentation
GitLab-Pläne vergleichen
Community-Forum
Zu GitLab beitragen
Feedback geben
Tastenkürzel
?
Code-Schnipsel
Gruppen
Projekte
Show more breadcrumbs
QUIQQER
erp
Commits
260c74a6
Bestätigt
Commit
260c74a6
erstellt
vor 8 Monaten
von
Henning Leutz
Dateien durchsuchen
Optionen
Downloads
Patches
Einfaches Diff
fix: output printing - with entity plugin param
Übergeordneter
17983bd4
No related branches found
Branches enthält Commit
No related tags found
Tags enthält Commit
2 Merge Requests
!140
Update 'next-4.x' with latest changes from 'main'
,
!136
fix: output printing - with entity plugin param
Pipeline
#10599
mit Warnungen bestanden mit Phase
Phase:
in 20 Sekunden
Änderungen
3
Pipelines
1
Leerzeichenänderungen ausblenden
Inline
Nebeneinander
3 geänderte Dateien
ajax/output/getEntityData.php
+7
-3
7 Ergänzungen, 3 Löschungen
ajax/output/getEntityData.php
bin/backend/controls/OutputDialog.js
+9
-1
9 Ergänzungen, 1 Löschung
bin/backend/controls/OutputDialog.js
src/QUI/ERP/Processes.php
+1
-1
1 Ergänzung, 1 Löschung
src/QUI/ERP/Processes.php
werden angezeigt
mit
17 Ergänzungen
und
5 Löschungen
ajax/output/getEntityData.php
+
7
−
3
Zeige Datei @
260c74a6
...
...
@@ -13,13 +13,17 @@
QUI
::
$Ajax
->
registerFunction
(
'package_quiqqer_erp_ajax_output_getEntityData'
,
function
(
$entityId
,
$entityType
)
{
function
(
$entityId
,
$entityType
,
$entityPlugin
)
{
$OutputProvider
=
ERPOutput
::
getOutputProviderByEntityType
(
Orthos
::
clear
(
$entityType
));
if
(
empty
(
$OutputProvider
))
{
return
false
;
}
if
(
empty
(
$entityPlugin
))
{
$entityPlugin
=
false
;
}
$hideSystemDefaultTemplate
=
false
;
try
{
...
...
@@ -38,7 +42,7 @@ function ($entityId, $entityType) {
}
$Processes
=
new
QUI\ERP\Processes
();
$Entity
=
$Processes
->
getEntity
(
$entityId
);
$Entity
=
$Processes
->
getEntity
(
$entityId
,
$entityPlugin
);
return
[
'email'
=>
$OutputProvider
::
getEmailAddress
(
Orthos
::
clear
(
$entityId
)),
...
...
@@ -47,6 +51,6 @@ function ($entityId, $entityType) {
'prefixedNumber'
=>
$Entity
->
getPrefixedNumber
()
];
},
[
'entityId'
,
'entityType'
],
[
'entityId'
,
'entityType'
,
'entityPlugin'
],
'Permission::checkAdminUser'
);
This diff is collapsed.
Zum Erweitern klicken.
bin/backend/controls/OutputDialog.js
+
9
−
1
Zeige Datei @
260c74a6
...
...
@@ -48,6 +48,7 @@ define('package/quiqqer/erp/bin/backend/controls/OutputDialog', [
options
:
{
entityId
:
false
,
// Clean entity ID WITHOUT prefix and suffix
entityType
:
false
,
// Entity type (e.g. "Invoice")
entityPlugin
:
false
,
comments
:
false
,
// Comments as array [must be readble by package/quiqqer/erp/bin/backend/controls/Comments]
...
...
@@ -161,6 +162,7 @@ define('package/quiqqer/erp/bin/backend/controls/OutputDialog', [
new
OutputMailEditor
({
entityId
:
self
.
getAttribute
(
'
entityId
'
),
entityType
:
self
.
getAttribute
(
'
entityType
'
),
entityPlugin
:
self
.
getAttribute
(
'
entityPlugin
'
),
mailSubject
:
self
.
$Mail
.
subject
,
mailContent
:
self
.
$Mail
.
content
,
...
...
@@ -453,6 +455,7 @@ define('package/quiqqer/erp/bin/backend/controls/OutputDialog', [
src
:
URL_OPT_DIR
+
'
quiqqer/erp/bin/output/backend/print.php?
'
+
Object
.
toQueryString
({
id
:
entityId
,
t
:
self
.
getAttribute
(
'
entityType
'
),
ep
:
self
.
getAttribute
(
'
entityPlugin
'
),
oid
:
self
.
getId
(),
tpl
:
self
.
$Template
.
id
,
tplpr
:
self
.
$Template
.
provider
...
...
@@ -510,6 +513,7 @@ define('package/quiqqer/erp/bin/backend/controls/OutputDialog', [
src
:
URL_OPT_DIR
+
'
quiqqer/erp/bin/output/backend/download.php?
'
+
Object
.
toQueryString
({
id
:
entityId
,
t
:
self
.
getAttribute
(
'
entityType
'
),
ep
:
self
.
getAttribute
(
'
entityPlugin
'
),
oid
:
self
.
getId
(),
tpl
:
self
.
$Template
.
id
,
tplpr
:
self
.
$Template
.
provider
...
...
@@ -629,6 +633,7 @@ define('package/quiqqer/erp/bin/backend/controls/OutputDialog', [
'
package
'
:
'
quiqqer/erp
'
,
entityId
:
self
.
getAttribute
(
'
entityId
'
),
entityType
:
self
.
getAttribute
(
'
entityType
'
),
entityPlugin
:
self
.
getAttribute
(
'
entityPlugin
'
),
onError
:
reject
});
});
...
...
@@ -646,6 +651,7 @@ define('package/quiqqer/erp/bin/backend/controls/OutputDialog', [
QUIAjax
.
get
(
'
package_quiqqer_erp_ajax_output_getTemplates
'
,
resolve
,
{
'
package
'
:
'
quiqqer/erp
'
,
entityType
:
self
.
getAttribute
(
'
entityType
'
),
entityPlugin
:
self
.
getAttribute
(
'
entityPlugin
'
),
onError
:
reject
});
});
...
...
@@ -664,7 +670,8 @@ define('package/quiqqer/erp/bin/backend/controls/OutputDialog', [
'
package
'
:
'
quiqqer/erp
'
,
entity
:
JSON
.
encode
({
id
:
self
.
getAttribute
(
'
entityId
'
),
type
:
self
.
getAttribute
(
'
entityType
'
)
type
:
self
.
getAttribute
(
'
entityType
'
),
plugin
:
self
.
getAttribute
(
'
entityPlugin
'
)
}),
template
:
JSON
.
encode
(
self
.
$Template
),
onError
:
reject
...
...
@@ -686,6 +693,7 @@ define('package/quiqqer/erp/bin/backend/controls/OutputDialog', [
'
package
'
:
'
quiqqer/erp
'
,
entityId
:
self
.
getAttribute
(
'
entityId
'
),
entityType
:
self
.
getAttribute
(
'
entityType
'
),
entityPlugin
:
self
.
getAttribute
(
'
entityPlugin
'
),
template
:
self
.
$Template
.
id
,
templateProvider
:
self
.
$Template
.
provider
,
mailSubject
:
self
.
$Mail
.
subject
,
...
...
This diff is collapsed.
Zum Erweitern klicken.
src/QUI/ERP/Processes.php
+
1
−
1
Zeige Datei @
260c74a6
...
...
@@ -66,7 +66,7 @@ public function getEntity($entityHash, $entityPlugin = false): ErpEntityInterfac
if
(
(
$entityPlugin
===
false
||
$entityPlugin
===
'quiqqer/invoice'
)
&&
class_exists
(
'QUI\ERP\Accounting\Invoice\Handle'
)
&&
class_exists
(
'QUI\ERP\Accounting\Invoice\Handle
r
'
)
)
{
try
{
return
QUI\ERP\Accounting\Invoice\Handler
::
getInstance
()
->
getInvoiceByHash
(
$entityHash
);
...
...
This diff is collapsed.
Zum Erweitern klicken.
Vorschau
0%
Wiederholen
oder
Neue Datei anhängen
.
Abbrechen
You are about to add
0
people
to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Kommentar speichern
Abbrechen
Bitte
registrieren
oder
Anmelden
zum Kommentieren