feat: cash-only registers, day book sections and DD amendments
build-run / Run Lint, Build and Deploy (push) Canceled after 0s
Publish Image in Docker Hub / build (push) Canceled after 0s
Playwright E2E Tests / Run Playwright Tests (push) Canceled after 0s
Tests / testRigor (push) Canceled after 0s

This commit is contained in:
2026-09-03 18:26:22 +05:30
parent 6442562df0
commit fbce73fd17
111 changed files with 9076 additions and 3507 deletions
@@ -226,7 +226,11 @@ export function uinTaxYearPart(fy: string): string {
*/
export function buildUin(sequence: number, fy: string, tan: string): string {
const digits = `${Math.max(0, Math.floor(sequence))}`.slice(-9).padStart(9, '0');
const normalisedTan = (tan || '').toUpperCase().replace(/[^A-Z0-9]/g, '').padEnd(10, 'X').slice(0, 10);
const normalisedTan = (tan || '')
.toUpperCase()
.replace(/[^A-Z0-9]/g, '')
.padEnd(10, 'X')
.slice(0, 10);
return `D${digits}${uinTaxYearPart(fy)}${normalisedTan}`;
}