update waste and spoile
This commit is contained in:
@@ -38,7 +38,8 @@ class SaleItem < ApplicationRecord
|
||||
sale_item.product_alt_name = item.product_alt_name
|
||||
sale_item.account_id = item.account_id
|
||||
sale_item.status = type
|
||||
if type == "foc" || type == "promotion" || type == "void"
|
||||
sale_item.remark = type
|
||||
if type == "foc" || type == "promotion" || type == "void" || type == "waste" || type == "spoile"
|
||||
sale_item.qty = qty * (-1)
|
||||
else
|
||||
sale_item.qty = qty
|
||||
|
||||
Reference in New Issue
Block a user