mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes for wave imports
This commit is contained in:
parent
37ea391ae4
commit
bcd9ad5478
@ -97,7 +97,7 @@ class InvoiceTransformer extends BaseTransformer {
|
|||||||
'quantity' => 1,
|
'quantity' => 1,
|
||||||
];
|
];
|
||||||
|
|
||||||
if($record['Invoice Paid'] > 0){
|
if(array_key_exists('Invoice Paid', $record) && $record['Invoice Paid'] > 0){
|
||||||
$payments[] = [
|
$payments[] = [
|
||||||
'date' => date( 'Y-m-d', strtotime( $record['Last Payment Date'] ) ),
|
'date' => date( 'Y-m-d', strtotime( $record['Last Payment Date'] ) ),
|
||||||
'amount' => $this->getFloat( $record, 'Invoice Paid' ),
|
'amount' => $this->getFloat( $record, 'Invoice Paid' ),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user