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

Error while placing an order on Webshop #1660

Open
1 task done
simran-baliyan opened this issue Feb 4, 2024 · 3 comments
Open
1 task done

Error while placing an order on Webshop #1660

simran-baliyan opened this issue Feb 4, 2024 · 3 comments
Labels
question Further information is requested

Comments

@simran-baliyan
Copy link

simran-baliyan commented Feb 4, 2024

Information about bug

When we try to place an order on Webshop, it throws an error.
Kindly fix it.

Version

ERPNext: v15.11.1 (version-15)
Frappe Framework: v15.12.0 (version-15)
India Compliance: v15.5.1 (version-15)
Screenshot 2024-02-03 221104
Screenshot 2024-02-03 214723
Screenshot 2024-02-03 215702
Screenshot 2024-02-03 221916

We are a regular payer , it shows composition.

Relevant log output / Stack trace / Full Error Message.

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@simran-baliyan simran-baliyan added the bug Something isn't working label Feb 4, 2024
@simran-baliyan
Copy link
Author

@vorasmit Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 106, in application
frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 49, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/init.py", line 1684, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
return func(*args, **kwargs)
File "apps/webshop/webshop/webshop/shopping_cart/cart.py", line 135, in place_order
sales_order.insert()
File "apps/frappe/frappe/model/document.py", line 286, in insert
self.run_before_save_methods()
File "apps/frappe/frappe/model/document.py", line 1085, in run_before_save_methods
self.run_method("validate")
File "apps/frappe/frappe/model/document.py", line 954, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1320, in composer
return composed(self, method, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1304, in runner
add_to_return_value(self, f(self, method, *args, **kwargs))
File "apps/india_compliance/india_compliance/gst_india/overrides/transaction.py", line 1309, in validate_transaction
valid_accounts = validate_gst_accounts(doc, is_sales_transaction) or ()
File "apps/india_compliance/india_compliance/gst_india/overrides/transaction.py", line 344, in validate_gst_accounts
_throw(
File "apps/india_compliance/india_compliance/gst_india/overrides/transaction.py", line 228, in _throw
frappe.throw(message, title=title or _("Invalid GST Account"))
File "apps/frappe/frappe/init.py", line 578, in throw
msgprint(
File "apps/frappe/frappe/init.py", line 550, in msgprint
_raise_exception()
File "apps/frappe/frappe/init.py", line 501, in _raise_exception
raise exc
frappe.exceptions.ValidationError: Row #1: Cannot charge IGST for intra-state supplies

@simran-baliyan
Copy link
Author

@resilient-tech ?

@vorasmit
Copy link
Collaborator

This looks more likely an issue from the webshop app or your configurations.
A validation error is raised as an incorrect tax template is used.

@vorasmit vorasmit added question Further information is requested and removed bug Something isn't working labels Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants