Commit Graph

9 Commits

Author SHA1 Message Date
sas.fajri
1e24cc78c1 Avoid search re-fetch after savedoctor in v8-all
Patch doctor_fullname and doctor_id directly in selected_transaction.details
and transactions using prm.selected_doctor from the existing action payload.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 10:37:43 +07:00
sas.fajri
ba2077894e Fix right panel buttons not updating after save/validate in v8-all
test.status in template comes from selected_transaction.details[*].status,
not from selected_transaction.status. Update details array too via shared
_applyStatusUpdate action.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 10:19:22 +07:00
sas.fajri
2cb6af7f62 Update selected_transaction after save/validate in v8-all
Keeps right panel buttons in sync with the new status without
needing a full re-search.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 10:15:06 +07:00
sas.fajri
a5913ced60 Apply list update logic to saveresult action in v8-all
Same pattern as savefisik — use So_ResultEntryID and
So_ResultEntryStatus from response to patch the list item
without re-fetching.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 09:58:08 +07:00
sas.fajri
cda6c682ce Use existing records from savefisik response to update list item
No BE change needed — records already contains So_ResultEntryID
and So_ResultEntryStatus. Map status to status_name on FE side.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 09:48:16 +07:00
sas.fajri
017567827e Fix re_id type mismatch in transaction list update after save
PHP returns re_id as string, JS transactions use number — use == instead of ===.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 09:28:30 +07:00
sas.fajri
0d0085acc6 Add debug logging for savefisik updated_trx response
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 09:26:47 +07:00
sas.fajri
70ca252c34 Avoid full list re-search after save in v8-all
Backend now returns updated_trx (re_id, status, status_name) in
savefisik response. Frontend uses it to patch just the affected
item in the transaction list, removing the costly search+get_details
round-trip on every save.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-12 09:12:22 +07:00
sas.fajri
8347aef8f4 Flatten nested repos 2026-04-27 10:13:31 +07:00