Skip to content

Commit

Permalink
Merge branch 'production' into issue#1366
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher-qc committed Jun 10, 2024
2 parents 39bbdf1 + 3fd12cc commit 65a50ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/products/product-in-car.vue
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ function clickQuantity(val) {
this.maxQuantity = false;
}
}
// this.product.priceDiscountOrigin = this.product.priceDiscount;
this.product.priceDiscount = this.product.priceDiscountOrigin;
if (
this.quantityStock > this.product.stockWarehouse &&
!this.$allowOrderStockNegative
Expand Down
3 changes: 2 additions & 1 deletion src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ function addProductToBuyCar(context, product) {
const newPrice = helper.getPriceByRange({
ranges,
quantity: productsSelected[index].quantity,
originalPrice: productsSelected[index].originalPrice,
originalPrice: productsSelected[index].originalPrice
|| productsSelected[index].priceDiscountOrigin,
});

productsSelected[index].priceDiscount = newPrice;
Expand Down
4 changes: 3 additions & 1 deletion src/store/mutations/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ const orderMutation = {
const newPrice = h.getPriceByRange({
ranges,
quantity: products[index].quantity,
originalPrice: products[index].originalPrice,
originalPrice: products[index].originalPrice
|| products[index].priceDiscountOrigin,
});

products[index].priceDiscount = newPrice;
Expand Down Expand Up @@ -137,3 +138,4 @@ const orderMutation = {
},
};
export default orderMutation;

0 comments on commit 65a50ef

Please sign in to comment.