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

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (http://www.weberp.org/forum/forumdisplay.php?fid=1)
+--- Forum: Problems / Bugs? (http://www.weberp.org/forum/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

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 - TimSchofield - 12-14-2018

Looks good.

Paul T: I have sent you a pull request

Tim