Skip to content

General settings

The General heading under Setting is the reference module. Base.php lists its screens in the reference group of MODULE_REFERENCE, and reference.php includes modules/reference/<modref>.php for the modref in the URL. Five are in the menu; two more (Resource, Resource Group) are listed in Base.php and reached from Users & Privileges.

How this page was verified

Written from master on 2026-09-06 and compared with the big five the same day. No earlier page existed. A map of the five menu entries; the two that already have a page are only pointed to.

Menu entrymodrefWhat it isPage
Configurationdev_configthe inweb_config editor, on $pdoinweb_config
Company Registercompanycompanies, contacts, transmittal templates, company and library privilegesbelow
Project Registerprojectsprojects and their MDR settingsProjects and MDR settings
Users & Privilegesusers_privilegespersons, groups, module privilegesUsers and privileges
Country & Other Settingscountry_currency_holidaycountry, currency rates, national holidaysbelow

Company Register

company.php with ref_company_browse.htm. The tables:

TableHolds
ts_companythe company: code, name, type (ts_company_type), address rows in ts_company_address
ts_company_transmittalthe transmittal template per company, used by Generate Transmittal
ts_company_privwhich other companies a company's users may see (setpriv, one row per visible company)
ts_doc_librarywhich library folders a company may see (setlibpriv, with the Check All / Check Child buttons)
ts_org_personthe contact persons

Commands: edit, getMainDataById, getparent, doc_index, download, import (Excel through xls.inc.php), setpriv, setlibpriv. Toolbar: New, Edit, Delete, Save, Save Change, Upload, Import, Export to CSV, Search, Check ALL / UnCheck ALL, Check Child / UnCheck Child, Refresh, Close.

The file is mixed: 27 calls to iw_mysql_query() against 59 uses of $pdo. The grid and the privilege writes are on PDO; parts of the import and the transmittal template upload are not.

Country & Other Settings

country_currency_holiday.php opens ref_country_currency_holiday_browse.htm, a page with three grids that dispatch to country.php, currency_rates.php and holiday.php.

GridTableUsed by
Countryts_countryvendors, companies, the MRR origin country
Currency ratests_currency, ts_currency_ratesRFQ bids, PO, contract exchange rates
National holidayts_holidaythe review-time (working days) computation of Document Routing

Each of the three scripts has two or three legacy calls left next to six or seven PDO calls; the grids load, the rarely used helpers do not.

Gotchas

  • ts_holiday is per year. A new year with no holidays entered makes every routing due date land on real holidays; nothing warns.
  • Company privileges are a second gate. A person can hold a library privilege through their group and still see no documents of another company, because their own company has that company unticked in setpriv.
  • Currency rates have a date. A PO created before the newest rate row keeps the rate it was created with.

Instance differences

Checked on 2026-09-06.

InstanceDifference
Jadestone, JOTRE, Timascompany.php and projects.php differ from master (client fields on the project form); group_privileges.php differs in all four forks. Timas adds a system_code.php here instead of under DMS settings.
MedcoOnly group_privileges.php and library_privilages.php differ.