Feature: Import leave balances from a file
Description
HR imports leave balances from a CSV or XLSX file of at most 5000 rows with import
(POST /), on the list of leave balances. Each row books an adjustment: the quantity in
delta mode, the difference to the balance at the effective date in target mode, nothing for a difference
of 0. The import is a dry run unless dry is false, and books all rows or none; an invalid row rejects the
file with 422 and violations at rows.<row>.<column>, where a value from the file is escaped against formula
injection. get returns a template with the column codes and a help sheet in the
reader's language.
Impact
The new table leave_ keeps every upload with its file hash, the requester and the outcome.
Ledger entries of an import have the source balance.