PDF : standardized color for row even and odd
This commit is contained in:
parent
4a164de70b
commit
6c4208bbab
7 changed files with 26 additions and 16 deletions
|
|
@ -255,7 +255,12 @@ class Invoice_PDF extends \PDF
|
|||
$item->get_by_qcode(trim($this->data['e_march' . $i]));
|
||||
$fill = $this->is_fill($line);
|
||||
$this->write_multi($col['quick_code'], 4, $item->get_attribute(ATTR_DEF_QUICKCODE),'','',$fill);
|
||||
$this->write_multi($col['label'], 4, $this->data['e_march' . $i . '_label'],fill:$fill);
|
||||
if ( isset ($this->data['e_march' . $i . '_label']))
|
||||
{
|
||||
$this->write_multi($col['label'], 4, $this->data['e_march' . $i . '_label'],fill:$fill);
|
||||
}else {
|
||||
$this->write_multi($col['label'], 4,$item->get_attribute(ATTR_DEF_NAME),fill:$fill);
|
||||
}
|
||||
$this->write_multi($col['quantity'], 4, nbm($this->data['e_quant' . $i]), '', 'R',fill:$fill);
|
||||
$this->write_multi($col['price'], 4, nbm($this->data['e_march' . $i . '_price']), '', 'R',fill:$fill);
|
||||
$this->write_multi($col['vat_code'], 4, $this->data['e_march' . $i . '_tva_id'], '', 'C',fill:$fill);
|
||||
|
|
|
|||
|
|
@ -361,12 +361,12 @@ class PDF_Operation extends PDF {
|
|||
$nb=count($pa_plan);
|
||||
$this->pdf->SetFont('DejaVu', 'B', 8);
|
||||
$width=25;
|
||||
$this->pdf->SetFillColor(220,221,255);
|
||||
$this->pdf->fill_row(0);
|
||||
for ($i = 0; $i<$nb; $i++) {
|
||||
$this->pdf->write_cell($width,8,$pa_plan[$i]['pa_name']);
|
||||
}
|
||||
$this->pdf->write_cell($width,8,_('Montant'),0,0,'R');
|
||||
$this->pdf->SetFillColor(0,0,0);
|
||||
$this->pdf->fill_row(1);
|
||||
$this->pdf->line_new(8);
|
||||
}
|
||||
private function print_anc_detail($p_j_id, $pa_plan) {
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ class Print_Ledger_Detail_Item extends Print_Ledger
|
|||
$nb=Database::num_row($ret_detail);
|
||||
$this->SetFont('DejaVu', '', 6);
|
||||
$internal="";
|
||||
$this->SetFillColor(220,221,255);
|
||||
$this->fill_row(0);
|
||||
$high=8;
|
||||
$high_lg=8;
|
||||
for ( $i=0;$i< $nb ;$i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue