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);