Skip to content
Snippets Groups Projects
Commit d72835bb authored by Regis Houssin's avatar Regis Houssin
Browse files

Merge pull request #327 from marcosgdf/invoice-line-bug

Fixed a SQL error when listing lines of an invoice
parents 10d5feb9 d32ed9b3
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@
* Copyright (C) 2007 Franky Van Liedekerke <franky.van.liedekerke@telenet.be>
* Copyright (C) 2010-2011 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2012 Christophe Battarel <christophe.battarel@altairis.fr>
* Copyright (C) 2012 Marcos García <marcosgdf@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -2996,7 +2997,7 @@ class Facture extends CommonInvoice
function getLinesArray()
{
$sql = 'SELECT l.rowid, l.description, l.fk_product, l.product_type, l.qty, l.tva_tx,';
$sql.= ' l.fk_remise_except, localtax1_tx, localtax2_tx,';
$sql.= ' l.fk_remise_except, l.localtax1_tx, l.localtax2_tx,';
$sql.= ' l.remise_percent, l.subprice, l.info_bits, l.rang, l.special_code, l.fk_parent_line,';
$sql.= ' l.total_ht, l.total_tva, l.total_ttc, l.fk_product_fournisseur_price as fk_fournprice, l.buy_price_ht as pa_ht,';
$sql.= ' l.date_start, l.date_end,';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment