From: Joe Hunt Date: Tue, 16 Oct 2012 15:00:29 +0000 (+0200) Subject: Cannot insert a supplier transaction record in Direct Supplier Invoice (certain MySql... X-Git-Tag: 2.3-final~398 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=0c794db98d716ec8823435d8423c98a12bebba66;p=fa-stable.git Cannot insert a supplier transaction record in Direct Supplier Invoice (certain MySql versions and setup). --- diff --git a/purchasing/po_entry_items.php b/purchasing/po_entry_items.php index 6e35437e..f7968337 100644 --- 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) {