Fix dynamic tax year fallback in models and upload endpoints

This commit is contained in:
Atharv1705
2026-10-03 11:46:55 +05:30
parent 31fbc85565
commit 34a2cc0098
13 changed files with 139 additions and 14 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ export default function UploadBusiness() {
const [confirmConfig, setConfirmConfig] = useState({
isOpen: false, title: "", message: "", confirmText: "OK", isDestructive: false, onConfirm: () => {}
});
const [taxYear, setTaxYear] = useState(2025);
const [taxYear, setTaxYear] = useState(new Date().getFullYear());
const [docs, setDocs] = useState([]);
const [templates, setTemplates] = useState([]);
const [loading, setLoading] = useState(false);
@@ -359,4 +359,4 @@ export default function UploadBusiness() {
</div>
</div>
);
}
}