X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep209.php;h=ce15c150d07595f432bac261ea8d2dd6a975aa00;hb=c061e1b478cb41d22c23627ddff39a4ea7d849ed;hp=5a08217168009fb8a0c8c933aef3be4daa16bdf5;hpb=8850688519e49a17c57a96f9efab339919b1936d;p=fa-stable.git diff --git a/reporting/rep209.php b/reporting/rep209.php index 5a082171..ce15c150 100644 --- a/reporting/rep209.php +++ b/reporting/rep209.php @@ -49,7 +49,7 @@ function get_supp_po($order_no) function get_po_details($order_no) { - $sql = "SELECT poline.*, units + $sql = "SELECT poline.*, units, editable FROM ".TB_PREF."purch_order_details poline LEFT JOIN ".TB_PREF."stock_master item ON poline.item_code=item.stock_id WHERE order_no =".db_escape($order_no)." "; @@ -121,7 +121,8 @@ function print_po() $data = get_purchase_data($myrow['supplier_id'], $myrow2['item_code']); if ($data !== false) { - if ($data['supplier_description'] != "") + if (!$myrow2['editable'] && $data['supplier_description'] != "" && + $myrow2['description'] != $data['supplier_description']) // backward compatibility $myrow2['description'] = $data['supplier_description']; if ($data['suppliers_uom'] != "") $myrow2['units'] = $data['suppliers_uom'];