From 6e0ffa7cdf6c64c5321cc3a516cd93eeae436009 Mon Sep 17 00:00:00 2001 From: ywarnier Date: Thu, 29 May 2008 20:29:28 +0000 Subject: [PATCH] Added default box size of 5 lines for supplier invoice boxes to match client invoice boxes --- htdocs/includes/boxes/box_factures_fourn.php | 20 +++++++++++++++++++ .../includes/boxes/box_factures_fourn_imp.php | 18 +++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/htdocs/includes/boxes/box_factures_fourn.php b/htdocs/includes/boxes/box_factures_fourn.php index f2df39e7fb6..3e966acd79e 100644 --- a/htdocs/includes/boxes/box_factures_fourn.php +++ b/htdocs/includes/boxes/box_factures_fourn.php @@ -118,6 +118,26 @@ class box_factures_fourn extends ModeleBoxes { $i++; } + + $i=$num; + while ($i < $max) + { + if ($num==0 && $i==$num) + { + $this->info_box_contents[$i][0] = array('align' => 'center','text'=>$langs->trans("NoUnpayedCustomerBills")); + $this->info_box_contents[$i][1] = array('text'=>' '); + $this->info_box_contents[$i][2] = array('text'=>' '); + $this->info_box_contents[$i][3] = array('text'=>' '); + $this->info_box_contents[$i][4] = array('text'=>' '); + } else { + $this->info_box_contents[$i][0] = array('text'=>' '); + $this->info_box_contents[$i][1] = array('text'=>' '); + $this->info_box_contents[$i][2] = array('text'=>' '); + $this->info_box_contents[$i][3] = array('text'=>' '); + $this->info_box_contents[$i][4] = array('text'=>' '); + } + $i++; + } } else { dolibarr_print_error($db); diff --git a/htdocs/includes/boxes/box_factures_fourn_imp.php b/htdocs/includes/boxes/box_factures_fourn_imp.php index c658c9bc039..6901d0202bc 100644 --- a/htdocs/includes/boxes/box_factures_fourn_imp.php +++ b/htdocs/includes/boxes/box_factures_fourn_imp.php @@ -116,6 +116,24 @@ class box_factures_fourn_imp extends ModeleBoxes { $i++; } + + $i=$num; + while ($i < $max) + { + if ($num==0 && $i==$num) + { + $this->info_box_contents[$i][0] = array('align' => 'center','text'=>$langs->trans("NoUnpayedCustomerBills")); + $this->info_box_contents[$i][1] = array('text'=>' '); + $this->info_box_contents[$i][2] = array('text'=>' '); + $this->info_box_contents[$i][3] = array('text'=>' '); + } else { + $this->info_box_contents[$i][0] = array('text'=>' '); + $this->info_box_contents[$i][1] = array('text'=>' '); + $this->info_box_contents[$i][2] = array('text'=>' '); + $this->info_box_contents[$i][3] = array('text'=>' '); + } + $i++; + } } else { dolibarr_print_error($db);