Added customer number to credit invoice csv expot
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user