From e489cf6cb9d9503c5ceeccfdd2bf8581f717442f Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 30 Dec 2021 06:52:13 +1100 Subject: [PATCH] Remove viewed property from invoice import transformers --- app/Import/Transformers/Freshbooks/InvoiceTransformer.php | 2 +- app/Import/Transformers/Invoice2Go/InvoiceTransformer.php | 2 +- app/Import/Transformers/Zoho/InvoiceTransformer.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Import/Transformers/Freshbooks/InvoiceTransformer.php b/app/Import/Transformers/Freshbooks/InvoiceTransformer.php index 48ab07a1ee..191bdad0c8 100644 --- a/app/Import/Transformers/Freshbooks/InvoiceTransformer.php +++ b/app/Import/Transformers/Freshbooks/InvoiceTransformer.php @@ -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 = []; diff --git a/app/Import/Transformers/Invoice2Go/InvoiceTransformer.php b/app/Import/Transformers/Invoice2Go/InvoiceTransformer.php index 709af04d11..48fe660d17 100644 --- a/app/Import/Transformers/Invoice2Go/InvoiceTransformer.php +++ b/app/Import/Transformers/Invoice2Go/InvoiceTransformer.php @@ -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' ), diff --git a/app/Import/Transformers/Zoho/InvoiceTransformer.php b/app/Import/Transformers/Zoho/InvoiceTransformer.php index 0c9ad7a82e..9962b918ba 100644 --- a/app/Import/Transformers/Zoho/InvoiceTransformer.php +++ b/app/Import/Transformers/Zoho/InvoiceTransformer.php @@ -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 = [];