Skip to content
GitLab
Erkunden
Anmelden
Registrieren
Primärnavigation
Suchen oder aufrufen …
Projekt
invoice
Verwalten
Aktivität
Mitglieder
Labels
Planen
Tickets
Ticketübersichten
Meilensteine
Wiki
Code
Merge Requests
Repository
Branch
Commits
Tags
Repository-Diagramm
Revisionen vergleichen
Build
Pipelines
Aufgaben
Pipeline-Zeitpläne
Artefakte
Bereitstellung
Releases
Modell-Registry
Betreiben
Umgebungen
Überwachen
Vorfälle
Service-Desk
Analysieren
Wertschöpfungskettenanalyse
Mitwirkenden-Analyse
CI/CD-Analyse
Repository-Analysen
Modellexperimente
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
invoice
Commits
085a2d4e
Bestätigt
Commit
085a2d4e
erstellt
9 months ago
von
Henning Leutz
Dateien durchsuchen
Optionen
Downloads
Patches
Einfaches Diff
fix: contact email saving
Übergeordneter
85f1a69b
Keine zugehörigen Branchen gefunden
Branches enthält Commit
Keine zugehörigen Tags gefunden
Tags enthält Commit
2 Merge Requests
!80
Update 'next-3.x' with latest changes from 'main'
,
!69
fix: contact email saving
Pipeline-
Nr. 9152
mit Warnungen bestanden
9 months ago
Phase: test
Änderungen
2
Pipelines
1
Leerzeichenänderungen ausblenden
Inline
Nebeneinander
2 geänderte Dateien
bin/backend/controls/panels/TemporaryInvoice.js
+34
-6
34 Ergänzungen, 6 Löschungen
bin/backend/controls/panels/TemporaryInvoice.js
src/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php
+9
-5
9 Ergänzungen, 5 Löschungen
src/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php
werden angezeigt
mit
43 Ergänzungen
und
11 Löschungen
bin/backend/controls/panels/TemporaryInvoice.js
+
34
−
6
Zeige Datei @
085a2d4e
...
...
@@ -460,6 +460,10 @@ define('package/quiqqer/invoice/bin/backend/controls/panels/TemporaryInvoice', [
self
.
setAttribute
(
'
contactEmail
'
,
Customer
.
contactEmail
);
self
.
setAttribute
(
'
invoice_address
'
,
Data
.
getAddress
());
if
(
Customer
[
'
quiqqer.erp.standard.payment
'
]
!==
''
)
{
self
.
getContent
().
getElement
(
'
[name="payment_method"]
'
).
value
=
Customer
[
'
quiqqer.erp.standard.payment
'
];
}
// reset deliver address
if
(
self
.
$AddressDelivery
)
{
self
.
$AddressDelivery
.
setAttribute
(
'
userId
'
,
userId
);
...
...
@@ -472,6 +476,10 @@ define('package/quiqqer/invoice/bin/backend/controls/panels/TemporaryInvoice', [
let
paymentTime
=
result
[
0
];
let
isNetto
=
result
[
1
];
if
(
Customer
[
'
quiqqer.erp.customer.payment.term
'
])
{
paymentTime
=
Customer
[
'
quiqqer.erp.customer.payment.term
'
];
}
Content
.
getElement
(
'
[name="time_for_payment"]
'
).
value
=
paymentTime
;
self
.
setAttribute
(
'
isbrutto
'
,
!
isNetto
);
...
...
@@ -556,14 +564,18 @@ define('package/quiqqer/invoice/bin/backend/controls/panels/TemporaryInvoice', [
address
.
userId
=
self
.
getAttribute
(
'
customer_id
'
);
address
.
addressId
=
self
.
getAttribute
(
'
invoice_address_id
'
);
address
.
contactPerson
=
self
.
getAttribute
(
'
contact_person
'
)
?
self
.
getAttribute
(
'
contact_person
'
)
:
''
;
address
.
contactEmail
=
self
.
getAttribute
(
'
contactEmail
'
)
?
self
.
getAttribute
(
'
contactEmail
'
)
:
''
;
if
(
self
.
getAttribute
(
'
contactEmail
'
))
{
address
.
contactEmail
=
self
.
getAttribute
(
'
contactEmail
'
);
}
return
Data
.
setValue
(
address
).
then
(()
=>
{
if
(
self
.
getAttribute
(
'
contactEmail
'
))
{
Data
.
setAttribute
(
'
contactEmail
'
,
self
.
getAttribute
(
'
contactEmail
'
));
}
if
(
self
.
getAttribute
(
'
contact_person
'
))
{
Data
.
setAttribute
(
'
contact_person
'
,
self
.
getAttribute
(
'
contact_person
'
));
}
return
Data
.
setValue
(
address
);
Data
.
refresh
();
});
}).
then
(
function
()
{
// invoice address
const
dataQUIID
=
self
.
getContent
().
getElement
(
...
...
@@ -628,6 +640,22 @@ define('package/quiqqer/invoice/bin/backend/controls/panels/TemporaryInvoice', [
let
i
,
len
,
title
;
let
current
=
QUILocale
.
getCurrent
();
// payment sort
payments
.
sort
((
a
,
b
)
=>
{
let
titleA
=
a
.
title
[
current
]
?
a
.
title
[
current
].
toLowerCase
()
:
''
;
let
titleB
=
b
.
title
[
current
]
?
b
.
title
[
current
].
toLowerCase
()
:
''
;
if
(
titleA
<
titleB
)
{
return
-
1
;
}
if
(
titleA
>
titleB
)
{
return
1
;
}
return
0
;
});
for
(
i
=
0
,
len
=
payments
.
length
;
i
<
len
;
i
++
)
{
title
=
payments
[
i
].
title
;
...
...
Dieser Diff ist reduziert.
Zum Erweitern klicken.
src/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php
+
9
−
5
Zeige Datei @
085a2d4e
...
...
@@ -255,14 +255,18 @@ public function __construct($id, Handler $Handler)
// consider contact person in address
if
(
!
empty
(
$this
->
getAttribute
(
'invoice_address'
))
&&
!
empty
(
$this
->
getAttribute
(
'contact_person'
))
)
{
if
(
!
empty
(
$this
->
getAttribute
(
'invoice_address'
)))
{
$invoiceAddress
=
$this
->
getAttribute
(
'invoice_address'
);
$invoiceAddress
=
json_decode
(
$invoiceAddress
,
true
);
$invoiceAddress
[
'contactPerson'
]
=
$this
->
getAttribute
(
'contact_person'
);
if
(
!
empty
(
$this
->
getAttribute
(
'contact_person'
)))
{
$invoiceAddress
[
'contactPerson'
]
=
$this
->
getAttribute
(
'contact_person'
);
}
if
(
!
empty
(
$invoiceAddress
[
'contactEmail'
]))
{
$this
->
setAttribute
(
'contactEmail'
,
$invoiceAddress
[
'contactEmail'
]);
}
$this
->
setAttribute
(
'invoice_address'
,
json_encode
(
$invoiceAddress
));
}
...
...
Dieser Diff ist reduziert.
Zum Erweitern klicken.
Vorschau
0%
Lade
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