- $_POST['amount'.$i] = number_format2(get_only_budget_trans_from_to($date_, $date_, $_POST['account'], $_POST['dim1'], $_POST['dim2']), 0);
-
- label_cell($date_);
- if (!isset($_POST['amount'.$i]))
- $_POST['amount'.$i] = '0';
- amount_cells(null, 'amount'.$i, null, 15);
+ if (get_post('update') == '')
+ $_POST['amount'.$i] = number_format2(get_only_budget_trans_from_to(
+ $date_, $date_, $_POST['account'], $_POST['dim1'], $_POST['dim2']), 0);
+
+ label_cell($date_);
+ amount_cells(null, 'amount'.$i, null, 15, null, 0);