62 lines
1.6 KiB
PHP
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);
|
|
}
|
|
%> |