Merge branch 'develop' into feature/csr-2147
This commit is contained in:
commit
664e2a734a
3 changed files with 8 additions and 9 deletions
|
|
@ -1008,15 +1008,15 @@ export default {
|
||||||
salesTax() {
|
salesTax() {
|
||||||
if (!this.lineItems || this.lineItems.length < 1) return;
|
if (!this.lineItems || this.lineItems.length < 1) return;
|
||||||
return this.isInsurance || !this.shouldHideRecalibration
|
return this.isInsurance || !this.shouldHideRecalibration
|
||||||
? baseMixin.methods.getSubTotal(this.lineItems) // calculate with recal (if on order)
|
? baseMixin.methods.getSalesTax(this.lineItems) // calculate with recal (if on order)
|
||||||
: baseMixin.methods.getSubTotal(this.lineItemsWithoutRecal); // calculated without recal
|
: baseMixin.methods.getSalesTax(this.lineItemsWithoutRecal); // calculated without recal
|
||||||
},
|
},
|
||||||
amountDue() {
|
amountDue() {
|
||||||
if (!this.lineItems || this.lineItems.length < 1) return;
|
if (!this.lineItems || this.lineItems.length < 1) return;
|
||||||
if (this.showAsPaid) return 0;
|
if (this.showAsPaid) return 0;
|
||||||
return this.isInsurance || !this.shouldHideRecalibration
|
return this.isInsurance || !this.shouldHideRecalibration
|
||||||
? baseMixin.methods.getSubTotal(this.lineItems) // calculate with recal (if on order)
|
? baseMixin.methods.getAmountDue(this.lineItems) // calculate with recal (if on order)
|
||||||
: baseMixin.methods.getSubTotal(this.lineItemsWithoutRecal); // calculated without recal
|
: baseMixin.methods.getAmountDue(this.lineItemsWithoutRecal); // calculated without recal
|
||||||
},
|
},
|
||||||
amountPaid() {
|
amountPaid() {
|
||||||
if (!this.showAsPaid) {
|
if (!this.showAsPaid) {
|
||||||
|
|
|
||||||
|
|
@ -666,7 +666,7 @@ export default {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (this.isPiaEnabled && this.totalAmountDue > 0 && !this.isRecalibrationOnOrder) {
|
if (this.isPiaEnabled && this.totalAmountDue > 0 && !this.shouldHideRecalibration) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2423,9 +2423,8 @@ export const actions = {
|
||||||
|
|
||||||
const order = context.getters.order;
|
const order = context.getters.order;
|
||||||
|
|
||||||
var providerNumber =
|
var providerNumber = order.serviceLocation?.provider?.providerNumber ?? order.serviceLocation?.zipCodeCtu;
|
||||||
order.serviceLocation?.provider?.providerNumber ?? order.serviceLocation?.zipCodeCtu;
|
if (providerNumber.startsWith("00") && providerNumber.length > 5) {
|
||||||
if (providerNumber.startsWith("00")) {
|
|
||||||
providerNumber = providerNumber.substring(1);
|
providerNumber = providerNumber.substring(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue