fix(india): cannot generate e-invoice for is_pos invoices

* If mode of payment > 18 characters, the e-invoice portal throws error
This commit is contained in:
Saqib Ansari 2022-04-04 12:28:09 +05:30
parent bfc34e1084
commit 0c26f9a8c8

View File

@ -387,7 +387,7 @@ def update_other_charges(
def get_payment_details(invoice):
payee_name = invoice.company
mode_of_payment = ", ".join([d.mode_of_payment for d in invoice.payments])
mode_of_payment = ""
paid_amount = invoice.base_paid_amount
outstanding_amount = invoice.outstanding_amount