mirror of
https://github.com/frappe/books.git
synced 2024-11-08 14:50:56 +00:00
Merge pull request #864 from Abhi135721/master
Fix issue : Purchase Payment Bug on Both Party #860
This commit is contained in:
commit
09fb5570d2
@ -604,7 +604,7 @@ export class Payment extends Transactional {
|
|||||||
const outstanding = partyDoc.outstandingAmount as Money;
|
const outstanding = partyDoc.outstandingAmount as Money;
|
||||||
|
|
||||||
if (outstanding.isNegative()) {
|
if (outstanding.isNegative()) {
|
||||||
if (this.referenceType === ModelNameEnum.SalesInvoice) {
|
if (this.referenceType === ModelNameEnum.PurchaseInvoice) {
|
||||||
return 'Pay';
|
return 'Pay';
|
||||||
}
|
}
|
||||||
return 'Receive';
|
return 'Receive';
|
||||||
|
Loading…
Reference in New Issue
Block a user