]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Form.pm
Auftrags-Controller: PDF-Download: Dateiname als session_value speichern.
[mfinanz.git] / SL / Form.pm
index c59669c41a77a075a8fe873f3e84b2783edbeaee..eee73db63cf767f99a7ee9d6f8139abcc995ed3d 100644 (file)
@@ -469,7 +469,7 @@ sub header {
   # standard css for all
   # this should gradually move to the layouts that need it
   $layout->use_stylesheet("$_.css") for qw(
-    main menu common list_accounts jquery.autocomplete
+    common main menu list_accounts jquery.autocomplete
     jquery.multiselect2side
     ui-lightness/jquery-ui
     jquery-ui.custom
@@ -839,7 +839,7 @@ sub format_amount {
   if ($places || $p[1]) {
     $amount .= $d[0]
             .  ( $p[1] || '' )
-            .  (0 x (abs($places || 0) - length ($p[1]||'')));           # pad the fraction
+            .  (0 x max(abs($places || 0) - length ($p[1]||''), 0));     # pad the fraction
   }
 
   $amount = do {