How does the remaining expense balance work across stock entries?
The system automatically tracks how much of each expense has been allocated across all stock entries and displays the remaining balance next to each expense in the selection list, for example: #000076 — Remaining: 60% (600 SAR). The mechanism works as follows:
- Percentage-based allocation: Only the allocated portion is consumed and the remaining balance stays available for other entries. Example: 40% of a shipping expense is allocated to one entry — 60% remains available for others.
- When an allocation line or the entire allocation form is deleted, the consumed amount is immediately returned to the available expense balance.
If a percentage exceeding the available balance is entered, a message appears showing the available percentage, and saving is blocked until it is corrected.