116 lines
3.5 KiB
HTML
116 lines
3.5 KiB
HTML
<% /*
|
|
$Revision$
|
|
$Id$
|
|
|
|
File: model_cnt_disc_params.inc
|
|
|
|
Description: Vanuit CodeCharge gegenereerd model voor cnt_discipline
|
|
|
|
Context:
|
|
|
|
Notes: *uitsluitend* gebruikt als include van model_cnt_discipline
|
|
*/
|
|
%>
|
|
<%
|
|
model_cnt_disc_params =
|
|
{
|
|
"records_name": "cnt_disc_params",
|
|
"record_name": "cnt_disc_params",
|
|
"table": "cnt_disc_params",
|
|
"primary": "cnt_disc_params_key",
|
|
"autfunction": "WEB_CNTMGT",
|
|
|
|
|
|
"fields": {
|
|
"id": {
|
|
"dbs": "cnt_disc_params_key",
|
|
"label": L("lcl_key"),
|
|
"typ": "key",
|
|
"seq": "cnt_s_cnt_disc_params_key"
|
|
},
|
|
"contractdiscipline": {
|
|
"dbs": "cnt_ins_discipline_key",
|
|
"label": "Foreign key",
|
|
"typ": "key",
|
|
"hidden_fld": true
|
|
},
|
|
"contracttype": {
|
|
"dbs": "cnt_srtcontract_type",
|
|
"label": L("cnt_discipline_cnt_disckey"),
|
|
"typ": "key",
|
|
"insertonly": true,
|
|
"foreign": {
|
|
"tbl": "cnt_typecontract",
|
|
"key": "cnt_typecontract_key",
|
|
"desc": "cnt_typecontract_omschrijving"
|
|
}
|
|
},
|
|
"schedule": {
|
|
"dbs": "cnt_disc_params_factuurschema",
|
|
"label": L("cnt_discipline_factuurschema"),
|
|
"typ": "check0"
|
|
},
|
|
"percentage": {
|
|
"dbs": "cnt_disc_params_factuurpct",
|
|
"label": L("cnt_discipline_factuurpct"),
|
|
"typ": "number"
|
|
},
|
|
"margin": {
|
|
"dbs": "cnt_disc_params_factuurmarge",
|
|
"label": L("cnt_discipline_factuurmarge"),
|
|
"iscurrency": true,
|
|
"typ": "float"
|
|
},
|
|
"approve": {
|
|
"dbs": "cnt_disc_params_factuurappr",
|
|
"label": L("cnt_discipline_factuurappr"),
|
|
"typ": "check0"
|
|
},
|
|
"invoicelimit": { // "limit" is een reserved naam in API2
|
|
"dbs": "cnt_disc_params_factuurgrens",
|
|
"label": L("cnt_discipline_factuurgrens"),
|
|
"typ": "number"
|
|
},
|
|
//"period": {
|
|
// "dbs": "cnt_disc_params_termijndefault",
|
|
// "label": L("cnt_discipline_termijn"),
|
|
// "typ": "number"
|
|
//},
|
|
"remark": {
|
|
"dbs": "cnt_disc_params_opmerking",
|
|
"label": L("cnt_discipline_opmerking"),
|
|
"typ": "memo",
|
|
"translate": true
|
|
},
|
|
"binding": {
|
|
"dbs": "cnt_disc_params_binding",
|
|
"label": L("cnt_discipline_binding"),
|
|
"typ": "number",
|
|
"bits": [
|
|
{
|
|
"name": "",
|
|
"label": "",
|
|
"typ": "check",
|
|
"mask": 3,
|
|
"radios": [
|
|
{
|
|
"name": "company",
|
|
"label": L("cnt_discipline_bind_company"),
|
|
"mask": 1,
|
|
"defaultvalue": 1
|
|
},
|
|
{
|
|
"name": "person",
|
|
"label": L("cnt_discipline_bind_person"),
|
|
"mask": 2,
|
|
"defaultvalue": 1
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
|
|
api2.generic_REST(model_cnt_disc_params);
|
|
%> |