Removed hardcoded dummy items

This commit is contained in:
Rick Falkvinge
2022-08-10 18:11:51 +02:00
parent a8e49e7cb2
commit 99ca6fe76d
-106
View File
@@ -23,112 +23,6 @@
$('img.action').attr('cursor', 'hand');
$('#TableEomItems').datagrid('appendRow', {
itemGroupName: '<span class="item-group-header">Upload&nbsp;external&nbsp;data&nbsp;and&nbsp;match&nbsp;accounts</span>',
itemId: 'GroupExternal'
});
rowCount = $('#TableEomItems').datagrid('getRows').length;
$('#TableEomItems').datagrid('mergeCells', {
index: rowCount - 1,
colspan: 2,
type: 'body',
field: 'itemGroupName'
});
$('#TableEomItems').datagrid('appendRow', {
itemName: 'Upload/Fetch bank transaction data (FORMAT) up until [lastdatelastmonth]',
action: "<img src='/Images/Icons/iconshock-yellow-sphere-30pct-128x96px.png' data-test-id='Sockets-Browser' class='test-running' style='display:inline' height='20px' />"
});
$('#TableEomItems').datagrid('appendRow', {
itemName: 'Upload bank statement (PDF) for [lastmonth]',
action: "<img src='/Images/Icons/iconshock-yellow-sphere-30pct-128x96px.png' data-test-id='Sockets-Browser' class='test-running' style='display:inline' height='20px' />"
});
$('#TableEomItems').datagrid('appendRow', {
itemName: 'Resolve unmatched ledger transactions',
action: "<img src='/Images/Icons/iconshock-yellow-sphere-30pct-128x96px.png' data-test-id='Sockets-Browser' class='test-running' style='display:inline' height='20px' />"
});
$('#TableEomItems').datagrid('appendRow', {
itemGroupName: '<span class="item-group-header">Taxes&nbsp;and&nbsp;Payroll</span>',
itemId: 'GroupTaxesPayroll'
});
rowCount = $('#TableEomItems').datagrid('getRows').length;
$('#TableEomItems').datagrid('mergeCells', {
index: rowCount - 1,
colspan: 2,
type: 'body',
field: 'itemGroupName'
});
$('#TableEomItems').datagrid('appendRow', {
itemName: 'VAT Report for [lastmonth]',
action: "<img src='/Images/Icons/iconshock-yellow-sphere-30pct-128x96px.png' data-test-id='Sockets-Browser' class='test-running' style='display:inline' height='20px' />"
});
/*
$('#TableEomItems').datagrid('appendRow', {
itemName: 'Payroll processing for [thismonth]',
docs: "<img src='/Images/Icons/iconshock-red-cross-sphere-128x96px.png' data-test-id='Sockets-Browser' class='test-failed' style='display:none' height='20px' />",
actions: "<img src='/Images/Icons/iconshock-yellow-sphere-30pct-128x96px.png' data-test-id='Sockets-Browser' class='test-running' style='display:inline' height='20px' />"
});
$('#TableEomItems').datagrid('appendRow', {
itemName: 'Submit to tax authorities',
docs: "<img src='/Images/Icons/iconshock-red-cross-sphere-128x96px.png' data-test-id='Sockets-Browser' class='test-failed' style='display:none' height='20px' />",
actions: "<img src='/Images/Icons/iconshock-yellow-sphere-30pct-128x96px.png' data-test-id='Sockets-Browser' class='test-running' style='display:inline' height='20px' />"
});
*/
$('#TableEomItems').datagrid('appendRow', {
itemGroupName: '<span class="item-group-header">Annual&nbsp;Reports</span>',
itemId: 'GroupAnnual'
});
rowCount = $('#TableEomItems').datagrid('getRows').length;
$('#TableEomItems').datagrid('mergeCells', {
index: rowCount - 1,
colspan: 2,
type: 'body',
field: 'itemGroupName'
});
$('#TableEomItems').datagrid('appendRow', {
itemName: 'Close ledgers for [year]',
docs: "<img src='/Images/Icons/iconshock-red-cross-sphere-128x96px.png' data-test-id='Sockets-Browser' class='test-failed' style='display:none' height='20px' />",
action: "<img src='/Images/Icons/iconshock-yellow-sphere-30pct-128x96px.png' data-test-id='Sockets-Browser' class='test-running' style='display:inline' height='20px' />"
});
$('#TableEomItems').datagrid('appendRow', {
itemGroupName: '<span class="item-group-header">Send&nbsp;to&nbsp;Accountants,&nbsp;Shareholders,&nbsp;etc.</span>',
itemId: 'SendReports'
});
rowCount = $('#TableEomItems').datagrid('getRows').length;
$('#TableEomItems').datagrid('mergeCells', {
index: rowCount - 1,
colspan: 2,
type: 'body',
field: 'itemGroupName'
});
$('#TableEomItems').datagrid('appendRow', {
itemName: 'Send all reports as required',
docs: "<img src='/Images/Icons/iconshock-red-cross-sphere-128x96px.png' data-test-id='Sockets-Browser' class='test-failed' style='display:none' height='20px' />",
action: "<img src='/Images/Icons/iconshock-yellow-sphere-30pct-128x96px.png' data-test-id='Sockets-Browser' class='test-running' style='display:inline' height='20px' />"
});
$('.action').click(function() {
var itemId = $(this).attr('data-item');
var callbackFunction = $(this).attr('data-callback');