From 2144870b96029a95afd4277c10326078cca9ef89 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 31 Dec 2015 16:14:30 +0200 Subject: [PATCH] Removed getInvoiceId from non-Wave transformers --- app/Ninja/Import/CSV/PaymentTransformer.php | 2 +- app/Ninja/Import/FreshBooks/PaymentTransformer.php | 2 +- app/Ninja/Import/Harvest/PaymentTransformer.php | 2 +- app/Ninja/Import/Hiveage/PaymentTransformer.php | 2 +- app/Ninja/Import/Invoiceable/PaymentTransformer.php | 2 +- app/Ninja/Import/Nutcache/PaymentTransformer.php | 2 +- app/Ninja/Import/Ronin/PaymentTransformer.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Ninja/Import/CSV/PaymentTransformer.php b/app/Ninja/Import/CSV/PaymentTransformer.php index 428db37fc7..7acd3d88f8 100644 --- a/app/Ninja/Import/CSV/PaymentTransformer.php +++ b/app/Ninja/Import/CSV/PaymentTransformer.php @@ -12,7 +12,7 @@ class PaymentTransformer extends BaseTransformer 'amount' => $data->paid, 'payment_date_sql' => isset($data->invoice_date) ? $data->invoice_date : null, 'client_id' => $data->client_id, - 'invoice_id' => $this->getInvoiceId($data->invoice_id), + 'invoice_id' => $data->invoice_id, ]; }); } diff --git a/app/Ninja/Import/FreshBooks/PaymentTransformer.php b/app/Ninja/Import/FreshBooks/PaymentTransformer.php index def45a5eac..1f69fdbacf 100644 --- a/app/Ninja/Import/FreshBooks/PaymentTransformer.php +++ b/app/Ninja/Import/FreshBooks/PaymentTransformer.php @@ -12,7 +12,7 @@ class PaymentTransformer extends BaseTransformer 'amount' => $data->paid, 'payment_date_sql' => $data->create_date, 'client_id' => $data->client_id, - 'invoice_id' => $this->getInvoiceId($data->invoice_id), + 'invoice_id' => $data->invoice_id, ]; }); } diff --git a/app/Ninja/Import/Harvest/PaymentTransformer.php b/app/Ninja/Import/Harvest/PaymentTransformer.php index cdb53c6d52..0efd442886 100644 --- a/app/Ninja/Import/Harvest/PaymentTransformer.php +++ b/app/Ninja/Import/Harvest/PaymentTransformer.php @@ -12,7 +12,7 @@ class PaymentTransformer extends BaseTransformer 'amount' => $data->paid_amount, 'payment_date_sql' => $this->getDate($data->last_payment_date, 'm/d/Y'), 'client_id' => $data->client_id, - 'invoice_id' => $this->getInvoiceId($data->invoice_id), + 'invoice_id' => $data->invoice_id, ]; }); } diff --git a/app/Ninja/Import/Hiveage/PaymentTransformer.php b/app/Ninja/Import/Hiveage/PaymentTransformer.php index c1debef5bf..d6232d05bc 100644 --- a/app/Ninja/Import/Hiveage/PaymentTransformer.php +++ b/app/Ninja/Import/Hiveage/PaymentTransformer.php @@ -12,7 +12,7 @@ class PaymentTransformer extends BaseTransformer 'amount' => $data->paid_total, 'payment_date_sql' => $this->getDate($data->last_paid_on), 'client_id' => $data->client_id, - 'invoice_id' => $this->getInvoiceId($data->invoice_id), + 'invoice_id' => $data->invoice_id, ]; }); } diff --git a/app/Ninja/Import/Invoiceable/PaymentTransformer.php b/app/Ninja/Import/Invoiceable/PaymentTransformer.php index 453c658f63..c52494cdc6 100644 --- a/app/Ninja/Import/Invoiceable/PaymentTransformer.php +++ b/app/Ninja/Import/Invoiceable/PaymentTransformer.php @@ -12,7 +12,7 @@ class PaymentTransformer extends BaseTransformer 'amount' => $data->paid, 'payment_date_sql' => $data->date_paid, 'client_id' => $data->client_id, - 'invoice_id' => $this->getInvoiceId($data->invoice_id), + 'invoice_id' => $data->invoice_id, ]; }); } diff --git a/app/Ninja/Import/Nutcache/PaymentTransformer.php b/app/Ninja/Import/Nutcache/PaymentTransformer.php index 42c9e1dee6..04e783361f 100644 --- a/app/Ninja/Import/Nutcache/PaymentTransformer.php +++ b/app/Ninja/Import/Nutcache/PaymentTransformer.php @@ -12,7 +12,7 @@ class PaymentTransformer extends BaseTransformer 'amount' => (float) $data->paid_to_date, 'payment_date_sql' => $this->getDate($data->date), 'client_id' => $data->client_id, - 'invoice_id' => $this->getInvoiceId($data->invoice_id), + 'invoice_id' => $data->invoice_id, ]; }); } diff --git a/app/Ninja/Import/Ronin/PaymentTransformer.php b/app/Ninja/Import/Ronin/PaymentTransformer.php index e336c5ce65..c041014562 100644 --- a/app/Ninja/Import/Ronin/PaymentTransformer.php +++ b/app/Ninja/Import/Ronin/PaymentTransformer.php @@ -12,7 +12,7 @@ class PaymentTransformer extends BaseTransformer 'amount' => (float) $data->total - (float) $data->balance, 'payment_date_sql' => $data->date_paid, 'client_id' => $data->client_id, - 'invoice_id' => $this->getInvoiceId($data->invoice_id), + 'invoice_id' => $data->invoice_id, ]; }); }