projects
/
textcart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df4b226
)
[0000609] Invalid costing results due to changes in PO rate
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Thu, 10 Mar 2011 10:17:14 +0000
(11:17 +0100)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Thu, 10 Mar 2011 10:17:14 +0000
(11:17 +0100)
purchasing/includes/ui/po_ui.inc
patch
|
blob
|
history
diff --git
a/purchasing/includes/ui/po_ui.inc
b/purchasing/includes/ui/po_ui.inc
index d5ae6fc1e3b6f50ef3fe83a0c700bb15b5aa13d9..c7f8d2a926ed79a8fce27c8ca2fb13931c7f78cf 100644
(file)
--- a/
purchasing/includes/ui/po_ui.inc
+++ b/
purchasing/includes/ui/po_ui.inc
@@
-423,7
+423,10
@@
function po_item_controls(&$order, &$rowcounter, $line_no=-1)
label_cell($_POST['units'], '', 'units');
if ($order->trans_type == ST_PURCHORDER)
date_cells(null, 'req_del_date', '', null, 0, 0, 0);
- amount_cells(null, 'price', null, null, null, $dec2);
+ if ($qty_rcvd > 0)
+ amount_decimal_cell($_POST['price']);
+ else
+ amount_cells(null, 'price', null, null, null, $dec2);
//$line_total = $_POST['qty'] * $_POST['price'] * (1 - $_POST['Disc'] / 100);
$line_total = round(input_num('qty') * input_num('price'), user_price_dec());