update reports

This commit is contained in:
Aung Myo
2017-11-25 16:32:30 +06:30
parent b611fcde97
commit 2ebecc2fb2
7 changed files with 22 additions and 15 deletions

View File

@@ -174,7 +174,7 @@ class SalePayment < ApplicationRecord
sale_items = SaleItem.where("sale_id='#{ self.sale.sale_id }'")
sale_items.each do|item|
SaleItem.update_existing_item(item.qty, item, self.sale.sale_id, "foc", item.unit_price, item.price)
SaleItem.update_existing_item(item.qty,item.item_instance_code, item, self.sale.sale_id, "foc", item.unit_price, item.price)
end
self.payment_method = "foc"