From 77dd67e4bf21abaf60bc434b9cd8f766f233516d Mon Sep 17 00:00:00 2001 From: gkbishnoi07 Date: Tue, 11 Aug 2026 18:32:14 +0000 Subject: [PATCH] fix(dispense): make Manual "Qty to Dispense" editable again The Material -> Zard migration changed this field from [disabled]="!batch.value.batchNo" (a no-op on reactive-form controls, so it was always editable) to [readonly]="!batch.value.batchNo", which the DOM honours - so the field became read-only until a batch was picked. Remove the gate to restore the long-standing always-editable behaviour. Fixes MMU bugfest [33]. --- .../select-batch/select-batch.component.html | 1 - 1 file changed, 1 deletion(-) diff --git a/src/app/app-modules/inventory/medicine-dispense/manual-medicine-dispense/select-batch/select-batch.component.html b/src/app/app-modules/inventory/medicine-dispense/manual-medicine-dispense/select-batch/select-batch.component.html index 4c2d2f2..0bb323c 100644 --- a/src/app/app-modules/inventory/medicine-dispense/manual-medicine-dispense/select-batch/select-batch.component.html +++ b/src/app/app-modules/inventory/medicine-dispense/manual-medicine-dispense/select-batch/select-batch.component.html @@ -131,7 +131,6 @@ " allowText="number" [attr.maxlength]="('' + batch.value.quantityOnBatch).length" - [readonly]="!batch.value.batchNo" name="quantityOfDispense" formControlName="quantityOfDispense" (keyup)="calculateDispenseQuantity()"