Fix imported payment date
This commit is contained in:
parent
003a5be614
commit
a83f441b98
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ class PaymentTransformer extends BaseTransformer
|
|||
return new Item($data, function ($data) {
|
||||
return [
|
||||
'amount' => $this->getFloat($data, 'paid'),
|
||||
'payment_date_sql' => isset($data->invoice_date) ? $data->invoice_date : null,
|
||||
'payment_date_sql' => $this->getDate($data, 'invoice_date'),
|
||||
'client_id' => $data->client_id,
|
||||
'invoice_id' => $data->invoice_id,
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue