Added new attachment types for customer and supplier specific documents.
[fa-stable.git] / admin / db / transactions_db.inc
index 466ded81ea54a9015839d9d86b03dce89a402696..a948cf3e70a1b955547a471a4f5806aa54baf6ff 100644 (file)
@@ -209,6 +209,9 @@ function get_systype_db_info($type)
         case     ST_SALESQUOTE   : return array(TB_PREF."sales_orders", "trans_type", "order_no", "reference", "ord_date");
         case    ST_DIMENSION    : return array(TB_PREF."dimensions", null, "id", "reference", "date_");
         case     ST_COSTUPDATE   : return array(TB_PREF."journal", "type", "trans_no", "reference", "tran_date");
+
+        case     ST_CUSTOMER    : return array(TB_PREF."debtors_master", null, "debtor_no", "debtor_ref", null);
+        case     ST_SUPPLIER    : return array(TB_PREF."suppliers", null, "supplier_id", "supp_ref", null);
        }
 
        display_db_error("invalid type ($type) sent to get_systype_db_info", "", true);