mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for setting price when selecting product
This commit is contained in:
parent
3f4b205640
commit
61e94852bf
@ -1036,7 +1036,7 @@ ko.bindingHandlers.productTypeahead = {
|
||||
model.notes(datum.notes);
|
||||
}
|
||||
if (parseFloat(datum.cost)) {
|
||||
if (! model.cost() || ! model.task_public_id()) {
|
||||
if (! NINJA.parseFloat(model.cost()) || ! model.task_public_id()) {
|
||||
model.cost(roundSignificant(datum.cost, true));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user