implemented pr (minor) feedback

This commit is contained in:
behrinml
2026-08-06 20:28:16 +02:00
parent dd1d40b0d4
commit 2e5d36d680
8 changed files with 201 additions and 122 deletions
+1
View File
@@ -2562,6 +2562,7 @@ export interface PrintQueueBulkUpdate {
// Auto-print G-code injection
gcode_injection?: boolean;
cost_center_id?: number | null;
estimated_cost?: number | null;
}
export interface PrintQueueBulkUpdateResponse {
+2 -2
View File
@@ -489,7 +489,7 @@ export function FinancePage() {
data: {
user_id: editTransactionUserId || undefined,
cost_center_id: editTransactionCostCenterId || undefined,
amount: amount || undefined,
amount: amount ?? undefined,
description: editTransactionDescription || undefined,
},
});
@@ -510,7 +510,7 @@ export function FinancePage() {
showToast(t('finance.amountInvalid', 'Amount must be a valid number'), 'error');
return;
}
if (amount > 0) amount = -Math.abs(amount);
amount = Math.abs(amount);
manualPrintMutation.mutate({
user_id: manualPrintUserId,