Filter item to only print perishable goods
Hi All
I have changed perishable goods to hazmat and I have it all working but I would like to just have only hazmat items print, I have Printbilloflaiding.php which I used the PrintCustOrder_generic.php as a template for the Printbillofllaiding.php here is the current code
while ($myrow2=DB_fetch_array($result)){
$ListCount ++;
$DisplayQty = locale_number_format($myrow2['quantity'],$myrow2['decimalplaces']);
$DisplayPrevDel = locale_number_format($myrow2['qtyinvoiced'],$myrow2['decimalplaces']);
$DisplayQtySupplied = locale_number_format($myrow2['quantity'] - $myrow2['qtyinvoiced'],$myrow2['decimalplaces']);
$DisplayWeight = locale_number_format($myrow2['grossweight'],$myrow2['decimalplaces']);
$LeftOvers = $pdf->addTextWrap($XPos,$YPos,127,$FontSize,$myrow2['stkcode']);
$LeftOvers = $pdf->addTextWrap(145,$YPos,85,$FontSize,$myrow2['hazmat'] == 1 ? 'X' : ' ' );
$LeftOvers = $pdf->addTextWrap(100,$YPos,85,$FontSize,$DisplayQtySupplied,'left');
$LeftOvers = $pdf->addTextWrap(180,$YPos,255,$FontSize,$myrow2['description']);
$LeftOvers = $pdf->addTextWrap(620,$YPos,70,$FontSize,$DisplayWeight,'right');
Thanks
Dave Parrish
|