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

Paid Amount is Mandatory #136

Open
addymuliady opened this issue Nov 28, 2016 · 0 comments
Open

Paid Amount is Mandatory #136

addymuliady opened this issue Nov 28, 2016 · 0 comments
Assignees

Comments

@addymuliady
Copy link

Received error upon sync.

Traceback (most recent call last):
File "/home/ubuntu/frappe-bench/apps/erpnext_shopify/erpnext_shopify/sync_orders.py", line 22, in sync_shopify_orders
create_order(shopify_order, shopify_settings)
File "/home/ubuntu/frappe-bench/apps/erpnext_shopify/erpnext_shopify/sync_orders.py", line 54, in create_order
create_sales_invoice(shopify_order, shopify_settings, so)
File "/home/ubuntu/frappe-bench/apps/erpnext_shopify/erpnext_shopify/sync_orders.py", line 99, in create_sales_invoice
make_payament_entry_against_sales_invoice(si, shopify_settings)
File "/home/ubuntu/frappe-bench/apps/erpnext_shopify/erpnext_shopify/sync_orders.py", line 108, in make_payament_entry_against_sales_invoice
payemnt_entry.submit()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 723, in submit
self._submit()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 712, in _submit
self.save()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 233, in save
return self._save(*args, **kwargs)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 252, in save
self.insert()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 203, in insert
self.run_before_save_methods()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 753, in run_before_save_methods
self.run_method("validate")
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 651, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 879, in composer
return composed(self, method, *args, **kwargs)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 862, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 645, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File "/home/ubuntu/frappe-bench/apps/erpnext/erpnext/accounts/doctype/payment_entry/payment_entry.py", line 43, in validate
self.validate_mandatory()
File "/home/ubuntu/frappe-bench/apps/erpnext/erpnext/accounts/doctype/payment_entry/payment_entry.py", line 165, in validate_mandatory
frappe.throw(
("{0} is mandatory").format(self.meta.get_label(field)))
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py", line 300, in throw
msgprint(msg, raise_exception=exc, title=title, indicator='red')
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py", line 293, in msgprint
_raise_exception()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py", line 266, in _raise_exception
raise raise_exception, encode(msg)
ValidationError: Paid Amount is mandatory

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

2 participants