commit
1ea9f38a5e
2 changed files with 5 additions and 5 deletions
|
|
@ -171,7 +171,7 @@ export default {
|
||||||
!order.policy.isNoComp &&
|
!order.policy.isNoComp &&
|
||||||
!order.policy.isItac
|
!order.policy.isItac
|
||||||
) {
|
) {
|
||||||
amountDue += order.policy.currentDeductible;
|
amountDue = order.policy.currentDeductible;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ((amountDue * 100) / 100).toFixed(2);
|
return ((amountDue * 100) / 100).toFixed(2);
|
||||||
|
|
|
||||||
|
|
@ -175,7 +175,7 @@ describe("baseMixin.js", () => {
|
||||||
promos: [],
|
promos: [],
|
||||||
};
|
};
|
||||||
|
|
||||||
const payment = { insuranceCoverage: { isVerified: true } };
|
const payment = { insuranceCoverage: { isVerified: false } };
|
||||||
const policy = { isNoComp: false, isItac: false, currentDeductible: 250 };
|
const policy = { isNoComp: false, isItac: false, currentDeductible: 250 };
|
||||||
|
|
||||||
store.getters = {
|
store.getters = {
|
||||||
|
|
@ -190,7 +190,7 @@ describe("baseMixin.js", () => {
|
||||||
|
|
||||||
var amtDue = mixIn.methods.getAmountDue(lineItems);
|
var amtDue = mixIn.methods.getAmountDue(lineItems);
|
||||||
|
|
||||||
expect(amtDue).toEqual("303.00");
|
expect(amtDue).toEqual("53.00");
|
||||||
});
|
});
|
||||||
|
|
||||||
test("getAmountDue should function with a submitted order", () => {
|
test("getAmountDue should function with a submitted order", () => {
|
||||||
|
|
@ -223,7 +223,7 @@ describe("baseMixin.js", () => {
|
||||||
promos: [],
|
promos: [],
|
||||||
};
|
};
|
||||||
|
|
||||||
const payment = { insuranceCoverage: { isVerified: true } };
|
const payment = { insuranceCoverage: { isVerified: false } };
|
||||||
const policy = { isNoComp: false, isItac: false, currentDeductible: 250 };
|
const policy = { isNoComp: false, isItac: false, currentDeductible: 250 };
|
||||||
|
|
||||||
mixIn.methods.hasSubmittedOrder = jest.fn().mockReturnValue(true);
|
mixIn.methods.hasSubmittedOrder = jest.fn().mockReturnValue(true);
|
||||||
|
|
@ -240,7 +240,7 @@ describe("baseMixin.js", () => {
|
||||||
|
|
||||||
var amtDue = mixIn.methods.getAmountDue(lineItems);
|
var amtDue = mixIn.methods.getAmountDue(lineItems);
|
||||||
|
|
||||||
expect(amtDue).toEqual("303.00");
|
expect(amtDue).toEqual("53.00");
|
||||||
});
|
});
|
||||||
|
|
||||||
test("getAmountDue for cash should sum lineitems", () => {
|
test("getAmountDue for cash should sum lineitems", () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue