Allow fractional entry of Purchase Order Line Price. Upot 6 decimals.
[fa-stable.git] / purchasing / includes / ui / po_ui.inc
index 80d6a3b5a803396c549e09f363d8cfd33a4b5e9b..a91360718b3d95c6987d0f4ba8fe167e4eb48852 100644 (file)
@@ -359,7 +359,7 @@ function po_item_controls(&$order, &$rowcounter, $line_no=-1)
        alt_table_row_color($rowcounter);
        $new = $order->order_no == 0;
 
-       $dec2 = 0;
+       $dec2 = 6;
        $id = find_submit('Edit');
        if (($id != -1) && $line_no == $id)
        {
@@ -435,7 +435,7 @@ function po_item_controls(&$order, &$rowcounter, $line_no=-1)
                hidden('price', $_POST['price']);
        }       
        else    
-               amount_cells(null, 'price', null, null, null, $dec2);
+               unit_amount_cells(null, 'price');
 
        $line_total = round(input_num('qty') * input_num('price'),  user_price_dec());
        amount_cell($line_total, false, '','line_total');