mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for 'model not defined' error
This commit is contained in:
parent
81f08cdd17
commit
aad648b901
@ -787,14 +787,7 @@ function ItemModel(data) {
|
||||
|
||||
this.totals.total = ko.computed(function() {
|
||||
var total = self.totals.rawTotal();
|
||||
return total ? model.invoice().formatMoney(total) : '';
|
||||
/*
|
||||
if (window.hasOwnProperty('model') && model.invoice && model.invoice() && model.invoice().client()) {
|
||||
return total ? model.invoice().formatMoney(total) : '';
|
||||
} else {
|
||||
return total ? model.invoice().formatMoney(total, 1) : '';
|
||||
}
|
||||
*/
|
||||
return window.hasOwnProperty('model') && total ? model.invoice().formatMoney(total) : '';
|
||||
});
|
||||
|
||||
this.hideActions = function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user