94 lines
2.4 KiB
JSON
94 lines
2.4 KiB
JSON
{
|
|
"elements": [
|
|
{
|
|
"type": "Label",
|
|
"caption": "Einstellungen für Abrechnung"
|
|
},
|
|
{
|
|
"type": "ExpansionPanel",
|
|
"caption": "Benutzer (Empfänger)",
|
|
"items": [
|
|
{
|
|
"type": "List",
|
|
"name": "Users",
|
|
"caption": "Benutzer",
|
|
"add": true,
|
|
"columns": [
|
|
{ "caption": "ID", "name": "id", "width": "10%" },
|
|
{ "caption": "Name", "name": "name", "width": "35%" },
|
|
{ "caption": "E-Mail", "name": "email", "width": "35%" },
|
|
{ "caption": "Adresse", "name": "address", "width": "20%" }
|
|
],
|
|
"rowCount": 5,
|
|
"rowEdit": true,
|
|
"delete": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpansionPanel",
|
|
"caption": "Zähler",
|
|
"items": [
|
|
{
|
|
"type": "List",
|
|
"name": "Meters",
|
|
"caption": "Zähler",
|
|
"add": true,
|
|
"columns": [
|
|
{ "caption": "ID", "name": "id", "width": "10%" },
|
|
{ "caption": "Name", "name": "name", "width": "25%" },
|
|
{ "caption": "IPS-VariableID", "name": "variableid", "width": "20%" },
|
|
{ "caption": "Benutzer-ID", "name": "user_id", "width": "20%" },
|
|
{ "caption": "Einheit", "name": "unit", "width": "15%" }
|
|
],
|
|
"rowCount": 5,
|
|
"rowEdit": true,
|
|
"delete": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpansionPanel",
|
|
"caption": "Abrechnung (Schnellstart)",
|
|
"items": [
|
|
{
|
|
"type": "DateTimePicker",
|
|
"name": "from",
|
|
"caption": "Von",
|
|
"format": "yyyy-MM-dd HH:mm"
|
|
},
|
|
{
|
|
"type": "DateTimePicker",
|
|
"name": "to",
|
|
"caption": "Bis",
|
|
"format": "yyyy-MM-dd HH:mm"
|
|
},
|
|
{
|
|
"type": "NumberSpinner",
|
|
"name": "work_price",
|
|
"caption": "Arbeitspreis (pro Einheit)",
|
|
"digits": 4,
|
|
"minimum": 0
|
|
},
|
|
{
|
|
"type": "NumberSpinner",
|
|
"name": "fixed_fee",
|
|
"caption": "Fixbetrag pro Benutzer (optional)",
|
|
"digits": 2,
|
|
"minimum": 0
|
|
},
|
|
{
|
|
"type": "Button",
|
|
"caption": "Abrechnung erzeugen (PDF)",
|
|
"onClick": "GenerateInvoices"
|
|
},
|
|
{
|
|
"type": "Label",
|
|
"name": "result",
|
|
"caption": ""
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|