frappe / books

Free Accounting Software
https://frappe.io/books
GNU Affero General Public License v3.0
2.68k stars 614 forks source link

Fix issue : Purchase Payment Bug on Both Party #860 #864

Closed Abhi135721 closed 4 months ago

Abhi135721 commented 4 months ago

I found out that when a party is created with both role and when we try to add payment, the payment type is marked as Receive even if it is a Purchase invoice. This is happening in case outstanding amount is negative and when it is purchase invoice, payment type is set to receive. Changed it in Payment.ts. I am not sure if this disturbs any other flow.

Please review and let me know.

Thanks.

Isaac-GC commented 4 months ago

+Sutiksh27