added net weight, user, date etc. generates new document number with year as a prefix, restarts numbering every year

This commit is contained in:
2026-02-22 13:20:18 +02:00
parent 33b49e317d
commit 34769a84eb
10 changed files with 173 additions and 8 deletions
+2 -2
View File
@@ -360,7 +360,7 @@ export default function Main() {
<button
className="weight-set-btn"
onClick={handleSetTare}
disabled={currentWeight === null || isNaN(currentWeight)}
disabled={currentWeight === null || isNaN(currentWeight) || selectedVehicle?.tare != null}
>
Set Tare
</button>
@@ -381,7 +381,7 @@ export default function Main() {
<button
className="weight-set-btn"
onClick={handleSetGross}
disabled={currentWeight === null || isNaN(currentWeight)}
disabled={currentWeight === null || isNaN(currentWeight) || selectedVehicle?.gross != null}
>
Set Gross
</button>