I was thinking the same thing. I have added units in parenthesis at the end of each of our descriptions and I don't care for such a hack.
On object's Unit of Measure attribute has nothing to do with an object's Description attribute.
I will attempt to tackle your suggestion to use the config value...
(01-16-2018, 10:34 PM)VortecCPI Wrote: I was thinking the same thing. I have added units in parenthesis at the end of each of our descriptions and I don't care for such a hack.
On object's Unit of Measure attribute has nothing to do with an object's Description attribute.
I will attempt to tackle your suggestion to use the config value...
Looking at PDFQuotation.php and PDFQuoatationPortrait.php as examples use of $_SESSION['AllowOrderLineItemNarrative'] is not required. I brought over the logic to print narratives from those scripts into PrintCustOrder.php and PrintCustOrder_generic.php and it works as expected. Example below:
PHP Code:
// Prints salesorderdetails.narrative:
$FontSize2 = $FontSize*0.8;// Font size to print salesorderdetails.narrative.
$Width2 = $Page_Width-$Right_Margin-145;// Width to print salesorderdetails.narrative.
$LeftOvers = trim($myrow2['narrative']);
//**********
$LeftOvers = str_replace('\n', ' ', $LeftOvers);// Replaces line feed character.
$LeftOvers = str_replace('\r', '', $LeftOvers);// Delete carriage return character
$LeftOvers = str_replace('\t', '', $LeftOvers);// Delete tabulator character
//**********
while (mb_strlen($LeftOvers) > 1) {
$YPos -= $FontSize2;
if ($YPos < ($Bottom_Margin)) {// Begins new page.
include ('includes/PDFOrderPageHeader_generic.inc');
}
$LeftOvers = $pdf->addTextWrap(147, $YPos, $Width2, $FontSize2, $LeftOvers);
}
I will now work on addition of Units...
It appears there are a lot of differences between PrintCustOrder.php and PrintCustOrder_generic.php.
Should not these two scrips be almost identical except for graphics and text string positioning? My PrintCustOrder.php PDF has some strange positioning...
I also added Volume, Weight, and signature areas to our Office Copy so the driver/shipper has an idea of what will be put in the truck and/or on the trailer.