Add currency symbol, hide projected cost for no costs configured, add cost rounding to decimal point, fixed isExternal logic

This commit is contained in:
Matteo Parenti
2026-02-20 11:36:26 +01:00
parent 071c2c702a
commit 9f19e8a2ff
7 changed files with 40 additions and 12 deletions
+3 -1
View File
@@ -22,9 +22,10 @@ interface SpoolFormModalProps {
onClose: () => void;
spool?: InventorySpool | null;
printersWithCalibrations?: PrinterWithCalibrations[];
currencySymbol: string;
}
export function SpoolFormModal({ isOpen, onClose, spool, printersWithCalibrations = [] }: SpoolFormModalProps) {
export function SpoolFormModal({ isOpen, onClose, spool, printersWithCalibrations = [], currencySymbol }: SpoolFormModalProps) {
const { t } = useTranslation();
const queryClient = useQueryClient();
const { showToast } = useToast();
@@ -471,6 +472,7 @@ export function SpoolFormModal({ isOpen, onClose, spool, printersWithCalibration
formData={formData}
updateField={updateField}
spoolCatalog={spoolCatalog}
currencySymbol={currencySymbol}
/>
</div>