mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-21 10:15:04 +02:00
implemented pr (minor) feedback
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user