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:
parent
56b0490229
commit
6a3b371acc
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ function currentFY(): string {
|
||||||
const year = now.getFullYear();
|
const year = now.getFullYear();
|
||||||
const fyStart = month >= 4 ? year : year - 1;
|
const fyStart = month >= 4 ? year : year - 1;
|
||||||
const fyEnd = fyStart + 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. */
|
/** Find the next sequential PO ID (min 200) by scanning existing structured PO numbers. */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue