From: rfthomas <rf...@as...> - 2016-10-14 16:46:24
|
There are several problems with PO_PDFPurchOrder.php script. 1) When we create a purchase order, order detail lines are sorted by itemcode. This creates problems when ordering non-inventory items. Additionally the order of printing does not match the order of entry. For non-inventory items (no itemcode), the order of detail items is random (undefined). We have several very lengthy PO's for which every item/service is one time purchase abd the order of items on the Purchase order needs to match vendor quote as closely as possible. 2) There is always one to many lines in the detail printout per page. We have made the following changes to PO_PDFPurchOrder.php: Around line 223 replace itemcode to podetailitem: WHERE orderno ='" . $OrderNo . "' ORDER BY podetailitem"; /*- ADDED: Sort by our item code -*/ Around line 275: if ($YPos - 2*$line_height <= $Bottom_Margin) { Around line 292: if ($YPos - 2*$line_height <= $Bottom_Margin) { Our default paper size is Letter. We hope that these changes could be incorporated into the trunk. Bob Thomas -- View this message in context: http://weberp-accounting.1478800.n4.nabble.com/Purchase-order-printing-problems-PO-PDFPurchOrder-php-tp4658708.html Sent from the web-ERP-developers mailing list archive at Nabble.com. |