Fix for cloning quote

This commit is contained in:
Hillel Coren 2016-05-29 16:46:21 +03:00
parent 145c394e6b
commit 8885ae2939

View File

@ -824,7 +824,7 @@
model.invoice().has_tasks(true); model.invoice().has_tasks(true);
@endif @endif
if(model.invoice().expenses() && !model.invoice().public_id()){ if(model.invoice().expenses().length && !model.invoice().public_id()){
model.expense_currency_id({{ isset($expenseCurrencyId) ? $expenseCurrencyId : 0 }}); model.expense_currency_id({{ isset($expenseCurrencyId) ? $expenseCurrencyId : 0 }});
// move the blank invoice line item to the end // move the blank invoice line item to the end