From 59d0a1cb807cb42c21322723143af9af5efaa909 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 29 May 2016 14:22:25 +0300 Subject: [PATCH] Fix to support mobile app --- .travis.yml | 2 +- app/Ninja/Transformers/InvoiceTransformer.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9eef15bf06b8..63de5f8ce3aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ sudo: true php: - 5.5.9 - - 5.6 +# - 5.6 # - 5.6 # - 7.0 # - hhvm diff --git a/app/Ninja/Transformers/InvoiceTransformer.php b/app/Ninja/Transformers/InvoiceTransformer.php index b961dbdfaeba..553fa604daae 100644 --- a/app/Ninja/Transformers/InvoiceTransformer.php +++ b/app/Ninja/Transformers/InvoiceTransformer.php @@ -34,7 +34,7 @@ class InvoiceTransformer extends EntityTransformer public function __construct($account = null, $serializer = null, $client = null) { parent::__construct($account, $serializer); - + $this->client = $client; } @@ -119,6 +119,7 @@ class InvoiceTransformer extends EntityTransformer 'quote_invoice_id' => (int) $invoice->quote_invoice_id, 'custom_text_value1' => $invoice->custom_text_value1, 'custom_text_value2' => $invoice->custom_text_value2, + 'is_quote' => (bool) $invoice->isType(INVOICE_TYPE_QUOTE), // Temp to support mobile app ]); } }