origami numpad ui fix and promotion fix

This commit is contained in:
Yan
2017-11-07 14:48:33 +06:30
parent 7b2f928df0
commit 758b36000e
3 changed files with 39 additions and 15 deletions

View File

@@ -218,7 +218,7 @@ class Promotion < ApplicationRecord
else
foc_qty = find_second_item_qty(sale_id, promo_product.item_code)
# give total qty is 1
foc_qty = (foc_qty - foc_qty) + 1
#foc_qty = (foc_qty - foc_qty) + 1
item = OrderItem.find_by_item_instance_code(promo_product.item_code)
# total = item.price * foc_qty