webERP Forum
Print WO Item Slip Quantity Zero - SOLVED - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (/forumdisplay.php?fid=1)
+--- Forum: Problems / Bugs? (/forumdisplay.php?fid=8)
+--- Thread: Print WO Item Slip Quantity Zero - SOLVED (/showthread.php?tid=8306)



Print WO Item Slip Quantity Zero - SOLVED - VortecCPI - 12-14-2018 02:36 AM

PrintWOItemSlip.php

This script produces a PDF with BOM QTY of zero if the per-unit BoM quantities are very small:

[attachment=934]

I changed this:

PHP Code:
$pdf->addTextWrap(150,$YPos,50,$FontSize,locale_number_format($myComponent['bomqty'],$myComponent['decimalplaces']), 'right'); 


To this:

PHP Code:
$pdf->addTextWrap(150,$YPos,50,$FontSize,locale_number_format($myComponent['bomqty'],'Variable'), 'right'); 

[attachment=935]


RE: Print WO Item Slip Quantity Zero - SOLVED - falkoner - 12-14-2018 07:46 PM

Looks good.

Paul T: I have sent you a pull request

Tim