2
0
mirror of https://github.com/frappe/books.git synced 2024-05-28 22:30:48 +00:00

Fix issue : Purchase Payment Bug on Both Party #860

This commit is contained in:
Abhi135721 2024-03-01 12:50:31 -08:00
parent 71c4e8a411
commit 66e952f1ff

View File

@ -604,7 +604,7 @@ export class Payment extends Transactional {
const outstanding = partyDoc.outstandingAmount as Money;
if (outstanding.isNegative()) {
if (this.referenceType === ModelNameEnum.SalesInvoice) {
if (this.referenceType === ModelNameEnum.PurchaseInvoice) {
return 'Pay';
}
return 'Receive';