update instanc code unique receipt bill and sale item

This commit is contained in:
Aung Myo
2017-12-04 12:18:20 +06:30
parent 070ab18832
commit 7ef75a285a
6 changed files with 50 additions and 35 deletions

View File

@@ -184,7 +184,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, self.sale.sale_id, "FOC", item.unit_price, item.price)
end
self.payment_method = "foc"