From 34383051690d8c3906db58fbf44fe750d8967465 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 17 Aug 2012 15:13:10 +0200 Subject: [PATCH] FIXME: with ajax autocompleter, does not see the products that have no supplier prices because they can be selected and it creates an error message. Fix: Do not make a "print" on "hook methods", just get the result --- .../core/class/commondocgenerator.class.php | 8 +- htdocs/core/class/html.form.class.php | 127 +++++++++--------- htdocs/core/modules/action/rapport.pdf.php | 6 +- .../modules/cheque/pdf/pdf_blochet.class.php | 6 +- .../commande/doc/pdf_edison.modules.php | 14 +- .../commande/doc/pdf_einstein.modules.php | 6 +- .../doc/pdf_expedition_merou.modules.php | 6 +- .../doc/pdf_expedition_rouget.modules.php | 6 +- .../modules/expedition/modules_expedition.php | 14 +- .../modules/facture/doc/pdf_crabe.modules.php | 34 ++--- .../facture/doc/pdf_oursin.modules.php | 122 ++++++++--------- .../fichinter/doc/pdf_soleil.modules.php | 70 +++++----- .../modules/livraison/modules_livraison.php | 14 +- .../livraison/pdf/pdf_sirocco.modules.php | 6 +- .../livraison/pdf/pdf_typhon.modules.php | 70 +++++----- htdocs/core/modules/modProduct.class.php | 10 +- htdocs/core/modules/modSociete.class.php | 20 +-- .../project/pdf/pdf_baleine.modules.php | 70 +++++----- .../modules/propale/doc/pdf_azur.modules.php | 70 +++++----- .../modules/propale/doc/pdf_jaune.modules.php | 70 +++++----- .../societe/mod_codecompta_panicum.php | 2 +- .../pdf/pdf_canelle.modules.php | 70 +++++----- .../pdf/pdf_muscadet.modules.php | 70 +++++----- .../core/tpl/freeproductline_create.tpl.php | 2 +- htdocs/core/tpl/freeproductline_edit.tpl.php | 2 +- .../tpl/predefinedproductline_create.tpl.php | 2 +- .../tpl/predefinedproductline_edit.tpl.php | 2 +- htdocs/fourn/commande/fiche.php | 21 +-- htdocs/fourn/facture/fiche.php | 6 +- htdocs/product/fournisseurs.php | 2 +- htdocs/product/stock/product.php | 62 ++++----- 31 files changed, 497 insertions(+), 493 deletions(-) diff --git a/htdocs/core/class/commondocgenerator.class.php b/htdocs/core/class/commondocgenerator.class.php index cd474a141bf..9a589a06fa6 100755 --- a/htdocs/core/class/commondocgenerator.class.php +++ b/htdocs/core/class/commondocgenerator.class.php @@ -178,10 +178,10 @@ abstract class CommonDocGenerator */ function printRect($pdf, $x, $y, $l, $h, $hidetop=0, $hidebottom=0) { - if (empty($hidetop)) $pdf->line($x, $y, $x+$l, $y); - $pdf->line($x+$l, $y, $x+$l, $y+$h); - if (empty($hidebottom)) $pdf->line($x+$l, $y+$h, $x, $y+$h); - $pdf->line($x, $y+$h, $x, $y); + if (empty($hidetop)) $pdf->line($x, $y, $x+$l, $y); + $pdf->line($x+$l, $y, $x+$l, $y+$h); + if (empty($hidebottom)) $pdf->line($x+$l, $y+$h, $x, $y+$h); + $pdf->line($x, $y+$h, $x, $y); } } diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 4f1883ccda5..318f472fbda 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -1425,7 +1425,7 @@ class Form $opt = '