From 75fa8566c337dd7feecd8c19ab7686632834d43d Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 17 Dec 2015 13:33:40 +1100 Subject: [PATCH 1/2] custom taxes boolean added to transformer --- app/Ninja/Transformers/InvoiceTransformer.php | 4 +++- config/app.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Ninja/Transformers/InvoiceTransformer.php b/app/Ninja/Transformers/InvoiceTransformer.php index 19e823a10cf5..9174b90c5832 100644 --- a/app/Ninja/Transformers/InvoiceTransformer.php +++ b/app/Ninja/Transformers/InvoiceTransformer.php @@ -66,7 +66,9 @@ class InvoiceTransformer extends EntityTransformer 'account_key' => $this->account->account_key, 'user_id' => (int) $invoice->user->public_id + 1, 'custom_value1' => $invoice->custom_value1, - 'custom_value2' => $invoice->custom_value2 + 'custom_value2' => $invoice->custom_value2, + 'custom_taxes1' => (bool) $invoice->custom_taxes1, + 'custom_taxes2' => (bool) $invoice->custom_taxes2, ]; } } \ No newline at end of file diff --git a/config/app.php b/config/app.php index a7e071e62898..29961c694682 100644 --- a/config/app.php +++ b/config/app.php @@ -80,7 +80,7 @@ return [ | */ - 'key' => env('APP_KEY', ''), + 'key' => env('APP_KEY', '12341234123412341234123412341234'), 'cipher' => env('APP_CIPHER', MCRYPT_RIJNDAEL_128), From 0172c98829ff0808e6550e021a9f052a173a6eab Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 17 Dec 2015 13:35:04 +1100 Subject: [PATCH 2/2] Bug Fixes --- config/app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/app.php b/config/app.php index 29961c694682..a7e071e62898 100644 --- a/config/app.php +++ b/config/app.php @@ -80,7 +80,7 @@ return [ | */ - 'key' => env('APP_KEY', '12341234123412341234123412341234'), + 'key' => env('APP_KEY', ''), 'cipher' => env('APP_CIPHER', MCRYPT_RIJNDAEL_128),