-
Notifications
You must be signed in to change notification settings - Fork 7.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: get project from PO into payment entry #29182
fix: get project from PO into payment entry #29182
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #29182 +/- ##
===========================================
+ Coverage 57.93% 58.01% +0.07%
===========================================
Files 1110 1110
Lines 68087 68090 +3
===========================================
+ Hits 39449 39504 +55
+ Misses 28638 28586 -52
|
@@ -1522,6 +1523,8 @@ def get_payment_entry(dt, dn, party_amount=None, bank_account=None, bank_amount= | |||
pe.paid_amount = paid_amount | |||
pe.received_amount = received_amount | |||
pe.letter_head = doc.get("letter_head") | |||
if dt == 'Purchase Order': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will also be applicable for other transactions like "Sales Order", "Purchase Receipt", "Delivery Note", "Sales Invoice" and "Purchase Invoice". Can we make this more generic to handle for all doctypes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can avoid 'Purchase Receipt' and 'Delivery Note', as there are no process available to create Payment Entry from them.
- sales order, sales invoice, purchase order and purchase order - if project not found in transaction, get from items
@Mergifyio backport version-13-hotfix |
✅ Backports have been created
|
…-29182 fix: get project from PO into payment entry (backport #29182)
Fix for Issue 16662
Now, creating payments for Purchase orders will pull the project from the line items.
no-docs