webERP Forum

Full Version: Print WO Item Slip Quantity Zero - SOLVED
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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]
Looks good.

Paul T: I have sent you a pull request

Tim
Reference URL's