Skip to content

TASK-2026-00402: Preserve manual daily batta values in Bureau Trip Sheet after save#1458

Merged
SherinKR merged 1 commit intodevelopfrom
create_batta_claim_bureau_ts
Mar 24, 2026
Merged

TASK-2026-00402: Preserve manual daily batta values in Bureau Trip Sheet after save#1458
SherinKR merged 1 commit intodevelopfrom
create_batta_claim_bureau_ts

Conversation

@ajmalroshan123
Copy link
Copy Markdown
Contributor

Feature description

Preserve manually entered daily batta values in Bureau Trip Sheet after save, and keep batta, total_daily_batta, and total_driver_batta consistent between instant UI updates and backend-saved values.

Solution description

Updated backend batta logic to retain user-entered daily batta (overnight/non-overnight) during validate so save no longer overwrites it with policy values, then recompute trip batta using day-based calculation. Added backend total_driver_batta calculation and aligned client-side calculate_batta / allowance flow to use the same formula for immediate UI updates.

Output screenshots (optional)

Screencast.from.24-03-26.01.04.59.PM.IST.webm

Was this feature tested on these browsers?

  • Chrome

@SherinKR SherinKR merged commit f08d147 into develop Mar 24, 2026
@SherinKR SherinKR deleted the create_batta_claim_bureau_ts branch March 24, 2026 08:51
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.

2 participants