free shiping
parent
559ab04d9b
commit
a87bfee340
|
@ -35,9 +35,10 @@ public class CalculateOrderCommandHandler(IRepositoryWrapper repositoryWrapper,
|
|||
order.RemoveDiscount();
|
||||
}
|
||||
|
||||
if (totalProductPrice > 5000000)
|
||||
deliveryPrice = 0;
|
||||
var taxesPrice = (((totalProductPrice - (discountCodePrice + productDiscountPrice)) + totalPackingPrice + servicePrice) / 100) * taxesFee;
|
||||
|
||||
|
||||
order.SetTotalPrice(totalProductPrice, totalPackingPrice, servicePrice, deliveryPrice, productDiscountPrice, discountCodePrice, taxesPrice);
|
||||
order.OrderProducts.Clear();
|
||||
order.OrderDelivery = null;
|
||||
|
|
Loading…
Reference in New Issue