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 (
|
||||
<Group mb="sm" grow>
|
||||
<NumberInput
|
||||
min={0}
|
||||
label={`${product.name}
|
||||
${product.quantity || ""}${product.quantity ? product.quantity_unit : ""}
|
||||
${
|
||||
|
||||
@@ -34,7 +34,10 @@ export function ContractRecap({ opened, close, pdfUrl }: ContractRecapProps) {
|
||||
return (
|
||||
<Modal
|
||||
opened={opened}
|
||||
onClose={close}
|
||||
onClose={() => {
|
||||
URL.revokeObjectURL(pdfUrl);
|
||||
close();
|
||||
}}
|
||||
size={"55rem"}
|
||||
title={t("contract recap", { capfirst: true })}
|
||||
>
|
||||
@@ -50,7 +53,6 @@ export function ContractRecap({ opened, close, pdfUrl }: ContractRecapProps) {
|
||||
link.href = pdfUrl;
|
||||
link.target = "_blank";
|
||||
link.click();
|
||||
URL.revokeObjectURL(pdfUrl);
|
||||
})}
|
||||
>
|
||||
<Stack>
|
||||
|
||||
Reference in New Issue
Block a user