fixed inventory

This commit is contained in:
NyanLinHtut
2019-09-12 14:50:14 +06:30
parent 719d5637c2
commit e0b54728f7
7 changed files with 111 additions and 40 deletions

View File

@@ -84,7 +84,7 @@ class Sale < ApplicationRecord
link_order_sale(order.order_id)
end
# InventoryJob.perform_now(self.id)
InventoryDefinition.calculate_product_count(saleObj)
# InventoryDefinition.calculate_product_count(saleObj)
@@ -489,7 +489,7 @@ class Sale < ApplicationRecord
sale.grand_total = (sale.total_amount - sale.total_discount) + sale.total_tax
sale.grand_total_round
end
if discount_type == "member_discount"
sale.discount_type = discount_type
end