Files
Facilitor/APPL/API2/model_cnt_factuurschema.inc
Jos Groot Lipman 0ab7df7800 FSN#38471 Bedragen via scaffolding centen tonen
svn path=/Website/trunk/; revision=31544
2016-11-17 13:05:42 +00:00

67 lines
1.8 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",
"required": true,
"label": L("lcl_fin_divide_period"),
"friendlyname": true // accountingperiod hernoemen naar "name" is me te verwarrend
},
"amount": {
"dbs": "cnt_factuurschema_bedrag",
"typ": "float",
"iscurrency": true,
"required": true,
"label": L("lcl_cnt_period_sum")
},
"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);
}
%>