Fix for cloning quote

This commit is contained in:
Hillel Coren 2016-05-29 16:45:16 +03:00
parent 8df844ea26
commit b5a9656e3d

View File

@ -852,7 +852,7 @@
model.invoice().has_tasks(true);
@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 }});
// move the blank invoice line item to the end