bill foc add remark for original
This commit is contained in:
@@ -27,6 +27,10 @@ class SaleItem < ApplicationRecord
|
||||
end
|
||||
|
||||
def self.update_existing_item(qty, item, sale_id, type, item_price, price)
|
||||
# Original Item to add remark
|
||||
item.remark = type
|
||||
item.save
|
||||
|
||||
sale_item = SaleItem.new
|
||||
sale_item.product_code = item.product_code
|
||||
sale_item.item_instance_code = item.item_instance_code
|
||||
|
||||
Reference in New Issue
Block a user