Added customer number to credit invoice csv expot

This commit is contained in:
Frank Schubert
2024-08-20 20:43:09 +02:00
parent 1131230170
commit 7d4a1373fd

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;