Added default box size of 5 lines for supplier invoice boxes to match client invoice boxes
This commit is contained in:
parent
3cfb58e546
commit
6e0ffa7cdf
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user