{
	"name": "form/nc/erp-sync/ksef/grid.json",
	"run_after": [
		{
			"function": "setInvoiceGridData",
			"parameter": [
				{
					"connection": "ksef",
					"grid": "local",
					"table": "order"
				}
			]
		}
	],
	"grid": [
		{
			"name": "file_list_export",
			"column": "form/nc/erp-sync/ksef/column/ksef-file-list.json",
			"query": "-",
			"info": { "query_table": "order", "query_table_prefix": "ord", "column_count": 0, "column_name": [], "row_count": 0, "row_count_total": 0, "query_time": 0 },
			"tab": "order-invoice"
		},
		{
			"column": "form/nc/erp-sync/ksef/column/order-invoice.json",
			"name": "local",
			"query": "form/nc/erp-sync/ksef/query-local/order-invoice.json",
			"tab": "order-invoice"
		},
		{
			"column": "form/nc/erp-sync/ksef/column/order-invoice.json",
			"name": "external",
			"query": "form/nc/erp-sync/ksef/query/order-invoice.json",
			"tab": "order-invoice"
		},
		{
			"info": "postgre ksef as local, rest out as external",
			"column": "form/nc/erp-sync/ksef/column/order-invoice.json",
			"name": "local",
			"query": "form/nc/erp-sync/ksef/query/order-invoice.json",
			"tab": "order-ksef_invoice"
		},
		{
			"column": "form/nc/erp-sync/ksef/column/invoice-ksef.json",
			"name": "external",
			"query": "form/nc/erp-sync/ksef/query/invoice-ksef-out.json",
			"tab": "order-ksef_invoice"
		},
		{
			"info": "postgre ksef as local, rest incoming as external",
			"column": "form/nc/erp-sync/ksef/column/invoice-ksef.json",
			"name": "local",
			"query": "form/nc/erp-sync/ksef/query/order-accounts_payable.json",
			"tab": "order-accounts_payable"
		},
		{
			"column": "form/nc/erp-sync/ksef/column/invoice-ksef.json",
			"name": "external",
			"query": "form/nc/erp-sync/ksef/query/invoice-ksef-in.json",
			"tab": "order-accounts_payable"
		},
		{
			"column": "form/nc/erp-sync/ksef/column/session-status.json",
			"name": "local",
			"query": "form/nc/erp-sync/ksef/query/preference-external.json",
			"tab": "preference-external"
		},
		{
			"column": "form/nc/erp-sync/ksef/column/session-status.json",
			"name": "external",
			"query": "form/nc/erp-sync/ksef/query/session-status.json",
			"tab": "preference-external"
		},
		{
			"column": "form/nc/erp-sync/ksef/column/token.json",
			"name": "local",
			"query": "-",
			"tab": "token"
		},
		{
			"column": "form/nc/erp-sync/ksef/column/token.json",
			"name": "external",
			"query": "form/nc/erp-sync/ksef/query/token.json",
			"tab": "token"
		},
		{
			"column": "form/nc/erp-sync/ksef/column/session-online-open.json",
			"name": "local",
			"query": "-",
			"tab": "session-open"
		},
		{
			"column": "form/nc/erp-sync/ksef/column/session-online-open.json",
			"name": "external",
			"query": "form/nc/erp-sync/ksef/query/session-online-open.json",
			"tab": "session-open"
		},
		{
			"column": "form/nc/erp-sync/ksef/column/order_row-invoice.json",
			"name": "local",
			"query": "form/nc/erp-sync/ksef/query-local/order_row-invoice.json",
			"tab": "order_row-invoice"
		},
		{
			"column": "form/nc/erp-sync/ksef/column/order_row-invoice.json",
			"name": "external",
			"query": "form/nc/erp-sync/ksef/query/order_row-invoice.json",
			"tab": "order_row-invoice"
		}
	]
}
