Dear Community,
I received an error when creating a Purchase Receipt.
I have installed ERPNext Shopify.
ERPNext: v8.0.44 (master)
ERPNext Shopify: v2.0.10 (master)
Frappe Framework: v8.0.64 (master)
Traceback (most recent call last):
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 19, in savedocs
doc.submit()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 740, in submit
self._submit()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 729, in _submit
self.save()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 230, in save
return self._save(*args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 280, in _save
self.run_post_save_methods()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 792, in run_post_save_methods
self.run_method(“on_submit”)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 666, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 891, in composer
return composed(self, method, *args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 874, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 660, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py”, line 129, in on_submit
self.update_stock_ledger()
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/controllers/buying_controller.py”, line 371, in update_stock_ledger
via_landed_cost_voucher=via_landed_cost_voucher)
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/controllers/stock_controller.py”, line 267, in make_sl_entries
make_sl_entries(sl_entries, is_amended, allow_negative_stock, via_landed_cost_voucher)
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/stock/stock_ledger.py”, line 38, in make_sl_entries
update_bin(args, allow_negative_stock, via_landed_cost_voucher)
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/stock/utils.py”, line 97, in update_bin
bin.update_stock(args, allow_negative_stock, via_landed_cost_voucher)
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/stock/doctype/bin/bin.py”, line 51, in update_stock
}, allow_negative_stock=allow_negative_stock, via_landed_cost_voucher=via_landed_cost_voucher)
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/stock/stock_ledger.py”, line 107, in init
self.build()
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/stock/stock_ledger.py”, line 119, in build
self.update_bin()
File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/stock/stock_ledger.py”, line 145, in update_bin
bin_doc.save(ignore_permissions=True)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 230, in save
return self._save(*args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 280, in _save
self.run_post_save_methods()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 789, in run_post_save_methods
self.run_method(“on_update”)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 666, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 891, in composer
return composed(self, method, *args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py”, line 876, in runner
add_to_return_value(self, f(self, method, *args, **kwargs))
File “/home/ubuntu/frappe-bench/apps/erpnext_shopify/erpnext_shopify/sync_products.py”, line 542, in trigger_update_item_stock
update_item_stock(doc.item_code, shopify_settings, doc)
File “/home/ubuntu/frappe-bench/apps/erpnext_shopify/erpnext_shopify/sync_products.py”, line 587, in update_item_stock
raise e
HTTPError: 422 Client Error: Unprocessable Entity
Thanks!