item foc in sale edit

This commit is contained in:
Zin Lin Phyo
2017-08-15 15:13:44 +06:30
parent 2da60ce6e3
commit 74b15465f7
6 changed files with 430 additions and 809 deletions

View File

@@ -267,7 +267,7 @@ class Sale < ApplicationRecord
rounding_adjustment = 0
sales_items.each do |item|
if item.remark != 'void'
if item.remark != 'void' && item.remark != 'foc'
#compute each item and added to total
subtotal_price = subtotal_price + item.price
total_taxable = total_taxable + item.price