WIP : longline change
This commit is contained in:
parent
0599b38d23
commit
c41efc26dc
12 changed files with 45 additions and 45 deletions
|
|
@ -118,7 +118,7 @@ $pdf->SetAuthor('NOALYSS');
|
|||
$pdf->SetFont('DejaVuCond', '', 7);
|
||||
$pdf->setTitle(_("Balance comptable"), true);
|
||||
$pdf->write_cell(30, 6, _('poste'));
|
||||
$pdf->LongLine(60, 3, _('Libellé'));
|
||||
$pdf->write_multi(60, 3, _('Libellé'));
|
||||
if ($previous == 1) {
|
||||
$pdf->write_cell(20, 6, 'Débit N-1', 0, 0, 'R');
|
||||
$pdf->write_cell(20, 6, 'Crédit N-1', 0, 0, 'R');
|
||||
|
|
@ -171,7 +171,7 @@ if (!empty($array)) {
|
|||
if (${'lvl' . $ind . '_old'} != substr($r['poste'], 0, $ind)) {
|
||||
$pdf->SetFont('DejaVu', 'B', 7);
|
||||
$strTotal=sprintf(_("Totaux %s "),${'lvl' . $ind . '_old'});
|
||||
$pdf->LongLine(30, 3, $strTotal,"TB");
|
||||
$pdf->write_multi(30, 3, $strTotal,"TB");
|
||||
$delta = bcsub(${'nlvl' . $ind}['solde_cred'], ${'nlvl' . $ind}['solde_deb']);
|
||||
$side = ($delta < 0) ? "D" : "C";
|
||||
if ($previous == 1) {
|
||||
|
|
@ -223,8 +223,8 @@ if (!empty($array)) {
|
|||
|
||||
$label.=" ".mb_chr(0x26a0);
|
||||
}
|
||||
$pdf->LongLine(30, 3, $label, 0, 'L', $fill);
|
||||
$pdf->LongLine(60, 3, $value['label'], 0, 'L', $fill);
|
||||
$pdf->write_multi(30, 3, $label, 0, 'L', $fill);
|
||||
$pdf->write_multi(60, 3, $value['label'], 0, 'L', $fill);
|
||||
$summary_tab = $bal->summary_add($summary_tab, $value['poste'],
|
||||
$value['sum_deb'],
|
||||
$value['sum_cred']);
|
||||
|
|
|
|||
|
|
@ -88,8 +88,8 @@ if ($histo == 4 || $histo==5)
|
|||
$pdf->write_cell(0,8,$name,0,1,'C');
|
||||
$pdf->line_new();
|
||||
$pdf->SetFont('DejaVuCond','',7);
|
||||
$pdf->LongLine(30,3,'Quick Code',0,'L',0);
|
||||
$pdf->LongLine(80,3,'Libellé',0,'L',0);
|
||||
$pdf->write_multi(30,3,'Quick Code',0,'L',0);
|
||||
$pdf->write_multi(80,3,'Libellé',0,'L',0);
|
||||
$pdf->write_cell(20,7,'Débit',0,0,'R',0);
|
||||
$pdf->write_cell(20,7,'Crédit',0,0,'R',0);
|
||||
$pdf->write_cell(20,7,'Solde',0,0,'R',0);
|
||||
|
|
@ -121,7 +121,7 @@ if ($histo == 4 || $histo==5)
|
|||
$sum_solde=bcsub($sum_deb,$sum_cred);
|
||||
|
||||
$pdf->write_cell(30,7,$oCard->strAttribut(ATTR_DEF_QUICKCODE),0,0,'L',$fill);
|
||||
$pdf->LongLine(80,3,$oCard->strAttribut(ATTR_DEF_NAME)." (".$oCard->strAttribut(ATTR_DEF_ACCOUNT).")",0,'L',$fill);
|
||||
$pdf->write_multi(80,3,$oCard->strAttribut(ATTR_DEF_NAME)." (".$oCard->strAttribut(ATTR_DEF_ACCOUNT).")",0,'L',$fill);
|
||||
$pdf->write_cell(20,7,nbm($solde['debit']),0,0,'R',$fill);
|
||||
$pdf->write_cell(20,7,nbm($solde['credit']),0,0,'R',$fill);
|
||||
$pdf->write_cell(20,7,nbm(abs($solde['solde'])),0,0,'R',$fill);
|
||||
|
|
@ -233,10 +233,10 @@ else
|
|||
$row = $letter->content[$i];
|
||||
$str_date = shrink_date($row['j_date_fmt']);
|
||||
|
||||
$pdf->LongLine($tab[0], 3, $str_date, 0, $align[0], $fill);
|
||||
$pdf->write_multi($tab[0], 3, $str_date, 0, $align[0], $fill);
|
||||
$pdf->write_cell($tab[1], 4, $row['jr_pj_number'], 0, 0, $align[1], $fill);
|
||||
$pdf->LongLine($tab[2], 3, $row['jr_internal'], 0, $align[1], $fill);
|
||||
$pdf->LongLine($tab[3], 3, $row['jr_comment'], 0, $align[2], $fill);
|
||||
$pdf->write_multi($tab[2], 3, $row['jr_internal'], 0, $align[1], $fill);
|
||||
$pdf->write_multi($tab[3], 3, $row['jr_comment'], 0, $align[2], $fill);
|
||||
if ($row['j_debit'] == 't')
|
||||
{
|
||||
$prog=bcadd($prog,$row['j_montant']);
|
||||
|
|
|
|||
|
|
@ -113,9 +113,9 @@ for ($e=0;$e<count($array);$e++)
|
|||
$str_diff_solde=sprintf("%12.2f ",$diff_solde);
|
||||
|
||||
$pdf->SetFont('DejaVu','B',8);
|
||||
$pdf->LongLine(15,6,_('totaux'),0,'L');
|
||||
$pdf->write_multi(15,6,_('totaux'),0,'L');
|
||||
$pdf->write_cell(15,6,$current_exercice,0,0,'L');
|
||||
$pdf->LongLine(40,6,$solde,0,'L');
|
||||
$pdf->write_multi(40,6,$solde,0,'L');
|
||||
$pdf->write_cell(40,6,$str_debit,0,0,'R');
|
||||
$pdf->write_cell(40,6,$str_credit,0,0,'R');
|
||||
$pdf->write_cell(40,6,$str_diff_solde,0,0,'R');
|
||||
|
|
@ -146,17 +146,17 @@ for ($e=0;$e<count($array);$e++)
|
|||
$tiers=$operation->find_tiers($row['jr_id'], $row['j_id'], $row['j_qcode']);
|
||||
$description=($tiers=="")?$row["description"]:"[".$tiers."]".$row['description'];
|
||||
|
||||
$pdf->LongLine($size[$l],6,($description.'('.$row['jr_internal'].")"),0,$align[$l]);
|
||||
$pdf->write_multi($size[$l],6,($description.'('.$row['jr_internal'].")"),0,$align[$l]);
|
||||
|
||||
$l++;
|
||||
|
||||
$pdf->LongLine($size[$l],6,((!empty($row['letter']) && $row['letter']!=-1)?strtoupper(base_convert($row['letter'],10,36)):''),0,$align[$l]);
|
||||
$pdf->write_multi($size[$l],6,((!empty($row['letter']) && $row['letter']!=-1)?strtoupper(base_convert($row['letter'],10,36)):''),0,$align[$l]);
|
||||
$l++;
|
||||
$pdf->LongLine($size[$l],6,(sprintf('% 12.2f',$row['deb_montant'])),0,$align[$l]);
|
||||
$pdf->write_multi($size[$l],6,(sprintf('% 12.2f',$row['deb_montant'])),0,$align[$l]);
|
||||
$l++;
|
||||
$pdf->LongLine($size[$l],6,(sprintf('% 12.2f',$row['cred_montant'])),0,$align[$l]);
|
||||
$pdf->write_multi($size[$l],6,(sprintf('% 12.2f',$row['cred_montant'])),0,$align[$l]);
|
||||
$l++;
|
||||
$pdf->LongLine($size[$l],6,(sprintf('% 12.2f',abs($progress))),0,$align[$l]);
|
||||
$pdf->write_multi($size[$l],6,(sprintf('% 12.2f',abs($progress))),0,$align[$l]);
|
||||
$l++;
|
||||
$pdf->line_new();
|
||||
$tot_deb=bcadd($tot_deb,$row['deb_montant']);
|
||||
|
|
|
|||
|
|
@ -162,14 +162,14 @@ foreach ($a_accounting as $accounting_item)
|
|||
|
||||
$i = 0;
|
||||
$side=" ".$acc_account_ledger->get_amount_side($solde);
|
||||
$pdf->LongLine($width[$i], 3, shrink_date($detail['j_date_fmt']), 0, $lor[$i]);
|
||||
$pdf->write_multi($width[$i], 3, shrink_date($detail['j_date_fmt']), 0, $lor[$i]);
|
||||
$i++;
|
||||
$pdf->LongLine($width[$i], 3, $detail['jr_internal'], 0, $lor[$i] );
|
||||
$pdf->write_multi($width[$i], 3, $detail['jr_internal'], 0, $lor[$i] );
|
||||
$i++;
|
||||
/* limit set to 40 for the substring */
|
||||
// $triple_point = (mb_strlen($detail['description']) > 40 ) ? '...':'';
|
||||
// $pdf->LongLine($width[$i], 6, mb_substr($detail['description'],0,40).$triple_point, 0,$lor[$i]);
|
||||
$pdf->LongLine($width[$i], 3,$detail['description'].'['.$detail['jr_optype'].']', 0,$lor[$i]);
|
||||
// $pdf->write_multi($width[$i], 6, mb_substr($detail['description'],0,40).$triple_point, 0,$lor[$i]);
|
||||
$pdf->write_multi($width[$i], 3,$detail['description'].'['.$detail['jr_optype'].']', 0,$lor[$i]);
|
||||
$i++;
|
||||
$pdf->write_cell($width[$i], 6, $detail['jr_pj_number'], 0, 0, $lor[$i]);
|
||||
$i++;
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ foreach ($a_poste as $poste)
|
|||
$l++;
|
||||
$pdf->write_cell($size[$l],6,_('Journal'),0,0,'C');
|
||||
$l++;
|
||||
$pdf->LongLine($size[$l],3,_('Libellé'),0,'L');
|
||||
$pdf->write_multi($size[$l],3,_('Libellé'),0,'L');
|
||||
$l++;
|
||||
$pdf->write_cell($size[$l],6,_('Let'),0,0,'R');
|
||||
$l++;
|
||||
|
|
@ -160,7 +160,7 @@ foreach ($a_poste as $poste)
|
|||
$l++;
|
||||
$tiers=$operation->find_tiers($row['jr_id'], $row['j_id'], $row['j_qcode']);
|
||||
$description=($tiers=="")?$row["description"]:"[".$tiers."]".$row['description'];
|
||||
$pdf->LongLine($size[$l],3, $description,0,$align[$l]);
|
||||
$pdf->write_multi($size[$l],3, $description,0,$align[$l]);
|
||||
$l++;
|
||||
$pdf->write_cell($size[$l],6,(($row['letter']!=-1)?$row['letter']:''),0,0,$align[$l]);
|
||||
$l++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue