Remove viewed property from invoice import transformers
This commit is contained in:
parent
cd592f7080
commit
e489cf6cb9
3 changed files with 3 additions and 3 deletions
|
|
@ -46,7 +46,7 @@ class InvoiceTransformer extends BaseTransformer {
|
|||
'amount' => 0,
|
||||
'status_id' => $invoiceStatusMap[ $status =
|
||||
strtolower( $this->getString( $invoice_data, 'Invoice Status' ) ) ] ?? Invoice::STATUS_SENT,
|
||||
'viewed' => $status === 'viewed',
|
||||
// 'viewed' => $status === 'viewed',
|
||||
];
|
||||
|
||||
$line_items = [];
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ class InvoiceTransformer extends BaseTransformer {
|
|||
'amount' => 0,
|
||||
'status_id' => $invoiceStatusMap[ $status =
|
||||
strtolower( $this->getString( $invoice_data, 'DocumentStatus' ) ) ] ?? Invoice::STATUS_SENT,
|
||||
'viewed' => $status === 'viewed',
|
||||
// 'viewed' => $status === 'viewed',
|
||||
'line_items' => [
|
||||
[
|
||||
'amount' => $amount = $this->getFloat( $invoice_data, 'TotalAmount' ),
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ class InvoiceTransformer extends BaseTransformer {
|
|||
'balance' => $this->getFloat( $invoice_data, 'Balance' ),
|
||||
'status_id' => $invoiceStatusMap[ $status =
|
||||
strtolower( $this->getString( $invoice_data, 'Invoice Status' ) ) ] ?? Invoice::STATUS_SENT,
|
||||
'viewed' => $status === 'viewed',
|
||||
// 'viewed' => $status === 'viewed',
|
||||
];
|
||||
|
||||
$line_items = [];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue