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

[UX] Error in purchase transaction - Ignore instead of Prompt #7766 #9295

Merged
merged 1 commit into from
Jun 16, 2017

Conversation

tundebabzy
Copy link
Contributor

Fixes #7766
If all items are non-stock items, the tax category is changed to 'Total' and a message is displayed on the page to notify the user of the change.

Before

peek 2017-06-14 17-34

AFter

peek 2017-06-14 17-46

frappe.throw(_("Tax Category can not be 'Valuation' or 'Valuation and Total' as all items are non-stock items"))
for d in tax_for_valuation:
d.db_set("category", 'Total')
msgprint("Tax Category has been changed to \"Total\" because all Items in the Purchase Order "
Copy link
Member

Choose a reason for hiding this comment

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

all messages have to be translatable _("Tax ...")

Also translatable messages cannot be broken into separate lines, and you cannot escape \ inside translatable messages.

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