create paymal payment for cashier app
This commit is contained in:
@@ -165,7 +165,7 @@ class SalePayment < ApplicationRecord
|
||||
remark = "Payment failed - Grand Total [#{invoice.grand_total}] | Due [#{amount_due}] | Paid [#{invoice.amount_received}]"
|
||||
sale_audit = SaleAudit.record_payment(invoice.id, remark,action_by.name)
|
||||
# return false, "Payment failed"
|
||||
return false, self.save,membership_data
|
||||
return false, self.save, membership_data
|
||||
end
|
||||
else
|
||||
sale_update_payment_status(0)
|
||||
|
||||
@@ -35,6 +35,10 @@ class SaleTax < ApplicationRecord
|
||||
.group("sale_taxes.tax_name")
|
||||
end
|
||||
|
||||
def display_name
|
||||
"#{self.tax_name} (#{'Incl. ' if self.tax_type == 'inclusive'}#{self.tax_rate}%"
|
||||
end
|
||||
|
||||
private
|
||||
def generate_custom_id
|
||||
if self.sale_tax_id.nil?
|
||||
|
||||
Reference in New Issue
Block a user