1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Remove viewed property from invoice import transformers

This commit is contained in:
David Bomba 2021-12-30 06:52:13 +11:00
parent cd592f7080
commit e489cf6cb9
3 changed files with 3 additions and 3 deletions

View File

@ -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 = [];

View File

@ -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' ),

View File

@ -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 = [];