Bulk Payment Entry from PO

While creating payment entry From Purchase Order

I have selected the 2 POs and created the payment entry it gives me this error

POST http://localhost:8000/api/method/erpnext.utilities.bulk_transaction.transaction_processing 417 (EXPECTATION FAILED)
send @ jquery.js:10109
ajax @ jquery.js:9690
frappe.request.call @ request.js:268
frappe.call @ request.js:105
(anonymous) @ bulk_transaction_processing.js:16
primary_action @ messages.js:34
(anonymous) @ dialog.js:165
dispatch @ jquery.js:5430
elemData.handle @ jquery.js:5234
request.js:457

   Traceback (most recent call last):

File “apps/erpnext/erpnext/utilities/bulk_transaction.py”, line 37, in job
task(doc_name, from_doctype, to_doctype)
File “apps/erpnext/erpnext/utilities/bulk_transaction.py”, line 102, in task
obj = mapper[from_doctype][to_doctype](from_doctype, doc_name)
KeyError: ‘Advance Payment’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 66, in application
response = frappe.api.handle()
File “apps/frappe/frappe/api.py”, line 54, in handle
return frappe.handler.handle()
File “apps/frappe/frappe/handler.py”, line 45, in handle
data = execute_cmd(cmd)
File “apps/frappe/frappe/handler.py”, line 83, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “apps/frappe/frappe/init.py”, line 1607, in call
return fn(*args, **newargs)
File “apps/erpnext/erpnext/utilities/bulk_transaction.py”, line 28, in transaction_processing
job(deserialized_data, from_doctype, to_doctype)
File “apps/erpnext/erpnext/utilities/bulk_transaction.py”, line 41, in job
update_logger(
File “apps/erpnext/erpnext/utilities/bulk_transaction.py”, line 148, in update_logger
log_doc.save()
File “apps/frappe/frappe/model/document.py”, line 305, in save
return self._save(*args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 338, in _save
self._validate_links()
File “apps/frappe/frappe/model/document.py”, line 882, in validate_links
frappe.throw(
(“Could not find {0}”).format(msg), frappe.LinkValidationError)
File “apps/frappe/frappe/init.py”, line 525, in throw
msgprint(
File “apps/frappe/frappe/init.py”, line 493, in msgprint
_raise_exception()
File “apps/frappe/frappe/init.py”, line 442, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.LinkValidationError: Could not find Row #3: To Doctype: Advance Payment

Hi @dineshpanchal432,

As per your scenario we did check on PO as well as SO, so found the issue.
So we did create a PR in GitHub for issue.

If merged PR then your issue will resolve.

Thank You!

2 Likes

That’s great.

Thank you

Hi @dineshpanchal432,

PR is Merged.
Now it’s available on ERPNext Version v14.23.0.

So please check it.

Thank You!

Thank you.

Now its working