Skip to content

fix: repair the desk client scripts and pages for version-16 - #440

Open
av-dev2 wants to merge 13 commits into
Aakvatech-Limited:version-16-hotfixfrom
av-dev2:fix/v16-desk-client-scripts
Open

fix: repair the desk client scripts and pages for version-16#440
av-dev2 wants to merge 13 commits into
Aakvatech-Limited:version-16-hotfixfrom
av-dev2:fix/v16-desk-client-scripts

Conversation

@av-dev2

@av-dev2 av-dev2 commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Repairs the Desk client scripts and custom pages on version-16. Found by opening every csf_tz form and page in a real browser (Playwright + Chrome) as Administrator. Each commit covers one file.

Fixed

  • Bank Reconciliation is gone from ERPNext (replaced by Bank Reconciliation Tool in v13). The doctype_js hook and its client script pointed at a DocType that no longer exists, and the script called a method that is not whitelisted. Both removed.
  • Stock Entry raised a 500 on every new form: csf_tz.custom_api.get_warehouse_options was called without company. The script now waits until a company is set.
  • Sales Order threw on load — the settings promise was read before it existed, so settings.limit_uom_as_item_uom hit undefined.
  • BOM threw on load — the script queried an additional_costs child table that this app does not install.
  • The QR scan page never started. Its template was a complete HTML document, doctype and <head> included, injected into a Desk page, so the browser reported Unexpected token '<'. It is now a fragment, and the scanner library is loaded explicitly with a readable message when it cannot be reached.
  • Order Track had table fields pointing at Order Progress and Order Tracking Item, DocTypes that no app defines. They broke the form and stopped the v16 test runner from resolving links. The client script also called a make_product_inspection method that does not exist.
  • Journal entry and report links used /app/...; v16 reroutes /app to /desk.

Verification

Every affected form and page was reloaded in the browser afterwards and renders with no console or page error. test_client_script_refs (companion tests branch) now asserts that every server method named in a csf_tz client script exists and is whitelisted.

av-dev2 added a commit to av-dev2/csf_tz that referenced this pull request Aug 30, 2026
fix: repair the desk client scripts and pages for version-16- Aakvatech-Limited#440
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

Successfully merging this pull request may close these issues.

1 participant