Ejemplo n.º 1
0
    ksort($attivo);
    ksort($passivo);
    ksort($clienti);
    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;
Ejemplo n.º 2
0
$topCarry = array(array('lenght' => 150,'name'=>'da riporto : ','frame' => 'B','fill'=>0,'font'=>8),
                  array('lenght' => 20,'name'=>'','frame' => 1,'fill'=>0),
                  array('lenght' => 20,'name'=>'','frame' => 1,'fill'=>0));
$botCarry = array(array('lenght' => 150,'name'=>'a riporto : ','frame' => 'T','fill'=>0,'font'=>8),
                  array('lenght' => 20,'name'=>'','frame' => 1,'fill'=>1),
                  array('lenght' => 20,'name'=>'','frame' => 1,'fill'=>1));
$top = array(array('lenght' => 10,'name'=>'Progr.','frame' => 1,'fill'=>1,'font'=>8),
             array('lenght' => 18,'name'=>'Data Reg.','frame' => 1,'fill'=>1),
             array('lenght' => 60,'name'=>'Descrizione Operazione / Num. e Data Doc.','frame' => 1,'fill'=>1),
             array('lenght' => 16,'name'=>'N.Conto','frame' => 1,'fill'=>1),
             array('lenght' => 46,'name'=>'Nome Conto','frame' => 1,'fill'=>1),
             array('lenght' => 20,'name'=>'Dare','frame' => 1,'fill'=>1),
             array('lenght' => 20,'name'=>'Avere','frame' => 1,'fill'=>1));

require("../../config/templates/standard_template.php");
$pdf = new Standard_template();
$n_page = intval($_GET['pagini']);
if (isset($_GET['copert'])) {
   $n_page--;
}
$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);
}
Ejemplo n.º 3
0
       GROUP BY seziva,regiva,codiva
       ORDER BY seziva,regiva,aliquo DESC";
$result = gaz_dbi_query($sqlquery);
$topCarry = array(array('lenght' => 118,'name'=>'da riporto : ','frame' => 'B','fill'=>0,'font'=>8),
                  array('lenght' => 20,'name'=>'','frame' => 1,'fill'=>1),
                  array('lenght' => 32,'name'=>'','frame' => 1,'fill'=>1),
                  array('lenght' => 20,'name'=>'','frame' => 1,'fill'=>1));
$botCarry = array(array('lenght' => 118,'name'=>'a riporto : ','frame' => 'T','fill'=>0,'font'=>8),
                  array('lenght' => 20,'name'=>'','frame' => 1,'fill'=>1),
                  array('lenght' => 32,'name'=>'','frame' => 1,'fill'=>1),
                  array('lenght' => 20,'name'=>'','frame' => 1,'fill'=>1));


require("../../config/templates/standard_template.php");

$pdf = new Standard_template();
$n_page = intval($_GET['pi']);
if ($_GET['cv']=='cover') {
   $n_page--;
}
$pdf->setVars($admin_aziend,$title,0,array('ini_page'=>$n_page,'year'=>$script_transl['page'].' '.$annfin));
if ($_GET['cv']=='cover') {
   $pdf->setCover($cover_descri);
   $pdf->AddPage();
}
$pdf->AddPage();
$pdf->setFooterMargin(21);
$pdf->setTopMargin(44);

$ctrl_sezione = 0;
$ctrl_registro = 0;