update sale item qty count update

This commit is contained in:
Aung Myo
2017-12-04 14:45:35 +06:30
parent 7ef75a285a
commit 79d7adf170
4 changed files with 6 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ class SaleItem < ApplicationRecord
sale_item.product_alt_name = item.product_alt_name
sale_item.account_id = item.account_id
sale_item.remark = type
if type == "FOC" || type == "promotion" || type == "void"
if type == "foc" || type == "promotion" || type == "void"
sale_item.qty = qty * (-1)
else
sale_item.qty = qty