frappe.call({
method: "erpnext.accounts.doctype.payment_entry.payment_entry.get_payment_entry",
args: {
dt: "Sales Invoice",
dn: mydocname,
bank_account: myAccount,
party_amount: 900 // I put number directly for testing only
}
)}
but this is the raised error:
paid_amount = received_amount = abs(outstanding_amount)
TypeError: bad operand type for abs(): ‘unicode’
Here’s the method reference:
Should I open an issue, or is this something I’m getting wrong?
It seems that there is a bug when you send bank_amount > oustanding_amount for same account & bank currency and it takes outstanding_amount to negative.