Merge branch 'fronkdev' into 'master'

Added customer number to credit invoice csv expot

See merge request fronk/thetool!597
This commit is contained in:
Frank Schubert
2024-08-20 18:43:49 +00:00

View File

@@ -21,7 +21,7 @@ foreach($invoice->positions as $p):
if($p->contract_id) {
$credit = $p->contract;
foreach($credit->linkFrom as $link) {
if($link->type == "credit" && $link->origin->termination_id) {
if($link->type == "credit") {
$contract = $link->origin;
$credit_custnum = $contract->owner->customer_number;
break;