FIX : hidetop progression
This commit is contained in:
parent
1886e68731
commit
a90ec7a8c7
@ -1412,19 +1412,26 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
|
|
||||||
if ($this->situationinvoice) {
|
if ($this->situationinvoice) {
|
||||||
$pdf->line($this->posxprogress - 1, $tab_top, $this->posxprogress - 1, $tab_top + $tab_height);
|
$pdf->line($this->posxprogress - 1, $tab_top, $this->posxprogress - 1, $tab_top + $tab_height);
|
||||||
$pdf->SetXY($this->posxprogress, $tab_top+1);
|
|
||||||
if($conf->global->PRODUCT_USE_UNITS)
|
if (empty($hidetop)) {
|
||||||
{
|
|
||||||
$pdf->MultiCell($this->posxunit-$this->posxprogress,2, $outputlangs->transnoentities("Progress"),'','C');
|
$pdf->SetXY($this->posxprogress, $tab_top+1);
|
||||||
}
|
|
||||||
else if ($this->atleastonediscount)
|
if($conf->global->PRODUCT_USE_UNITS)
|
||||||
{
|
{
|
||||||
$pdf->MultiCell($this->posxdiscount-$this->posxprogress,2, $outputlangs->transnoentities("Progress"),'','C');
|
$pdf->MultiCell($this->posxunit-$this->posxprogress,2, $outputlangs->transnoentities("Progress"),'','C');
|
||||||
}
|
}
|
||||||
else
|
else if ($this->atleastonediscount)
|
||||||
{
|
{
|
||||||
$pdf->MultiCell($this->postotalht-$this->posxprogress,2, $outputlangs->transnoentities("Progress"),'','C');
|
$pdf->MultiCell($this->posxdiscount-$this->posxprogress,2, $outputlangs->transnoentities("Progress"),'','C');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$pdf->MultiCell($this->postotalht-$this->posxprogress,2, $outputlangs->transnoentities("Progress"),'','C');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if($conf->global->PRODUCT_USE_UNITS) {
|
if($conf->global->PRODUCT_USE_UNITS) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user