check shift update data

This commit is contained in:
phyusin
2018-03-09 11:54:35 +06:30
parent d7d5f8afc7
commit 21d39349d3
7 changed files with 76 additions and 76 deletions

View File

@@ -356,10 +356,10 @@ class SalePayment < ApplicationRecord
self.sale.save!
table_update_status(sObj)
if check_foc
update_shift
elsif paid_amount != "0.0"
elsif paid_amount.to_f > 0 #|| paid_amount != "0.0"
update_shift
end
end