diff --git a/app/models/promotion.rb b/app/models/promotion.rb index bc0e6e2b..fabe3c16 100755 --- a/app/models/promotion.rb +++ b/app/models/promotion.rb @@ -255,6 +255,7 @@ class Promotion < ApplicationRecord def self.give_promotion_nett_off(same, promo_product, foc_min_qty, orderitem, sale_id) item ='' + source ='' 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