Minor fixes for wave imports
This commit is contained in:
parent
37ea391ae4
commit
bcd9ad5478
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ class InvoiceTransformer extends BaseTransformer {
|
|||
'quantity' => 1,
|
||||
];
|
||||
|
||||
if($record['Invoice Paid'] > 0){
|
||||
if(array_key_exists('Invoice Paid', $record) && $record['Invoice Paid'] > 0){
|
||||
$payments[] = [
|
||||
'date' => date( 'Y-m-d', strtotime( $record['Last Payment Date'] ) ),
|
||||
'amount' => $this->getFloat( $record, 'Invoice Paid' ),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue