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:
parent
dab86580ba
commit
6c4fe3f613
@ -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);
|
||||
|
@ -13,7 +13,7 @@ class AccountTransformer extends EntityTransformer
|
||||
protected $defaultIncludes = [
|
||||
'users',
|
||||
// 'clients',
|
||||
// 'invoices',
|
||||
'invoices',
|
||||
'products',
|
||||
'taxRates'
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user