From 1fe1597d6fb78bda2d082bf3fc9549d6aef4c9b7 Mon Sep 17 00:00:00 2001 From: A R R R Associates Date: Wed, 2 Sep 2026 13:29:26 +0530 Subject: [PATCH] Refine Tally upload UI in engagement workspace --- .../engagements/_engagement_resources.html | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/app/modules/services/templates/services/engagements/_engagement_resources.html b/app/modules/services/templates/services/engagements/_engagement_resources.html index 83406f5..aaceec9 100644 --- a/app/modules/services/templates/services/engagements/_engagement_resources.html +++ b/app/modules/services/templates/services/engagements/_engagement_resources.html @@ -128,9 +128,9 @@

Replacement/version uploads use the existing document container and retain the ERP audit/version history.

-
+
- {% for item in ['GENERAL','CLIENT_DOCUMENT','WORKING_PAPER','BANK_STATEMENT','TRIAL_BALANCE','LEDGER','GST_RETURN','INCOME_TAX','ROC','AUDIT_REPORT','SIGNED_OUTPUT','ACKNOWLEDGEMENT'] %}{% endfor %}
@@ -148,7 +148,7 @@
Tally Data is stored at engagement level and remains separate from task-category evidence.
- +
@@ -166,6 +166,9 @@ const uploadTargetField = form.querySelector('[data-upload-target-field]'); const tallyYearWrap = form.querySelector('[data-tally-year-wrap]'); const tallyYear = form.querySelector('[data-tally-year-select]'); + const documentTypeWrap = form.querySelector('[data-document-type-wrap]'); + const documentTypeSelect = form.querySelector('[data-document-type-select]'); + const uploadSubmit = form.querySelector('[data-upload-submit]'); const engagementId = form.getAttribute('data-engagement-id'); const filterExistingDocuments = function () { @@ -192,11 +195,17 @@ form.action = '/documents/tasks/' + taskId + '/upload'; uploadTargetField.value = 'category'; tallyYearWrap.classList.add('hidden'); + if (documentTypeWrap) documentTypeWrap.classList.remove('hidden'); + if (documentTypeSelect) documentTypeSelect.disabled = false; + if (uploadSubmit) uploadSubmit.textContent = 'Upload Document'; note.textContent = 'This file will be linked to the selected category through its existing engagement task, preserving evidence and AQMM behaviour.'; } else { form.action = '/documents/engagements/' + engagementId + '/upload'; uploadTargetField.value = 'tally'; tallyYearWrap.classList.remove('hidden'); + if (documentTypeWrap) documentTypeWrap.classList.add('hidden'); + if (documentTypeSelect) documentTypeSelect.disabled = true; + if (uploadSubmit) uploadSubmit.textContent = 'Upload Tally Data'; note.textContent = 'Tally Data is stored under the selected financial year. Current-year and previous-year datasets remain separate for opening-balance comparison.'; } filterExistingDocuments();