Files
Facilitor/APPL/API2/model_cnt_factuurschema.inc
Jos Groot Lipman 7ce4f83347 AAIT#37411 Contract factuurschema bewerken via scaffolding
svn path=/Website/trunk/; revision=31459
2016-11-14 13:59:45 +00:00

62 lines
1.6 KiB
PHP

<% /*
$Revision$
$Id$
File: model_cnt_factuurschema.inc
Description: Model voor cnt_factuurschema
Context:
Notes:
*/
%>
<%
function model_cnt_factuurschema()
{
this.table = "cnt_factuurschema";
this.primary = "cnt_factuurschema_key";
this.records_name = "cnt_factuurschemas";
this.record_name = "cnt_factuurschema";
this.autfunction = "WEB_CNTMGT";
this.record_title = L("cnt_factuurschema");
this.records_title = L("cnt_factuurschema_m");
this.fields = {
"id": {
"dbs": "cnt_factuurschema_key",
"label": "Key",
"typ": "key",
"required": true,
"seq": "cnt_s_cnt_factuurschema_key"
},
"cnt_contract_key": {
"dbs": "cnt_contract_key",
"typ": "key",
"foreign": "cnt_contract",
"label": L("lcl_contract")
},
"accountingperiod": {
"dbs": "cnt_factuurschema_boekmaand",
"typ": "varchar",
"track": true,
"label": L("lcl_fin_divide_period")
},
"amount": {
"dbs": "cnt_factuurschema_bedrag",
"typ": "float"
},
"description": {
"dbs": "cnt_factuurschema_opmerking",
"typ": "memo",
"label": L("cnt_factuurschema_opmerking")
}
};
this.REST_GET = generic_REST_GET(this);
this.REST_POST = generic_REST_POST(this);
this.REST_PUT = generic_REST_PUT(this);
this.REST_DELETE = generic_REST_DELETE(this);
}
%>