projects
/
textcart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25adf22
)
Cannot insert a supplier transaction record in Direct Supplier Invoice (certain MySql...
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Tue, 16 Oct 2012 15:00:29 +0000
(17:00 +0200)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Tue, 16 Oct 2012 15:00:29 +0000
(17:00 +0200)
purchasing/po_entry_items.php
patch
|
blob
|
history
diff --git
a/purchasing/po_entry_items.php
b/purchasing/po_entry_items.php
index 6e35437e6902767fb4de998f719ef6f3a4ad4c19..f7968337a1e1b7a18b8c6cfd5e6081557e4f994a 100644
(file)
--- a/
purchasing/po_entry_items.php
+++ b/
purchasing/po_entry_items.php
@@
-457,7
+457,8
@@
function handle_commit_order()
$inv->tax_included = $cart->tax_included;
$supp = get_supplier($cart->supplier_id);
$inv->tax_group_id = $supp['tax_group_id'];
-// $inv->ov_discount 'this isn't used at all'
+ $inv->ov_discount = 0; // ov-discount set to zero to avoid DB error on insert
+
$inv->ov_amount = $inv->ov_gst = $inv->ov_discount = 0;
foreach($cart->line_items as $key => $line) {