v1.8.0: warehouse module (16 commits), docházka mzda model, leave_type=holiday removal, api.ts race fix

Highlights:
- Warehouse module: receipts, issues, reservations, inventory, reports, dashboard,
  master data (categories, suppliers, locations), FIFO service, integration tests
- Docházka: mzda PDF counting model (Odpracováno / Vč. svátků / Přesčas / Svátek /
  So/Ne / Noc) with Czech weekday names and decimal hours
- AttendanceAdmin/AttendanceHistory KPI cards unified to mzda formula with
  fund bar colored by delta, badges for Práce/Dov/Nem/Sv/Nep
- Remove leave_type=holiday entirely (auto-computed from Czech public holidays)
- Allow multiple work shifts per day (overlap detection only)
- Pre-flight refresh in api.ts eliminates spurious 401s on fresh page loads
- Prisma: company_settings gets 6 nullable columns for warehouse numbering
  (PRI/VYD/INV prefixes, default patterns); migration seeds defaults
This commit is contained in:
BOHA
2026-06-03 23:13:10 +02:00
parent dac45baaa8
commit 5233db2002
149 changed files with 11132 additions and 26950 deletions

View File

@@ -16,7 +16,7 @@ const DEFAULT_INVOICE_PATTERN = "{YY}{CODE}{NNNN}";
* Apply a numbering pattern template.
* Placeholders: {YYYY}, {YY}, {PREFIX}, {CODE}, {N+} (padding = count of N's)
*/
function applyPattern(
export function applyPattern(
pattern: string,
vars: { year: number; prefix: string; code: string; seq: number },
): string {
@@ -52,7 +52,7 @@ async function getSettings() {
* If `tx` is provided, the increment happens inside the caller's transaction
* (no nested transaction is created).
*/
async function getNextSequence(
export async function getNextSequence(
type: string,
year: number,
tx?: TxClient,