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.

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


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'); 

Looks good.

Paul T: I have sent you a pull request

Reference URL's