mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Admin Portal - Profile
This commit is contained in:
parent
6ea7e0a470
commit
0127abadae
22
public/main.profile.dart.js
vendored
22
public/main.profile.dart.js
vendored
@ -334696,7 +334696,7 @@
|
||||
t1.total = 0;
|
||||
B.JSArray_methods.forEach$1(_this.lineItems._list, new A.CalculateInvoiceTotal_getTaxable_closure(t1, _this, precision));
|
||||
t2 = _this.discount;
|
||||
if (t2 > 0) {
|
||||
if (t2 !== 0) {
|
||||
t3 = t1.total;
|
||||
if (_this.isAmountDiscount)
|
||||
t1.total = t3 - t2;
|
||||
@ -334888,21 +334888,11 @@
|
||||
};
|
||||
A.CalculateInvoiceTotal_getTaxable_closure.prototype = {
|
||||
call$1(invoiceItem) {
|
||||
var t3, _this = this,
|
||||
lineTotal = invoiceItem.quantity * invoiceItem.cost,
|
||||
t1 = _this.$this,
|
||||
t2 = t1.discount;
|
||||
if (t2 !== 0)
|
||||
if (t1.isAmountDiscount) {
|
||||
t3 = _this._box_0.total;
|
||||
if (t3 !== 0)
|
||||
lineTotal -= A.round(lineTotal / t3 * t2, _this.precision);
|
||||
} else
|
||||
lineTotal -= A.round(lineTotal * t2 / 100, _this.precision);
|
||||
t2 = invoiceItem.discount;
|
||||
if (t2 !== 0)
|
||||
lineTotal = t1.isAmountDiscount ? lineTotal - t2 : lineTotal - A.round(lineTotal * t2 / 100, _this.precision);
|
||||
_this._box_0.total += lineTotal;
|
||||
var lineTotal = invoiceItem.quantity * invoiceItem.cost,
|
||||
t1 = invoiceItem.discount;
|
||||
if (t1 !== 0)
|
||||
lineTotal = this.$this.isAmountDiscount ? lineTotal - t1 : lineTotal - A.round(lineTotal * t1 / 100, this.precision);
|
||||
this._box_0.total += lineTotal;
|
||||
},
|
||||
$signature: 301
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user