• DevPilot's avatar
    feat(hr,accounting): tax bracket admin screen, scoped voucher account lookup, gap drill-down · b16d18aa
    DevPilot authored
    Three things that were asked for and were genuinely missing:
    
    1. ضريبة كسب العمل had no screen at all — the brackets lived only in
       hr_tax_brackets and could only be changed with SQL. Adds a proper
       admin screen: brackets are versioned as a set per effective_date,
       old sets are kept (never deleted) so past payroll stays explainable,
       and activating a set deactivates the others. The form validates that
       brackets are contiguous, that only the last one is open-ended, and
       auto-fills the next bracket's start. A built-in simulator shows the
       tax on any annual income so the accountant can verify the set before
       running payroll.
    
       Also hardens the live calculator: IncomeTaxService summed every row
       flagged active regardless of effective_date, so two overlapping
       active sets produced a silently wrong tax. It now uses the newest
       active set only.
    
    2. The voucher screen searched the entire chart of accounts for both
       sides, so you could pick a fixed-asset account as the cash side or a
       cash account as the expense side — the latter trips the "same as the
       cash account" guard and the voucher just refuses to save. The lookup
       is now scoped per side: cash/bank accounts for the counter side, and
       expense (صرف) or revenue (قبض) accounts for the line side depending
       on the voucher's direction.
    
    3. The accounting gaps screen showed only a count per gap. Each gap now
       has a "عرض التفاصيل" button that lists the actual documents behind
       that number — id, date, party, quantity, recorded amount and status
       — so the accountant can check the cases before choosing a rate.
    b16d18aa
Name
Last commit
Last update
..
Academies Loading commit data...
AcademyContracts Loading commit data...
AccessMatrix Loading commit data...
Accounting Loading commit data...
Achievements Loading commit data...
ActivitySubscriptions Loading commit data...
Alerts Loading commit data...
Archive Loading commit data...
Auctions Loading commit data...
Audit Loading commit data...
Auth Loading commit data...
Branches Loading commit data...
Carnets Loading commit data...
Cashier Loading commit data...
Children Loading commit data...
Coaches Loading commit data...
Dashboard Loading commit data...
Death Loading commit data...
Disciplines Loading commit data...
Divorce Loading commit data...
Documents Loading commit data...
Facilities Loading commit data...
FacilityDashboards Loading commit data...
FacilityGrids Loading commit data...
Fines Loading commit data...
Foreign Loading commit data...
Forms Loading commit data...
HR Loading commit data...
Honorary Loading commit data...
Installments Loading commit data...
Interviews Loading commit data...
Inventory Loading commit data...
MatchCenter Loading commit data...
MedicalBoard Loading commit data...
Members Loading commit data...
News Loading commit data...
Notifications Loading commit data...
ParentPortal Loading commit data...
Payments Loading commit data...
PlayerAffairs Loading commit data...
PlayerApi Loading commit data...
PlayerAuth Loading commit data...
PlaygroundAdmin Loading commit data...
PoolManagement Loading commit data...
Pricing Loading commit data...
Procurement Loading commit data...
Receipts Loading commit data...
Rentals Loading commit data...
Reports Loading commit data...
Reservations Loading commit data...
Roles Loading commit data...
Rules Loading commit data...
Sales Loading commit data...
Scheduling Loading commit data...
Seasonal Loading commit data...
ServiceCatalog Loading commit data...
Sessions Loading commit data...
Settings Loading commit data...
Sports Loading commit data...
SportsActivity Loading commit data...
SportsDashboard Loading commit data...
Spouses Loading commit data...
Subscriptions Loading commit data...
Support Loading commit data...
Temporary Loading commit data...
Tournaments Loading commit data...
TrainerPortal Loading commit data...
Training Loading commit data...
TrainingGroups Loading commit data...
Transfers Loading commit data...
Treasury Loading commit data...
Tutorials Loading commit data...
Users Loading commit data...
Waiver Loading commit data...
Workflow Loading commit data...