Skip to content
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: Added dispatch address fields in Sales Ord, Sales Inv, Delivery Note for Eway Bill #26464

Merged

Conversation

nemesis189
Copy link
Contributor

@nemesis189 nemesis189 commented Jul 13, 2021

Added Dispatch Address field to specify from where the delivery is actually dispatched since it need not be same as the company address, modified the actualFromStatePin for Eway bill generation accordingly.

Sales order:
Screenshot 2021-07-14 at 12 42 33 PM

Delivery Note:
Screenshot 2021-07-14 at 12 44 19 PM

Sales Invoice:
Screenshot 2021-07-14 at 12 45 41 PM

no-docs

data.fromStateCode = data.actualFromStateCode = validate_state_code(
company_address.gst_state_number, 'Company Address')
data.fromStateCode = validate_state_code(company_address.gst_state_number, 'Company Address')
data.actualFromStateCode = validate_state_code(dispatch_address.gst_state_number, 'Company Address')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dispatch Address is not a mandatory field. This should only be called if dispatch address is set else actualFromStateCode will be same as company billing state

Copy link
Member

@deepeshgarg007 deepeshgarg007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try generating E-Way bill once without the dispatch address and check there should not be any other errors because of this. Also update test_eway_bill_json in test_sales_invoice.py to check these fields as well.

@nemesis189 nemesis189 requested a review from ankush as a code owner July 19, 2021 09:07
@deepeshgarg007 deepeshgarg007 merged commit 3e10984 into frappe:develop Jul 21, 2021
asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
…s-to-sales

feat: Added dispatch address fields in Sales Ord, Sales Inv, Delivery Note for Eway Bill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants