This commit is contained in:
Myat Zin Wai Maw
2020-02-03 09:59:15 +06:30
parent 08cc58682d
commit c2dffba4ef

View File

@@ -655,7 +655,7 @@ class SalePayment < ApplicationRecord
sale.sale_status = "completed"
if MembershipSetting.find_by_rebate(1) && is_foc == 0 && is_credit == 0
if MembershipSetting.find_by_rebate(1) && !is_foc && !is_credit
response = rebat(sale)
#record an payment in sale-audit