You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a Payment Request is partially paid, it does not allow further payments towards the remaining amount.
It does not keep a record of how much is unpaid (outstanding_amount).
The reference number can be changed by the user of Payment Entry, which can result in the loss of link to Payment Request.
When creating Payment Entry from Payment Request, the party_amount is incorrectly set to the total amount of the reference transaction if the following condition gets triggered:
Payment Request status is always set to Partially Paid if Payment Request amount is less than the reference transaction total, because this status is always set based on reference transaction amounts.
Add a Payment Request link field in the reference table of Payment Entry.
This will maintain the reference of the Payment Request for which this Payment Entry was created.
It will be used to retrieve the amount paid in the past.
Add an Outstanding Amount field in Payment Request. This will track the amount remaining to be paid.
Modify the flow of create_payment_entry():
Fetch the amount from the outstanding_amount field instead of grand_total.
Ensure that party_amount is set correctly in all cases.
(?) Add a validation on the save of linked Payment Entry that the amount should not be higher than the total amount of Payment Request.
Update status of Payment Request based on amounts in Payment Request, instead of amounts in reference transaction.
Don't allow negative amount.
Set correct advance payment statuses.
Caveat
This change will not update old Payment Requests as Paid where they were earlier Partially Paid, because there is no way to determine the outstanding amount reliably for existing Payment Requests.
The text was updated successfully, but these errors were encountered:
Issues
When a Payment Request is partially paid, it does not allow further payments towards the remaining amount.
outstanding_amount
).party_amount
is incorrectly set to the total amount of the reference transaction if the following condition gets triggered:erpnext/erpnext/accounts/doctype/payment_request/payment_request.py
Line 295 in 3ef7e6c
Internal Ticket: https://support.frappe.io/helpdesk/tickets/18503
Proposal
Payment Request
link field in the reference table of Payment Entry.Outstanding Amount
field in Payment Request. This will track the amount remaining to be paid.create_payment_entry()
:party_amount
is set correctly in all cases.Caveat
This change will not update old Payment Requests as
Paid
where they were earlierPartially Paid
, because there is no way to determine the outstanding amount reliably for existing Payment Requests.The text was updated successfully, but these errors were encountered: