Compare commits

...

2 Commits

Author SHA1 Message Date
576fc434dc version changed to 02.53 2026-01-24 12:02:19 +03:30
cfc4b8cc53 add: submit tag distribution numbers validation 2026-01-24 12:01:56 +03:30
2 changed files with 16 additions and 2 deletions

View File

@@ -249,7 +249,21 @@ export const SubmitTagDistribution = ({ item, getData }: any) => {
/>
))}
<Button type="submit">{isEdit ? "ویرایش" : "ثبت"}</Button>
<Button
disabled={
batches.length === 0 ||
batches.some(
(b) =>
b.count === "" ||
b.count === undefined ||
b.count === null ||
Number(b.count) <= 0
)
}
type="submit"
>
{isEdit ? "ویرایش" : "ثبت"}
</Button>
</Grid>
</form>
);

View File

@@ -1 +1 @@
02.52
02.53