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:
parent
71c4e8a411
commit
66e952f1ff
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue
Block a user