Added trans_editor_link helper.
[fa-stable.git] / sales / inquiry / sales_orders_view.php
index a9f8cf7570bb28cd79b80b387af09b5dd8a770dd..f5977aa791bb0bb9444ad87ffcb92c50cd67c760 100644 (file)
@@ -106,12 +106,7 @@ function edit_link($row)
 {
        global $page_nested;
 
-       if ($page_nested)
-               return '';
-       global $trans_type;
-       $modify = ($trans_type == ST_SALESORDER ? "ModifyOrderNumber" : "ModifyQuotationNumber");
-  return pager_link( _("Edit"),
-    "/sales/sales_order_entry.php?$modify=" . $row['order_no'], ICON_EDIT);
+       return $page_nested ? '' : trans_editor_link($row['trans_type'], $row['order_no']);
 }
 
 function dispatch_link($row)