CSR-1614 | Formatting
This commit is contained in:
parent
2da09b11b7
commit
b73abadebd
1 changed files with 4 additions and 10 deletions
|
|
@ -380,20 +380,15 @@ export default {
|
||||||
updateAndSaveSupportingItems() {
|
updateAndSaveSupportingItems() {
|
||||||
const supportingItems = store.getters.lineItems.supportingItems;
|
const supportingItems = store.getters.lineItems.supportingItems;
|
||||||
// if we have a mobile fee, then save/update supporting items
|
// if we have a mobile fee, then save/update supporting items
|
||||||
if (
|
if (this.selectedAppointmentType == "Mobile") {
|
||||||
this.selectedAppointmentType == "Mobile"
|
|
||||||
) {
|
|
||||||
const mobileFeeIndex = supportingItems.findIndex(
|
const mobileFeeIndex = supportingItems.findIndex(
|
||||||
(item) => item.partType == MOBILE_FEE_PART_TYPE
|
(item) => item.partType == MOBILE_FEE_PART_TYPE
|
||||||
);
|
);
|
||||||
// If it already exists, update the price with latest data
|
// If it already exists, update the price with latest data
|
||||||
if (mobileFeeIndex >= 0) {
|
if (mobileFeeIndex >= 0) {
|
||||||
supportingItems[mobileFeeIndex].laborAmount =
|
supportingItems[mobileFeeIndex].laborAmount = this.mobileFeePart.laborAmount;
|
||||||
this.mobileFeePart.laborAmount;
|
supportingItems[mobileFeeIndex].selingPrice = this.mobileFeePart.selingPrice;
|
||||||
supportingItems[mobileFeeIndex].selingPrice =
|
supportingItems[mobileFeeIndex].kitPrice = this.mobileFeePart.kitPrice;
|
||||||
this.mobileFeePart.selingPrice;
|
|
||||||
supportingItems[mobileFeeIndex].kitPrice =
|
|
||||||
this.mobileFeePart.kitPrice;
|
|
||||||
} else {
|
} else {
|
||||||
supportingItems.push(this.mobileFeePart);
|
supportingItems.push(this.mobileFeePart);
|
||||||
}
|
}
|
||||||
|
|
@ -404,7 +399,6 @@ export default {
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// if it's not a mobile, then make sure we remove any that may have been added
|
// if it's not a mobile, then make sure we remove any that may have been added
|
||||||
const removeMobileFeeIndex = supportingItems.findIndex(
|
const removeMobileFeeIndex = supportingItems.findIndex(
|
||||||
(item) => item.partType == MOBILE_FEE_PART_TYPE
|
(item) => item.partType == MOBILE_FEE_PART_TYPE
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue