1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Revert "Working on API"

This commit is contained in:
David Bomba 2016-01-12 21:17:08 +11:00
parent dab86580ba
commit 6c4fe3f613
2 changed files with 1 additions and 4 deletions

View File

@ -223,9 +223,6 @@ class InvoiceRepository extends BaseRepository
if (isset($data['invoice_number']) && !$invoice->is_recurring) {
$invoice->invoice_number = trim($data['invoice_number']);
}
elseif (!isset($data['invoice_number']) && !$invoice->is_recurring) {
$invoice->invoice_number = $account->getNextInvoiceNumber($invoice);
}
if (isset($data['discount'])) {
$invoice->discount = round(Utils::parseFloat($data['discount']), 2);

View File

@ -13,7 +13,7 @@ class AccountTransformer extends EntityTransformer
protected $defaultIncludes = [
'users',
// 'clients',
// 'invoices',
'invoices',
'products',
'taxRates'
];