Added additional fields to invoice transformer

This commit is contained in:
David Bomba 2015-12-04 10:02:31 +11:00
parent 7182078acb
commit def729bfac

View File

@ -64,7 +64,9 @@ class InvoiceTransformer extends EntityTransformer
'has_tasks' => (bool) $invoice->has_tasks,
'auto_bill' => (bool) $invoice->auto_bill,
'account_key' => $this->account->account_key,
'user_id' => (int) $invoice->user->public_id + 1
'user_id' => (int) $invoice->user->public_id + 1,
'custom_value1' => $invoice->custom_value1,
'custom_value2' => $invoice->custom_value2
];
}
}