1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Merge pull request #4048 from oliverpool/clone_fix_rate

Preserve tax rates on cloning
This commit is contained in:
David Bomba 2020-09-09 07:21:03 +10:00 committed by GitHub
commit 7edc1fb195
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -907,7 +907,7 @@
model.invoice().addItem(); // add blank item
@else
// set the default account tax rate
@if ($account->invoice_taxes)
@if ($account->invoice_taxes && empty($invoice->tax_name1) && empty($invoice->tax_name2))
@if (! empty($account->tax_name1))
model.invoice().tax_rate1("{{ $account->tax_rate1 }}");
model.invoice().tax_name1({!! json_encode($account->tax_name1) !!});