fix(po-number): FY format changed to 2024-25 style

PO numbers now end with e.g. PMS/HNR1/200/2025-26

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Hardik 2026-05-31 01:57:48 +05:30
parent 56b0490229
commit 6a3b371acc

View file

@ -18,7 +18,7 @@ function currentFY(): string {
const year = now.getFullYear();
const fyStart = month >= 4 ? year : year - 1;
const fyEnd = fyStart + 1;
return `${String(fyStart).slice(-2)}${String(fyEnd).slice(-2)}`;
return `${fyStart}-${String(fyEnd).slice(-2)}`;
}
/** Find the next sequential PO ID (min 200) by scanning existing structured PO numbers. */