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

Submit a Delivery Note if Delivery Note is mandatory to create Sales Invoice #169

Open
saurabh6790 opened this issue Aug 22, 2017 · 0 comments

Comments

@saurabh6790
Copy link
Member

saurabh6790 commented Aug 22, 2017

WN-SUP27011

Traceback (most recent call last):
  File "/home/frappe/benches/bench-2017-08-16/apps/erpnext_shopify/erpnext_shopify/sync_orders.py", line 22, in sync_shopify_orders
    create_order(shopify_order, shopify_settings)
  File "/home/frappe/benches/bench-2017-08-16/apps/erpnext_shopify/erpnext_shopify/sync_orders.py", line 54, in create_order
    create_sales_invoice(shopify_order, shopify_settings, so)
  File "/home/frappe/benches/bench-2017-08-16/apps/erpnext_shopify/erpnext_shopify/sync_orders.py", line 100, in create_sales_invoice
    si.submit()
  File "/home/frappe/benches/bench-2017-08-16/apps/frappe/frappe/model/document.py", line 741, in submit
    self._submit()
  File "/home/frappe/benches/bench-2017-08-16/apps/frappe/frappe/model/document.py", line 730, in _submit
    self.save()
  File "/home/frappe/benches/bench-2017-08-16/apps/frappe/frappe/model/document.py", line 230, in save
    return self._save(*args, **kwargs)
  File "/home/frappe/benches/bench-2017-08-16/apps/frappe/frappe/model/document.py", line 253, in _save
    self.insert()
  File "/home/frappe/benches/bench-2017-08-16/apps/frappe/frappe/model/document.py", line 192, in insert
    self.run_before_save_methods()
  File "/home/frappe/benches/bench-2017-08-16/apps/frappe/frappe/model/document.py", line 775, in run_before_save_methods
    self.run_method("validate")
  File "/home/frappe/benches/bench-2017-08-16/apps/frappe/frappe/model/document.py", line 666, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "/home/frappe/benches/bench-2017-08-16/apps/frappe/frappe/model/document.py", line 887, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/frappe/benches/bench-2017-08-16/apps/frappe/frappe/model/document.py", line 870, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/frappe/benches/bench-2017-08-16/apps/frappe/frappe/model/document.py", line 660, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/frappe/benches/bench-2017-08-16/apps/erpnext/erpnext/accounts/doctype/sales_invoice/sales_invoice.py", line 60, in validate
    self.so_dn_required()
  File "/home/frappe/benches/bench-2017-08-16/apps/erpnext/erpnext/accounts/doctype/sales_invoice/sales_invoice.py", line 412, in so_dn_required
    msgprint(_("{0} is mandatory for Item {1}").format(i,d.item_code), raise_exception=1)
  File "/home/frappe/benches/bench-2017-08-16/apps/frappe/frappe/__init__.py", line 309, in msgprint
    _raise_exception()
  File "/home/frappe/benches/bench-2017-08-16/apps/frappe/frappe/__init__.py", line 284, in _raise_exception
    raise ValidationError(encode(msg))
ValidationError: Delivery Note is mandatory for Item PGL-61245
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

No branches or pull requests

1 participant