Fixed Long product Description on Sales Quotation.
[fa-stable.git] / sales / includes / db / sales_order_db.inc
index 9d43fb3af94b8427c5cc9cb3d2da0f8e9ba81beb..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
@@ -493,7 +494,8 @@ function get_sql_for_sales_orders_view($trans_type, $trans_no, $filter,
                        allocs.ord_payments,
                        inv.inv_payments,
                        sorder.total,
-                       sorder.trans_type
+                       sorder.trans_type,
+                       sorder.debtor_no
                FROM ".TB_PREF."sales_orders as sorder
                LEFT JOIN (SELECT trans_no_to, sum(amt) ord_payments FROM ".TB_PREF."cust_allocations WHERE trans_type_to=".ST_SALESORDER." GROUP BY trans_no_to)
                         allocs ON sorder.trans_type=".ST_SALESORDER." AND allocs.trans_no_to=sorder.order_no