]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Kontenabgleich - Bug bei Differenz behoben und Feld read-only
authorG. Richardson <information@kivitendo-premium.de>
Wed, 17 Apr 2013 14:04:59 +0000 (16:04 +0200)
committerG. Richardson <information@kivitendo-premium.de>
Wed, 17 Apr 2013 14:04:59 +0000 (16:04 +0200)
Hat man beim Kontenabgleich im Feld "Sammelrechnungsbilanz" Werte
eingegeben, die nicht zu einer Differenz 0 geführt haben, kam es nach
Erneuern manchmal zu Formatierungsfehlern die man nicht mehr beheben
konnte.

Daher wird $form->{difference} jetzt bei jedem Update neu initialisiert.
Kann man bestimmt sauberer lösen, stellt aber erst Mal die
Funktionalität wieder her.

Außerdem wurde das Eingabefeld auf readonly gesetzt, an sich könnte man
es auch nur als Text anzeigen, sofern man das hidden behält.

bin/mozilla/rc.pl
templates/webpages/rc/step2.html

index 7d4245bfe0f8e37b5fe426ffff6cf8bb92bb03e5..f1aeb47f29e06709896567a8b2e660b2928cf670 100644 (file)
@@ -128,6 +128,9 @@ sub update {
   $::lxdebug->enter_sub;
   $::auth->assert('cash');
 
+  # reset difference as it doesn't always arrive here empty
+  $::form->{difference} = 0;
+
   RC->payment_transactions(\%::myconfig, $::form);
 
   my $i;
index baa3ac6b01640937191ea392a986ab214974935e..0270d5bbc0bc4eab2f76d3d0e971f7132c9fb727 100644 (file)
@@ -90,7 +90,7 @@
               <tr>
                 <th align=right nowrap>[% 'Difference' | $T8 %]</th>
                 <td width=10%></td>
-                <td align=right><input name=null size=11 value="[% LxERP.format_amount(difference, 2, 0) %]"></td>
+                <td align=right><input name=null size=11 value="[% LxERP.format_amount(difference, 2, 0) %]" readonly></td>
                 <input type=hidden name=difference value="[% LxERP.format_amount(difference, 2, 0) %]">
               </tr>
             </table>