From 9961f2ddb5678368ae249362b2ce5a06ce478031 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 26 May 2022 15:55:57 +0200 Subject: [PATCH] Fixed Long product Description on Sales Quotation. --- reporting/rep111.php | 2 ++ sales/includes/db/sales_order_db.inc | 1 + 2 files changed, 3 insertions(+) diff --git a/reporting/rep111.php b/reporting/rep111.php index 1db74b7c..273e7c42 100644 --- a/reporting/rep111.php +++ b/reporting/rep111.php @@ -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()) diff --git a/sales/includes/db/sales_order_db.inc b/sales/includes/db/sales_order_db.inc index 9b790ce6..3b146bf4 100644 --- a/sales/includes/db/sales_order_db.inc +++ b/sales/includes/db/sales_order_db.inc @@ -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 -- 2.30.2