mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Remove viewed property from invoice import transformers
This commit is contained in:
parent
cd592f7080
commit
e489cf6cb9
@ -46,7 +46,7 @@ class InvoiceTransformer extends BaseTransformer {
|
|||||||
'amount' => 0,
|
'amount' => 0,
|
||||||
'status_id' => $invoiceStatusMap[ $status =
|
'status_id' => $invoiceStatusMap[ $status =
|
||||||
strtolower( $this->getString( $invoice_data, 'Invoice Status' ) ) ] ?? Invoice::STATUS_SENT,
|
strtolower( $this->getString( $invoice_data, 'Invoice Status' ) ) ] ?? Invoice::STATUS_SENT,
|
||||||
'viewed' => $status === 'viewed',
|
// 'viewed' => $status === 'viewed',
|
||||||
];
|
];
|
||||||
|
|
||||||
$line_items = [];
|
$line_items = [];
|
||||||
|
@ -44,7 +44,7 @@ class InvoiceTransformer extends BaseTransformer {
|
|||||||
'amount' => 0,
|
'amount' => 0,
|
||||||
'status_id' => $invoiceStatusMap[ $status =
|
'status_id' => $invoiceStatusMap[ $status =
|
||||||
strtolower( $this->getString( $invoice_data, 'DocumentStatus' ) ) ] ?? Invoice::STATUS_SENT,
|
strtolower( $this->getString( $invoice_data, 'DocumentStatus' ) ) ] ?? Invoice::STATUS_SENT,
|
||||||
'viewed' => $status === 'viewed',
|
// 'viewed' => $status === 'viewed',
|
||||||
'line_items' => [
|
'line_items' => [
|
||||||
[
|
[
|
||||||
'amount' => $amount = $this->getFloat( $invoice_data, 'TotalAmount' ),
|
'amount' => $amount = $this->getFloat( $invoice_data, 'TotalAmount' ),
|
||||||
|
@ -49,7 +49,7 @@ class InvoiceTransformer extends BaseTransformer {
|
|||||||
'balance' => $this->getFloat( $invoice_data, 'Balance' ),
|
'balance' => $this->getFloat( $invoice_data, 'Balance' ),
|
||||||
'status_id' => $invoiceStatusMap[ $status =
|
'status_id' => $invoiceStatusMap[ $status =
|
||||||
strtolower( $this->getString( $invoice_data, 'Invoice Status' ) ) ] ?? Invoice::STATUS_SENT,
|
strtolower( $this->getString( $invoice_data, 'Invoice Status' ) ) ] ?? Invoice::STATUS_SENT,
|
||||||
'viewed' => $status === 'viewed',
|
// 'viewed' => $status === 'viewed',
|
||||||
];
|
];
|
||||||
|
|
||||||
$line_items = [];
|
$line_items = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user