Better layout. Copyright notes. Mailto links. (2. run)
[fa-stable.git] / purchasing / includes / ui / po_ui.inc
index f9e820b9c97012d576db0020c41dc33950183dbe..1484b91c142570cdd4cb748047647879a14b383b 100644 (file)
@@ -310,8 +310,8 @@ function po_item_controls(&$order, $stock_id=null)
        $item_info = get_item_edit_info($_POST['stock_id']);
                $_POST['units'] = $item_info["units"];
 
-               $dec = get_qty_dec($_POST['stock_id']);
-               $_POST['qty'] = qty_format(1, $_POST['stock_id'], $dec);
+               $dec = $item_info["decimals"];
+               $_POST['qty'] = number_format2(1, $dec);
                $_POST['price'] = price_format(get_purchase_price ($order->supplier_id, $_POST['stock_id']));
                $_POST['req_del_date'] = add_days(Today(), 10);
        }