<filename>modules/e10doc/purchase/extensions/purchase.json
[
  {
    "table": "e10doc.core.heads",
		"columns": [
			{"id": "weightIn", "name": "<NAME>", "label": "Hm. příjezd", "type": "number", "dec": 1},
			{"id": "weightOut", "name": "Hmotnost odjezd", "label": "Hm. odjezd", "type": "number", "dec": 1},
			{"id": "weighingMachine", "name": "Zváženo na váze", "type": "int"}
		],
    "views": {
      "purchase": {
				"id": "purchase", "class": "e10doc.purchase.libs.ViewPurchaseDocs",
				"details": {
					"detail": {"title": "Přehled", "icon": "system/detailDetail", "type": "detail", "class": "e10doc.purchase.libs.ViewDetailPurchaseDocs", "order": 1000},
					"accounting": {"title": "Účtování", "icon": "system/detailAccounting", "type": "detail", "class": "e10doc.debs.libs.ViewDetailDocAccounting", "order": 6000}
				}
			},
			"invoicesIn": {
				"panels": [
					{"id": "purchases", "title": "Výkupy", "type": "viewer", "table": "e10.persons.persons", "class": "e10pro.purchase.InvoicePurchaseDisposal"}
				]
			}
		},
    "forms": [
      {"id": "purchase", "class": "e10doc.purchase.libs.FormPurchaseDocs"}
    ],
		"reports": [
			{
				"id": "purchase", "name": "<NAME>", "class": "e10doc.purchase.libs.PurchaseReport",
				"printerClass": "default", "queryCol": "docType", "queryColValues": ["purchase"], "email": 1
			},
			{
				"id": "purchasepos", "name": "Účtenka", "class": "e10doc.purchase.libs.PurchaseReportPos",
				"directPrint": 1, "printerClass": "pos", "queryCol": "docType", "queryColValues": ["purchase"]
			}
		],
	  "indexes": [
		  {"id": "purchase_s1", "columns": ["docType", "docState", "activateTimeFirst"]}
	  ]
	},
  {
    "table": "e10doc.core.rows",
    "forms": [
      {"id": "purchase", "class": "e10doc.purchase.libs.FormPurchaseDocsRows"}
    ]
  }
]
