Ejemplo n.º 1
0
}
$pdf->setVars($admin_aziend,$title,0,array('ini_page'=>$n_page,'year'=>'Pagina '.$annfin));
if (isset($_GET['copert'])) {
   $pdf->setCover($cover_descri);
   $pdf->AddPage();
}
$pdf->setTopBar($top);
if (($tot_avere+$tot_dare)> 0.01){
    $topCarry[1]['name']= gaz_format_number($tot_dare);
    $topCarry[2]['name']= gaz_format_number($tot_avere);
    $pdf->setTopCarryBar($topCarry);
}
$pdf->AddPage();
$pdf->setFooterMargin(21);
$pdf->setTopMargin(44);
$pdf->SetFont('helvetica','',7);
$ctrlmopre = 0;
$numrig=1;

$anagrafica = new Anagrafica();
while ($mov = gaz_dbi_fetch_array($result)) {
    $giomov = substr($mov['datreg'],8,2);
    $mesmov = substr($mov['datreg'],5,2);
    $annmov = substr($mov['datreg'],0,4);
    $giodoc = substr($mov['datdoc'],8,2);
    $mesdoc = substr($mov['datdoc'],5,2);
    $anndoc = substr($mov['datdoc'],0,4);
    $clfoco = $anagrafica->getPartner($mov["codcon"]);
    $utsmov= mktime(0,0,0,$mesmov,$giomov,$annmov);
    $datamov = date("d-m-Y",$utsmov);
    $datadoc = $giodoc.'-'.$mesdoc.'-'.$anndoc;
Ejemplo n.º 2
0
    ksort($fornitori);
    $conti = array("cos" => $costi,"ric" => $ricavi,"att" => $attivo,"pas" => $passivo,"cli" => $clienti,"for" => $fornitori);
    return $conti;
}
$title = $script_transl[6].$script_transl[7].$gioini.'-'.$mesini.'-'.$annini.$script_transl[8].$giofin.'-'.$mesfin.'-'.$annfin ;

$topCarry = array(array('lenght' => 100,'name'=>'da riporto : ','frame' => 0,'fill'=>0),
                  array('lenght' => 35,'name'=>'','frame' => 1,'fill'=>0));
$botCarry = array(array('lenght' => 100,'name'=>'a riporto : ','frame' => 0,'fill'=>0),
                  array('lenght' => 35,'name'=>'','frame' => 1,'fill'=>0));

require("../../config/templates/standard_template.php");
$pdf = new Standard_template();
$pdf->setVars($admin_aziend,$title,0,1);
$pdf->AddPage();
$pdf->SetFont('helvetica','',10);
$totatt=0;
$conti = ValoriConti($datainizio,$datafine,$datadopo,$admin_aziend['mascli'],$admin_aziend['masfor'],$dettcf);
if ($conti) {
    $loss = round(array_sum($conti['cos']),2);
    $profit = round(array_sum($conti['ric']),2);
    $assets = round(array_sum($conti['att']),2);
    $liabilities = round(array_sum($conti['pas']),2);
    $ctrl_bal = round($loss + $profit + $assets + $liabilities,2);
    $income = round($loss + $profit,2);
    $pdf->Cell(190,5,$script_transl[9].$script_transl[8].$giofin.'-'.$mesfin.'-'.$annfin ,1,1,'C',1);
    $pdf->Ln(5);
    $mas=0;
    $ctrlmas=0;
    $totmas=0;
    $pdf->Cell(20,5,$script_transl[12],1,1,'C',1);