Fixed period type display.
[fa-stable.git] / gl / manage / gl_quick_entries.php
index 2e1797b9467c658a82ae5290e3765a3a3e379139..87e770c4f89ffa5763cc5dee91301df01d33b99c 100644 (file)
@@ -214,8 +214,9 @@ if ($selected_id != -1)
                $_POST['description']  = $myrow["description"];
                $_POST['type']  = $myrow["type"];
                $_POST['base_desc']  = $myrow["base_desc"];
-               $_POST['base_amount']  = price_format($myrow["base_amount"]);
                $_POST['bal_type']  = $myrow["bal_type"];
+               $_POST['base_amount']  = $myrow["bal_type"] ?
+                       $myrow["base_amount"] : price_format($myrow["base_amount"]);
        }       
        hidden('selected_id', $selected_id);
 }