Fixed Long product Description on Sales Quotation.
authorJoe <joe.hunt.consulting@gmail.com>
Thu, 26 May 2022 13:55:57 +0000 (15:55 +0200)
committerJoe <joe.hunt.consulting@gmail.com>
Thu, 26 May 2022 13:55:57 +0000 (15:55 +0200)
reporting/rep111.php
sales/includes/db/sales_order_db.inc

index 1db74b7c8869b2f9b92fdf05de06a89376284179..273e7c421d4b0c477f653bc78f39a0b144aea029 100644 (file)
@@ -111,6 +111,8 @@ function print_sales_quotations()
                        $rep->TextCol(0, 1,     $myrow2['stk_code'], -2);
                        $oldrow = $rep->row;
                        $rep->TextColLines(1, 2, $myrow2['description'], -2);
+                       if (!empty($SysPrefs->prefs['long_description_invoice']) && !empty($myrow2['long_description']))
+                               $rep->TextColLines(1, 2, $myrow2['long_description'], -2);
                        $newrow = $rep->row;
                        $rep->row = $oldrow;
                        if ($Net != 0.0 || !is_service($myrow2['mb_flag']) || !$SysPrefs->no_zero_lines_amount())
index 9b790ce65861573f8bd9e803455c41d5256eb44d..3b146bf4ce7deae4b0ebbef39ee6800f421010ac 100644 (file)
@@ -285,6 +285,7 @@ function get_sales_order_details($order_no, $trans_type) {
                                line.quantity,
                                discount_percent,
                                qty_sent as qty_done,
+                               item.long_description,
                                item.units,
                                item.mb_flag,
                                item.material_cost