Exemplo n.º 1
0
 //total quantity
 $pdf->Cell(50, 8, $dq_list[$j][2], 0, 1, 'L');
 //remarks for each part
 ///print material receipt details
 if ($cqr_list[$j][0] != '') {
     $t = 0;
     while ($t < $dq_list[$j][1]) {
         $t += $cqr_list[$l][2];
         $pdf->SetFont('helvetica', 'I', 8);
         //body font
         $pma = new PartMaterial();
         $pma->setMIDQID($cqr_list[$l][1]);
         $pma->setPartMaterialDetails();
         if ($custid == 3 || $custid == 10) {
             $pdf->Cell(50, 7, 'GP No: ' . $pma->getGpno() . " Dated: " . $pma->getGpDate(), 0, 0, 'L');
             $pdf->Cell(50, 7, ",DA No: " . $pma->getDano() . " Dated: " . $pma->getDaDate(), 0, 0, 'L');
             $pdf->Cell(50, 7, ",Ex Ch No: " . $pma->getExchallanno() . " Dated: " . $pma->getExchallandate(), 0, 1, 'L');
         } else {
             $pdf->Cell(20, 7, '', 0, 0, 'C');
             $pdf->MultiCell(80, 7, 'Ex Ch No: ' . $pma->getExchallanno() . " Dated: " . $pma->getExchallandate() . ', Qty: ' . $cqr_list[$l][2], 0, 'L', 0, 1, '', '', true, 0, false, true, 7, 'M', true);
             //part name and drawing no
             //						$pdf->Cell(50,7,'Ex Ch No: '.$pma->getExchallanno()." Dated: ".$pma->getExchallandate(),0,0,'L');
         }
         //						$pdf->Cell(15,7," Qty: ".$cqr_list[$l][2],0,1,'L');
         $l++;
     }
 }
 if (isset($dq_list[$j + 1])) {
     if ($dq_list[$j][0] == $dq_list[$j + 1][0]) {
         $r = 0;
     } else {