Don’t set qty to 1 when selecting task item on invoice form

This commit is contained in:
Hillel Coren 2017-12-01 12:49:05 +02:00
parent 3a23fabcda
commit a1793753ea

View File

@ -1022,7 +1022,7 @@ ko.bindingHandlers.productTypeahead = {
model.cost(roundSignificant(datum.cost, true));
}
}
if (!model.qty()) {
if (!model.qty() && ! model.task_public_id()) {
model.qty(1);
}
@if ($account->invoice_item_taxes)