-
Notifications
You must be signed in to change notification settings - Fork 699
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
feat: invoice return #743
feat: invoice return #743
Conversation
Is there a timeline on when this can be merged? |
Did a self review, LGTM |
@akshayitzme When using your code on an existing database, I get an error:
|
Hi, Thanks for pointing this out. I haven't tried reproducing it yet.. will do it in the coming days and push fixes if needed. |
fixed in #782 |
"fieldname": "referenceType", | ||
"label": "Type", | ||
"placeholder": "Type", | ||
"fieldtype": "Select", | ||
"options": [ | ||
{ | ||
"value": "SalesInvoice", | ||
"label": "Sales" | ||
}, | ||
{ | ||
"value": "PurchaseInvoice", | ||
"label": "Purchase" | ||
} | ||
], | ||
"hidden": true, | ||
"required": true |
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.
@akshayitzme setting "required": true
for this field breaks migrations.
Ideally this field should not be present because a similar field is present on the PaymentFor child table. You should have used that with a single row instead of introducing a new field.
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.
I suppose 74a81de fixes it, nevertheless it's a redundant field.
This PR adds the functionality for Sales and Purchase Return.
Invoice Return
Workflow
follows ERPNext's workflow
(F payment: Full Payment, P Payment: Partial Payment, N Payment: No Payment)