1
Changeset 901d2de – MultiMag

Changeset 901d2de


Ignore:
Timestamp:
Apr 14, 2011, 3:40:30 PM (12 years ago)
Author:
Blacklight <blacklight@…>
Branches:
master
Children:
fb26fde
Parents:
f2000c1
Message:
  • Исправление форматирования в акте сверки
File:
1 edited

Legend:

Unmodified
Added
Removed
  • web/doc_otchet.php

    rf2000c1 r901d2de  
    873873                        $agent_id=rcv('agent_id');
    874874                       
    875                        
    876875                        if($firm_id)
    877876                        {
     
    912911                       
    913912                        $pdf->Ln(8);
    914                        
     913                        $y=$pdf->GetY();
     914                        $base_x=$pdf->GetX();
    915915                        $pdf->SetLineWidth(0.5);
    916                         $t_width=array(15,50,15,15,15,50,15,0);
     916                        $t_width=array(17,44,17,17,17,44,17,0);
    917917                        $t_text=array('Дата', 'Операция', 'Дебет', 'Кредит', 'Дата', 'Операция', 'Дебет', 'Кредит');
    918                         $str=iconv('UTF-8', 'windows-1251', "По данным {$firm_vars['firm_name']}");
    919                         $pdf->Cell($t_width[0]+$t_width[1]+$t_width[2]+$t_width[3],5,$str,1,0,'L',0);
    920                         $str=iconv('UTF-8', 'windows-1251', "По данным {$agent['fullname']}");
    921                         $pdf->Cell(0,5,$str,1,0,'L',0);
     918                       
     919                        $h_width=$t_width[0]+$t_width[1]+$t_width[2]+$t_width[3];
     920                        $str1=iconv('UTF-8', 'windows-1251', "По данным {$firm_vars['firm_name']}");
     921                        $str2=iconv('UTF-8', 'windows-1251', "По данным {$agent['fullname']}");
     922                                               
     923                        $pdf->MultiCell($h_width,5,$str1,0,'L',0);
     924                        $max_h=$pdf->GetY()-$y;
     925                        $pdf->SetY($y);
     926                        $pdf->SetX($base_x+$h_width);
     927                        $pdf->MultiCell(0,5,$str2,0,'L',0);
     928                        if( ($pdf->GetY()-$y) > $max_h) $max_h=$pdf->GetY()-$y;
     929                        //$pdf->Cell(0,5,$str2,1,0,'L',0);
     930                        $pdf->SetY($y);
     931                        $pdf->SetX($base_x);
     932                        $pdf->Cell($h_width,$max_h,'',1,0,'L',0);
     933                        $pdf->Cell(0,$max_h,'',1,0,'L',0);
    922934                        $pdf->Ln();
    923935                        foreach($t_width as $i => $w)
     
    963975                                        $str=iconv('UTF-8', 'windows-1251', "Сальдо на начало периода");
    964976                                        $pdf->Cell($t_width[0]+$t_width[1],4,$str,1,0,'L',0);
    965                                         $pdf->Cell($t_width[2],4,$ras,1,0,'L',0);
    966                                         $pdf->Cell($t_width[3],4,$pr,1,0,'L',0);
     977                                        $pdf->Cell($t_width[2],4,$ras,1,0,'R',0);
     978                                        $pdf->Cell($t_width[3],4,$pr,1,0,'R',0);
    967979                                        $pdf->Cell($t_width[4]+$t_width[5],4,'',1,0,'L',0);
    968980                                        $pdf->Cell($t_width[6],4,'',1,0,'L',0);
     
    10151027                                        $pdf->Cell($t_width[0],4,$dt,1,0,'L',0);
    10161028                                        $pdf->Cell($t_width[1],4,$str,1,0,'L',0);
    1017                                         $pdf->Cell($t_width[2],4,$deb,1,0,'L',0);
    1018                                         $pdf->Cell($t_width[3],4,$kr,1,0,'L',0);
     1029                                        $pdf->Cell($t_width[2],4,$deb,1,0,'R',0);
     1030                                        $pdf->Cell($t_width[3],4,$kr,1,0,'R',0);
    10191031                                        $pdf->Cell($t_width[4],4,'',1,0,'L',0);
    10201032                                        $pdf->Cell($t_width[5],4,'',1,0,'L',0);
     
    10341046                        $str=iconv('UTF-8', 'windows-1251', "Обороты за период");
    10351047                        $pdf->Cell($t_width[0]+$t_width[1],4,$str,1,0,'L',0);
    1036                         $pdf->Cell($t_width[2],4,$ras,1,0,'L',0);
    1037                         $pdf->Cell($t_width[3],4,$pr,1,0,'L',0);
     1048                        $pdf->Cell($t_width[2],4,$ras,1,0,'R',0);
     1049                        $pdf->Cell($t_width[3],4,$pr,1,0,'R',0);
    10381050                        $pdf->Cell($t_width[4]+$t_width[5],4,'',1,0,'L',0);
    10391051                        $pdf->Cell($t_width[6],4,'',1,0,'L',0);
Note: See TracChangeset for help on using the changeset viewer.