]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/gl.pl
Dialogbuchen, Betrag aus Kontoauszug verbuchen schreibschützen (Maske)
[mfinanz.git] / bin / mozilla / gl.pl
index f351a9dfcc5905ae0f8073486f8adcb745af450d..f816dcd56868ee07a49d8bd8276a51fa9d9a4912 100644 (file)
@@ -917,6 +917,12 @@ sub display_rows {
     my $copy2credit = $i == 1 ? 'onkeyup="copy_debit_to_credit()"' : '';
     my $balance     = $form->format_amount(\%::myconfig, $balances{$accno_id} // 0, 2, 'DRCR');
 
+    # if we have a bt_chart_id we disallow changing the amount of the bank account
+    if ($form->{bt_chart_id}) {
+      $debitreadonly = $creditreadonly = "readonly" if ($form->{"accno_id_$i"} eq $form->{bt_chart_id});
+      $copy2credit   = '' if $i == 1;   # and disallow copy2credit
+    }
+
     print qq|<tr valign=top>
     $accno
     <td id="chart_balance_$i" align="right">${balance}</td>