fix error in promotion

This commit is contained in:
Myat Zin Wai Maw
2019-07-22 14:28:11 +06:30
parent fc0612b2f5
commit 29c83cfa18

View File

@@ -254,6 +254,7 @@ class Promotion < ApplicationRecord
def self.give_promotion_nett_off(same, promo_product, foc_min_qty, orderitem, sale_id)
item =''
puts " same: " + same.to_s + " promo_product: " + promo_product.item_code.to_s + " foc_min_qty: " + foc_min_qty.to_s + " orderitem: " + orderitem.to_s
sale_order =SaleOrder.where("sale_id=?",sale_id)
if same