From 29c83cfa186d723bf95469faa8a1b2dcf571d14b Mon Sep 17 00:00:00 2001 From: Myat Zin Wai Maw Date: Mon, 22 Jul 2019 14:28:11 +0630 Subject: [PATCH] fix error in promotion --- app/models/promotion.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/promotion.rb b/app/models/promotion.rb index 4f847bc4..bc0e6e2b 100755 --- a/app/models/promotion.rb +++ b/app/models/promotion.rb @@ -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