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

After Intallation erpnext_pk not able to create/update company, customer , supplier and employee #14

Open
Ubaid-AI opened this issue Mar 28, 2024 · 1 comment

Comments

@Ubaid-AI
Copy link

after installation app not able to create or update record in every doctype where any fields placed from this app
ERPNext: v14.65.3
Frappe Framework: v14.67.1

in console getting errors

script_manager.js:32 ƒ (frm) {
erpnext_pk.format_nic(frm, 'tax_nic');
}

form.js:786 ReferenceError: erpnext_pk is not defined

image

in company doctype

script_manager.js:32 ƒ (frm) {
erpnext_pk.format_ntn(frm, 'tax_ntn');
erpnext_pk.format_strn(frm, 'tax_strn');
erpnext_pk.format_nic(frm, 'tax_nic');
}

form.js:786 ReferenceError: erpnext_pk is not defined

image

i tried to rebuild app and bench migrate but no luck
please help

@ZeshanArif27
Copy link

Solution For Version 15 ERP Next

For any one who is getting this error in ERP Next version 15. The error can be resolved by copying the JS folder from ERP Next version-13 to ERP Next version-15.

Follow the below steps.

  1. Get and install the Erpnext_pk module using command.
    bench get-app erpnext_pk https://github.com/ParaLogicTech/erpnext_pk.git
    bench --site [site name] install-app erpnext_pk
  2. Extract the contents of the below attached file.
  3. Copy the folder to frappe-bench>sites>assets
  4. This will replace the current js folder which is empty
  5. Use bench start to start erpnext, the error will be resolved and the employee will be saved and NIC will also be validated.

File: js.zip

Note:

Since I was using a virtual machine for my erpnext I followed this guide on how to copy files from windows to ubuntu server.
https://unix.stackexchange.com/questions/16199/how-to-transfer-files-from-windows-to-ubuntu-on-virtualbox

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