$pdf->SetFont('helvetica','B',8); $pdf->Cell($aRiportare['top'][0]['lun'],4,'Totale provvigioni: ',1,0,'R'); $pdf->Cell($aRiportare['top'][1]['lun'],4,$aRiportare['top'][1]['nam'],1,0,'R'); $pdf->SetFont('helvetica','',8); } $agente = getNewAgente($row['id_agente']); $item_head['bot']= array(array('lun' => 50,'nam'=>$agente['indspe']), array('lun' => 60,'nam'=>$agente['citspe'].' ('.$agente['prospe'].') '.$agente['telefo']), array('lun' => 37,'nam'=>substr($_GET['datini'],6,2).'.'.substr($_GET['datini'],4,2).'.'.substr($_GET['datini'],0,4).'-'.substr($_GET['datfin'],6,2).'.'.substr($_GET['datfin'],4,2).'.'.substr($_GET['datfin'],0,4)) ); $aRiportare['top'][1]['nam'] = 0; $aRiportare['bot'][1]['nam'] = 0; $pdf->setRiporti(''); $pdf->setPageTitle('Agente: '.$agente['ragso1'].' '.$agente['ragso2']); $pdf->setItemGroup($item_head); $pdf->AddPage('P',$config->getValue('page_format')); } if ($row['tipdoc'] == 'FNC') { $row['quanti'] = -$row['quanti']; } $row_importo = CalcolaImportoRigo($row['quanti'],$row['prelis'],array($row['scochi'],$row['sconto'])); $row_provvig = round($row_importo*$row['provvigione']/100,3); $tot_prov += $row_provvig; $aRiportare['top'][1]['nam'] = gaz_format_number($tot_prov); $aRiportare['bot'][1]['nam'] = gaz_format_number($tot_prov); if ($ctrlDoc != $row['id_tes']) { if ($row['tipdoc'] == 'FAD') { $desdoc = 'da '.$strScript['admin_docven.php'][0][$row['tipdoc']].' n.'.$row['numdoc'].' del '.$row['datemi'].' -> Fattura n.'.$row['numfat'].'/'.$row['seziva'].' del '.$row['datfat'].' a '.$row['ragso1'].' '.$row['ragso2']; } else { $desdoc = 'da '.$strScript['admin_docven.php'][0][$row['tipdoc']].' n.'.$row['numfat'].'/'.$row['seziva'].' del '.$row['datfat'].' a '.$row['ragso1'].' '.$row['ragso2']; }
array('lun' => 18,'nam'=>$acc[6]) ) ); $aRiportare = array('top'=>array(array('lun' => 166,'nam'=>'da riporto : '), array('lun' => 20,'nam'=>'') ), 'bot'=>array(array('lun' => 166,'nam'=>'a riportare : '), array('lun' => 20,'nam'=>'') ) ); $pdf = new Report_template(); $pdf->setVars($admin_aziend,$title); $pdf->setFooterMargin(22); $pdf->setTopMargin(43); $pdf->setRiporti(''); $pdf->AddPage(); $paymov = new Schedule; $paymov->setScheduledPartner($admin_aziend['mascli']); if (sizeof($paymov->Partners) > 0) { $anagrafica = new Anagrafica(); foreach ($paymov->Partners as $p){ $anagrafica = new Anagrafica(); $prt = $anagrafica->getPartner($p); $pdf->SetFont('helvetica','B',10); $pdf->SetFillColor(200,255,200); $pdf->Ln(2); $pdf->Cell(186,5,$prt['ragso1']." ".$prt['ragso2']." tel:".$prt['telefo']." fax:".$prt['fax']." mob:".$prt['cell']." ",1,1,'',1,'',1); $pdf->SetFont('helvetica','',9); $paymov->getPartnerStatus($p,substr($_GET['date'],0,10)); foreach ($paymov->PartnerStatus as $k=>$v){ $pdf->SetTextColor(255,0,0);
array('lun' => 85,'nam'=>'Descrizione'), array('lun' => 15,'nam'=>'U.M.'), array('lun' => 25,'nam'=>'Prezzo'), array('lun' => 25,'nam'=>'Esistenza'), array('lun' => 15,'nam'=>'% I.V.A.'), array('lun' => 70,'nam'=>'Annotazioni') ) ); $gForm = new magazzForm(); $pdf = new Report_template(); $pdf->setVars($admin_aziend,$title,'L'); $pdf->setAuthor($admin_aziend['ragso1'].' '.$_SESSION['Login']); $pdf->setTitle($title['title']); $pdf->SetTopMargin(39); $pdf->setFooterMargin(10); $pdf->AddPage('L'); $pdf->SetFillColor(hexdec(substr($admin_aziend['colore'],0,2)),hexdec(substr($admin_aziend['colore'],2,2)),hexdec(substr($admin_aziend['colore'],4,2))); $ctrlcatmer=0; while ($row = gaz_dbi_fetch_array($result)) { $mv=$gForm->getStockValue(false,$row['codice']); $magval=array_pop($mv); $pdf->SetFont('helvetica','',10); switch($_GET['li']) { case '0': $price = $row['preacq']; break; case '1': $price = $row['preve1']; break; case '2': $price = $row['preve2'];