}
$item_info = get_item_edit_info($_POST['stock_id']);
-
- $_POST['qty'] = qty_format(0, $_POST['stock_id'], $dec);
+ $dec = $item_info['decimals'];
+ $_POST['qty'] = number_format2(0, $dec);
$_POST['std_cost'] = price_format($item_info["standard_cost"]);
$_POST['units'] = $item_info["units"];
}
$item_info = get_item_edit_info($_POST['stock_id']);
- $_POST['qty'] = qty_format(0, $_POST['stock_id'], $dec);
+ $dec = $item_info['decimals'];
+ $_POST['qty'] = number_format2(0, $dec);
$_POST['units'] = $item_info["units"];
}
$item_info = get_item_edit_info($_POST['stock_id']);
- $_POST['qty'] = qty_format(0, $_POST['stock_id'], $dec);
+ $dec = $item_info["decimals"];
+ $_POST['qty'] = number_format2(0, $dec);
$_POST['std_cost'] = price_format($item_info["standard_cost"]);
$_POST['units'] = $item_info["units"];
}
}
$item_info = get_item_edit_info($_POST['stock_id']);
+ $dec = $item_info['decimals'];
+ $_POST['qty'] = number_format2(0, $dec);
$_POST['units'] = $item_info["units"];
- $_POST['qty'] = qty_format(0, $_POST['stock_id'], $dec);
$_POST['price'] = price_format(get_price($_POST['stock_id'], $order->customer_currency,
$order->sales_type, $order->price_factor, $order->document_date));