fix negative values on contract and previsualisation blob
All checks were successful
Deploy Amap / deploy (push) Successful in 2m12s
All checks were successful
Deploy Amap / deploy (push) Successful in 2m12s
This commit is contained in:
@@ -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 : ""}
|
||||||
${
|
${
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user