fix negative values on contract and previsualisation blob
All checks were successful
Deploy Amap / deploy (push) Successful in 2m12s

This commit is contained in:
2026-10-14 21:53:41 +02:00
parent c2d4d6ced9
commit f1b924b4ba
2 changed files with 5 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ export function ProductForm({ inputForm, product, shipment }: ProductFormProps)
return ( return (
<Group mb="sm" grow> <Group mb="sm" grow>
<NumberInput <NumberInput
min={0}
label={`${product.name} label={`${product.name}
${product.quantity || ""}${product.quantity ? product.quantity_unit : ""} ${product.quantity || ""}${product.quantity ? product.quantity_unit : ""}
${ ${

View File

@@ -34,7 +34,10 @@ export function ContractRecap({ opened, close, pdfUrl }: ContractRecapProps) {
return ( return (
<Modal <Modal
opened={opened} opened={opened}
onClose={close} onClose={() => {
URL.revokeObjectURL(pdfUrl);
close();
}}
size={"55rem"} size={"55rem"}
title={t("contract recap", { capfirst: true })} title={t("contract recap", { capfirst: true })}
> >
@@ -50,7 +53,6 @@ export function ContractRecap({ opened, close, pdfUrl }: ContractRecapProps) {
link.href = pdfUrl; link.href = pdfUrl;
link.target = "_blank"; link.target = "_blank";
link.click(); link.click();
URL.revokeObjectURL(pdfUrl);
})} })}
> >
<Stack> <Stack>