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(Customer Form): Sales Tax and Template (Functionality) #126 #74

Closed

Conversation

shahSpider
Copy link

@shahSpider shahSpider commented Apr 2, 2024

@shahSpider shahSpider marked this pull request as draft April 2, 2024 11:20
@shahSpider shahSpider marked this pull request as ready for review April 3, 2024 05:38
@shahSpider shahSpider marked this pull request as draft April 3, 2024 05:43
Comment on lines +288 to +293
if source_doc.get("customer") and source_doc.get("company"):
if frappe.get_cached_value("Customer", source_doc.get("customer"), "taxes_and_charges_template"):
from erpnext.accounts.party import set_taxes
from erpnext.accounts.doctype.sales_invoice.pos import update_tax_table
target_doc.taxes_and_charges = set_taxes(source_doc.get("customer"), "Customer", source_doc.get("posting_date"), source_doc.get("company"))
update_tax_table(target_doc)
Copy link
Member

Choose a reason for hiding this comment

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

revert everything

@SaiFi0102
Copy link
Member

Wrong app. Use erpnext app instead

@SaiFi0102 SaiFi0102 closed this Apr 3, 2024
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.

feat(Customer Form): Sales Tax and Template (Functionality)
2 participants