mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 12:54:31 -04:00
Admin Portal - Profile
This commit is contained in:
parent
f6eb822b72
commit
b7f99a58ea
46
public/main.profile.dart.js
vendored
46
public/main.profile.dart.js
vendored
@ -315840,7 +315840,7 @@
|
|||||||
var t2,
|
var t2,
|
||||||
qty = A.round(item.quantity, 5),
|
qty = A.round(item.quantity, 5),
|
||||||
cost = A.round(item.cost, 5),
|
cost = A.round(item.cost, 5),
|
||||||
itemDiscount = A.round(item.discount, precision),
|
itemDiscount = A.round(item.discount, 5),
|
||||||
lineTotal = qty * cost,
|
lineTotal = qty * cost,
|
||||||
t1 = this.discount;
|
t1 = this.discount;
|
||||||
if (t1 !== 0)
|
if (t1 !== 0)
|
||||||
@ -316018,52 +316018,50 @@
|
|||||||
};
|
};
|
||||||
A.CalculateInvoiceTotal_calculateTotal_closure.prototype = {
|
A.CalculateInvoiceTotal_calculateTotal_closure.prototype = {
|
||||||
call$1(item) {
|
call$1(item) {
|
||||||
var t2, t3, _this = this,
|
var t1, t2, _this = this,
|
||||||
qty = A.round(item.quantity, 5),
|
qty = A.round(item.quantity, 5),
|
||||||
cost = A.round(item.cost, 5),
|
cost = A.round(item.cost, 5),
|
||||||
t1 = _this.precision,
|
itemDiscount = A.round(item.discount, 5),
|
||||||
itemDiscount = A.round(item.discount, t1),
|
|
||||||
taxRate1 = A.round(item.taxRate1, 3),
|
taxRate1 = A.round(item.taxRate1, 3),
|
||||||
taxRate2 = A.round(item.taxRate2, 3),
|
taxRate2 = A.round(item.taxRate2, 3),
|
||||||
taxRate3 = A.round(item.taxRate3, 3),
|
taxRate3 = A.round(item.taxRate3, 3),
|
||||||
lineTotal = qty * cost;
|
lineTotal = qty * cost;
|
||||||
if (itemDiscount !== 0)
|
if (itemDiscount !== 0)
|
||||||
lineTotal = _this.$this.isAmountDiscount ? lineTotal - itemDiscount : lineTotal - A.round(lineTotal * itemDiscount / 100, 4);
|
lineTotal = _this.$this.isAmountDiscount ? lineTotal - itemDiscount : lineTotal - A.round(lineTotal * itemDiscount / 100, _this.precision);
|
||||||
t2 = _this.$this;
|
t1 = _this.$this;
|
||||||
t3 = t2.discount;
|
t2 = t1.discount;
|
||||||
if (t3 !== 0)
|
|
||||||
if (t2.isAmountDiscount) {
|
|
||||||
t2 = _this._box_0.total;
|
|
||||||
if (t2 !== 0)
|
if (t2 !== 0)
|
||||||
lineTotal -= A.round(lineTotal / t2 * t3, 4);
|
if (t1.isAmountDiscount) {
|
||||||
|
t1 = _this._box_0.total;
|
||||||
|
if (t1 !== 0)
|
||||||
|
lineTotal -= A.round(lineTotal / t1 * t2, _this.precision);
|
||||||
}
|
}
|
||||||
if (taxRate1 !== 0) {
|
if (taxRate1 !== 0) {
|
||||||
t2 = _this._box_0;
|
t1 = _this._box_0;
|
||||||
t2.itemTax = t2.itemTax + A.round(lineTotal * taxRate1 / 100, t1);
|
t1.itemTax = t1.itemTax + A.round(lineTotal * taxRate1 / 100, _this.precision);
|
||||||
}
|
}
|
||||||
if (taxRate2 !== 0) {
|
if (taxRate2 !== 0) {
|
||||||
t2 = _this._box_0;
|
t1 = _this._box_0;
|
||||||
t2.itemTax = t2.itemTax + A.round(lineTotal * taxRate2 / 100, t1);
|
t1.itemTax = t1.itemTax + A.round(lineTotal * taxRate2 / 100, _this.precision);
|
||||||
}
|
}
|
||||||
if (taxRate3 !== 0) {
|
if (taxRate3 !== 0) {
|
||||||
t2 = _this._box_0;
|
t1 = _this._box_0;
|
||||||
t2.itemTax = t2.itemTax + A.round(lineTotal * taxRate3 / 100, t1);
|
t1.itemTax = t1.itemTax + A.round(lineTotal * taxRate3 / 100, _this.precision);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
$signature: 248
|
$signature: 248
|
||||||
};
|
};
|
||||||
A.CalculateInvoiceTotal_calculateSubtotal_closure.prototype = {
|
A.CalculateInvoiceTotal_calculateSubtotal_closure.prototype = {
|
||||||
call$1(item) {
|
call$1(item) {
|
||||||
var t2,
|
var t1, _this = this,
|
||||||
qty = A.round(item.quantity, 5),
|
qty = A.round(item.quantity, 5),
|
||||||
cost = A.round(item.cost, 5),
|
cost = A.round(item.cost, 5),
|
||||||
t1 = this.precision,
|
discount = A.round(item.discount, 5),
|
||||||
discount = A.round(item.discount, t1),
|
|
||||||
lineTotal = qty * cost;
|
lineTotal = qty * cost;
|
||||||
if (discount !== 0)
|
if (discount !== 0)
|
||||||
lineTotal = this.$this.isAmountDiscount ? lineTotal - discount : lineTotal - A.round(lineTotal * discount / 100, 4);
|
lineTotal = _this.$this.isAmountDiscount ? lineTotal - discount : lineTotal - A.round(lineTotal * discount / 100, _this.precision);
|
||||||
t2 = this._box_0;
|
t1 = _this._box_0;
|
||||||
t2.total = t2.total + A.round(lineTotal, t1);
|
t1.total = t1.total + A.round(lineTotal, _this.precision);
|
||||||
},
|
},
|
||||||
$signature: 248
|
$signature: 248
|
||||||
};
|
};
|
||||||
@ -316076,7 +316074,7 @@
|
|||||||
},
|
},
|
||||||
toApiParam$0() {
|
toApiParam$0() {
|
||||||
var value = A.toSnakeCase(this.super$EnumClass$toString(0));
|
var value = A.toSnakeCase(this.super$EnumClass$toString(0));
|
||||||
if (B.JSString_methods.startsWith$1(value, "email"))
|
if (B.JSString_methods.endsWith$1(value, "email"))
|
||||||
return "email";
|
return "email";
|
||||||
if (this === B.EntityAction_cancelInvoice)
|
if (this === B.EntityAction_cancelInvoice)
|
||||||
return "cancel";
|
return "cancel";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user