Reports verbessert
This commit is contained in:
230
reporting.ipynb
230
reporting.ipynb
@@ -1122,16 +1122,161 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 6,
|
||||||
"id": "34cfb8bd-fccc-436e-9391-f903f715c9d8",
|
"id": "a7c72234-8838-461c-a4d7-b1c0170f789f",
|
||||||
"metadata": {
|
"metadata": {},
|
||||||
"jupyter": {
|
"outputs": [
|
||||||
"source_hidden": true
|
{
|
||||||
|
"name": "stdout",
|
||||||
|
"output_type": "stream",
|
||||||
|
"text": [
|
||||||
|
"\n",
|
||||||
|
"Activity:\n",
|
||||||
|
"name: Move 24/25 Nachtweide Raps Plant to Nachtweide\n",
|
||||||
|
"timestamp: 14.10.24 22:00 \n",
|
||||||
|
"\n",
|
||||||
|
"Activity:\n",
|
||||||
|
"name: Move W-Raps Helmacker Plant 24/25 to Helmacker\n",
|
||||||
|
"timestamp: 14.10.24 22:00 \n",
|
||||||
|
"\n",
|
||||||
|
"Activity:\n",
|
||||||
|
"name: Move W-Raps Helmacker Plant 24/25 to Helmacker\n",
|
||||||
|
"timestamp: 22.10.24 22:00 \n",
|
||||||
|
"\n",
|
||||||
|
"Maintenance:\n",
|
||||||
|
"name: Scheibeneggen Helmacker Maintenance 24/25\n",
|
||||||
|
"timestamp: 28.07.24 11:34 \n",
|
||||||
|
"equipment: Scheibenegge Catros\n",
|
||||||
|
"quant_type: quantity--price\n",
|
||||||
|
"quant_measure: time\n",
|
||||||
|
"quant_value: 2.0\n",
|
||||||
|
"quant_inventory_adjustment: None\n",
|
||||||
|
"quant_value: 2.0\n",
|
||||||
|
"unit_name: h\n",
|
||||||
|
"unit_price_1: = 20.0\n",
|
||||||
|
"unit_price_1: = 40.0\n",
|
||||||
|
"\n",
|
||||||
|
"Purchase:\n",
|
||||||
|
"name: Schneckenkorn Purchase 24/25\n",
|
||||||
|
"timestamp: 11.08.24 05:47 \n",
|
||||||
|
"quant0_type: quantity--price\n",
|
||||||
|
"quant0_measure: weight\n",
|
||||||
|
"quant0_value: 10.0\n",
|
||||||
|
"quant0_inventory_adjustment: increment\n",
|
||||||
|
"unit0_name: kg\n",
|
||||||
|
"unit0_price_1: = 30.0\n",
|
||||||
|
"unit0_price_1: = 300.0\n",
|
||||||
|
"inventory_asset1: = Schneckenkorn Material 08/24\n",
|
||||||
|
"\n",
|
||||||
|
"Purchase:\n",
|
||||||
|
"name: Innovert Raps Purchase 24/25\n",
|
||||||
|
"timestamp: 10.08.24 05:39 \n",
|
||||||
|
"quant0_type: quantity--price\n",
|
||||||
|
"quant0_measure: volume\n",
|
||||||
|
"quant0_value: 10.0\n",
|
||||||
|
"quant0_inventory_adjustment: increment\n",
|
||||||
|
"unit0_name: l\n",
|
||||||
|
"unit0_price_1: = 2.5\n",
|
||||||
|
"unit0_price_1: = 25.0\n",
|
||||||
|
"inventory_asset1: = Innovert Raps Material 08/24\n",
|
||||||
|
"quant1_type: quantity--material\n",
|
||||||
|
"quant1_measure: ratio\n",
|
||||||
|
"quant1_value: 69.0\n",
|
||||||
|
"quant2_type: quantity--material\n",
|
||||||
|
"quant2_measure: ratio\n",
|
||||||
|
"quant2_value: 138.0\n",
|
||||||
|
"\n",
|
||||||
|
"Purchase:\n",
|
||||||
|
"name: W-Raps Saatgut Otello KWS Saatgut Purchase 24/25\n",
|
||||||
|
"timestamp: 01.08.24 05:33 \n",
|
||||||
|
"quant0_type: quantity--price\n",
|
||||||
|
"quant0_measure: weight\n",
|
||||||
|
"quant0_value: 50.0\n",
|
||||||
|
"quant0_inventory_adjustment: increment\n",
|
||||||
|
"unit0_name: kg\n",
|
||||||
|
"unit0_price_1: = 2.0\n",
|
||||||
|
"unit0_price_1: = 100.0\n",
|
||||||
|
"inventory_asset1: = W-Raps Saatgut Otello KWS Seed 08/24\n",
|
||||||
|
"\n",
|
||||||
|
"Seeding:\n",
|
||||||
|
"name: W-Raps Otello KWS Helmacker Seeding 24/25\n",
|
||||||
|
"timestamp: 22.08.24 22:00 \n",
|
||||||
|
"equipment: Sähmaschine Cataya\n",
|
||||||
|
"plant loc: Helmacker\n",
|
||||||
|
"quant_type: quantity--standard\n",
|
||||||
|
"quant_measure: weight\n",
|
||||||
|
"quant_value: 50.0\n",
|
||||||
|
"quant_inventory_adjustment: decrement\n",
|
||||||
|
"quant_inventory_name: W-Raps Saatgut Otello KWS Seed 08/24\n",
|
||||||
|
"\n",
|
||||||
|
"Seeding:\n",
|
||||||
|
"name: W-Raps Otello KWS Nachtweide Seeding 24/25\n",
|
||||||
|
"timestamp: 28.08.24 22:00 \n",
|
||||||
|
"equipment: Sähmaschine Cataya\n",
|
||||||
|
"plant loc: Nachtweide\n",
|
||||||
|
"quant_type: quantity--standard\n",
|
||||||
|
"quant_measure: weight\n",
|
||||||
|
"quant_value: 66.0\n",
|
||||||
|
"quant_inventory_adjustment: decrement\n",
|
||||||
|
"quant_inventory_name: W-Raps Saatgut Otello KWS Seed 08/24\n",
|
||||||
|
"\n",
|
||||||
|
"Input:\n",
|
||||||
|
"name: Innovert Raps Input 24/25\n",
|
||||||
|
"timestamp: 12.10.24 13:18 \n",
|
||||||
|
"equipment: Spritze\n",
|
||||||
|
"quant_type: quantity--standard\n",
|
||||||
|
"quant_measure: volume\n",
|
||||||
|
"quant_value: 10.0\n",
|
||||||
|
"quant_inventory_adjustment: decrement\n",
|
||||||
|
"\n",
|
||||||
|
"Input:\n",
|
||||||
|
"name: Innovert Raps Input 24/25\n",
|
||||||
|
"timestamp: 03.11.24 23:00 \n",
|
||||||
|
"equipment: Spritze\n",
|
||||||
|
"quant_type: quantity--standard\n",
|
||||||
|
"quant_measure: volume\n",
|
||||||
|
"quant_value: 10.0\n",
|
||||||
|
"quant_inventory_adjustment: decrement\n",
|
||||||
|
"\n",
|
||||||
|
"Medical:\n",
|
||||||
|
"name: Schneckenkorn Medical 24/25\n",
|
||||||
|
"timestamp: 30.08.24 06:42 \n",
|
||||||
|
"equipment: Schneckenkornstreuer Leinfelder\n",
|
||||||
|
"quant_type: quantity--standard\n",
|
||||||
|
"quant_measure: weight\n",
|
||||||
|
"quant_value: 10.0\n",
|
||||||
|
"quant_inventory_adjustment: decrement\n",
|
||||||
|
"\n",
|
||||||
|
"Harvest:\n",
|
||||||
|
"name: W-Raps Helmacker Harvest 24/25\n",
|
||||||
|
"timestamp: 20.10.24 10:11 \n",
|
||||||
|
"equipment: Mähdrescher Leinfelder\n",
|
||||||
|
"quant_type: quantity--standard\n",
|
||||||
|
"quant_measure: weight\n",
|
||||||
|
"quant_value: 5.0\n",
|
||||||
|
"quant_inventory_adjustment: increment\n",
|
||||||
|
"\n",
|
||||||
|
"Harvest:\n",
|
||||||
|
"name: W-Raps Nachtweide Harvest 24/25\n",
|
||||||
|
"timestamp: 28.10.24 23:00 \n",
|
||||||
|
"equipment: Mähdrescher Leinfelder\n",
|
||||||
|
"quant_type: quantity--standard\n",
|
||||||
|
"quant_measure: weight\n",
|
||||||
|
"quant_value: 7.8\n",
|
||||||
|
"quant_inventory_adjustment: increment\n",
|
||||||
|
"\n",
|
||||||
|
"Sale:\n",
|
||||||
|
"name: W-Raps Sale 24/25\n",
|
||||||
|
"timestamp: 28.10.24 07:54 \n",
|
||||||
|
"quant_type: quantity--price\n",
|
||||||
|
"quant_measure: weight\n",
|
||||||
|
"quant_value: 5.0\n",
|
||||||
|
"quant_inventory_adjustment: decrement\n"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
],
|
||||||
"outputs": [],
|
|
||||||
"source": [
|
"source": [
|
||||||
"Alle Logs\n",
|
"#Alle Logs\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# alle logs von einem Plant \n",
|
"# alle logs von einem Plant \n",
|
||||||
@@ -1144,6 +1289,7 @@
|
|||||||
" \n",
|
" \n",
|
||||||
" logs = neo.Log.Activity.get_list()\n",
|
" logs = neo.Log.Activity.get_list()\n",
|
||||||
" for log in logs:\n",
|
" for log in logs:\n",
|
||||||
|
" print(\"\")\n",
|
||||||
" print(\"Activity:\")\n",
|
" print(\"Activity:\")\n",
|
||||||
" print(f\"name: {log.name}\")\n",
|
" print(f\"name: {log.name}\")\n",
|
||||||
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y %H:%M \") # Konvertiere in das gewünschte Format\n",
|
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y %H:%M \") # Konvertiere in das gewünschte Format\n",
|
||||||
@@ -1155,6 +1301,7 @@
|
|||||||
" \n",
|
" \n",
|
||||||
" logs = neo.Log.Maintenance.get_list()\n",
|
" logs = neo.Log.Maintenance.get_list()\n",
|
||||||
" for log in logs:\n",
|
" for log in logs:\n",
|
||||||
|
" print(\"\")\n",
|
||||||
" print(\"Maintenance:\")\n",
|
" print(\"Maintenance:\")\n",
|
||||||
" print(f\"name: {log.name}\")\n",
|
" print(f\"name: {log.name}\")\n",
|
||||||
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y %H:%M \") # Konvertiere in das gewünschte Format\n",
|
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y %H:%M \") # Konvertiere in das gewünschte Format\n",
|
||||||
@@ -1173,16 +1320,18 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"#log Purchase\n",
|
"#log Purchase\n",
|
||||||
" \n",
|
"\n",
|
||||||
" logs = neo.Log.Purchase.get_list()\n",
|
" logs = neo.Log.Purchase.get_list()\n",
|
||||||
" for log in logs:\n",
|
" for log in logs:\n",
|
||||||
|
" print(\"\")\n",
|
||||||
" print(\"Purchase:\")\n",
|
" print(\"Purchase:\")\n",
|
||||||
" print(f\"name: {log.name}\")\n",
|
" print(f\"name: {log.name}\")\n",
|
||||||
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y %H:%M \") # Konvertiere in das gewünschte Format\n",
|
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y %H:%M \") # Konvertiere in das gewünschte Format\n",
|
||||||
" print(f\"timestamp: {formatted_date}\") \n",
|
" print(f\"timestamp: {formatted_date}\") \n",
|
||||||
" \n",
|
" \n",
|
||||||
" #quantity\n",
|
" #quantity\n",
|
||||||
" input=neo.Log.Purchase.from_id(log.id)\n",
|
" input=neo.Log.Purchase.from_id(log.id)\n",
|
||||||
|
" \n",
|
||||||
" print(f\"quant0_type: {input.quantities[0].type}\")\n",
|
" print(f\"quant0_type: {input.quantities[0].type}\")\n",
|
||||||
" print(f\"quant0_measure: {input.quantities[0].measure}\")\n",
|
" print(f\"quant0_measure: {input.quantities[0].measure}\")\n",
|
||||||
" print(f\"quant0_value: {input.quantities[0].value}\")\n",
|
" print(f\"quant0_value: {input.quantities[0].value}\")\n",
|
||||||
@@ -1190,19 +1339,22 @@
|
|||||||
" print(f\"unit0_name: {input.quantities[0].units.name}\")\n",
|
" print(f\"unit0_name: {input.quantities[0].units.name}\")\n",
|
||||||
" print (f\"unit0_price_1: = {input.quantities[0].unit_price}\")\n",
|
" print (f\"unit0_price_1: = {input.quantities[0].unit_price}\")\n",
|
||||||
" print (f\"unit0_price_1: = {input.quantities[0].total_price}\")\n",
|
" print (f\"unit0_price_1: = {input.quantities[0].total_price}\")\n",
|
||||||
"\n",
|
" print (f\"inventory_asset1: = {input.quantities[0].inventory_asset.name}\")\n",
|
||||||
" print(f\"quant1_type: {input.quantities[0].type}\")\n",
|
" \n",
|
||||||
" print(f\"quant1_measure: {input.quantities[0].measure}\")\n",
|
" \n",
|
||||||
" print(f\"quant1_value: {input.quantities[0].value}\")\n",
|
" \n",
|
||||||
" print(f\"unit1_name: {input.quantities[0].units.name}\")\n",
|
" if len(input.quantities) > 1:\n",
|
||||||
"\n",
|
" print(f\"quant1_type: {input.quantities[1].type}\") \n",
|
||||||
"\n",
|
" print(f\"quant1_measure: {input.quantities[1].measure}\")\n",
|
||||||
"\n",
|
" print(f\"quant1_value: {input.quantities[1].value}\")\n",
|
||||||
"\n",
|
" #print(f\"taxonomy1_name: {input.quantities[1].taxonomy_term.name}\")\n",
|
||||||
"\n",
|
" \n",
|
||||||
"\n",
|
" print(f\"quant2_type: {input.quantities[2].type}\") \n",
|
||||||
" \n",
|
" print(f\"quant2_measure: {input.quantities[2].measure}\")\n",
|
||||||
"\n",
|
" print(f\"quant2_value: {input.quantities[2].value}\") \n",
|
||||||
|
" \n",
|
||||||
|
" \n",
|
||||||
|
" \n",
|
||||||
"\n",
|
"\n",
|
||||||
" \n",
|
" \n",
|
||||||
"\n",
|
"\n",
|
||||||
@@ -1211,6 +1363,7 @@
|
|||||||
"#log Seeding \n",
|
"#log Seeding \n",
|
||||||
" logs = neo.Log.Seeding.get_list()\n",
|
" logs = neo.Log.Seeding.get_list()\n",
|
||||||
" for log in logs:\n",
|
" for log in logs:\n",
|
||||||
|
" print(\"\")\n",
|
||||||
" print(\"Seeding:\")\n",
|
" print(\"Seeding:\")\n",
|
||||||
" print(f\"name: {log.name}\")\n",
|
" print(f\"name: {log.name}\")\n",
|
||||||
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y %H:%M \") # Konvertiere in das gewünschte Format\n",
|
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y %H:%M \") # Konvertiere in das gewünschte Format\n",
|
||||||
@@ -1228,6 +1381,7 @@
|
|||||||
"#log Input \n",
|
"#log Input \n",
|
||||||
" logs = neo.Log.Input.get_list()\n",
|
" logs = neo.Log.Input.get_list()\n",
|
||||||
" for log in logs:\n",
|
" for log in logs:\n",
|
||||||
|
" print(\"\")\n",
|
||||||
" print(\"Input:\")\n",
|
" print(\"Input:\")\n",
|
||||||
" print(f\"name: {log.name}\")\n",
|
" print(f\"name: {log.name}\")\n",
|
||||||
" #print(f\"name: {log.id}\")\n",
|
" #print(f\"name: {log.id}\")\n",
|
||||||
@@ -1245,6 +1399,7 @@
|
|||||||
"#log Medical\n",
|
"#log Medical\n",
|
||||||
" logs = neo.Log.Medical.get_list()\n",
|
" logs = neo.Log.Medical.get_list()\n",
|
||||||
" for log in logs:\n",
|
" for log in logs:\n",
|
||||||
|
" print(\"\")\n",
|
||||||
" print(\"Medical:\")\n",
|
" print(\"Medical:\")\n",
|
||||||
" print(f\"name: {log.name}\")\n",
|
" print(f\"name: {log.name}\")\n",
|
||||||
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y %H:%M \") # Konvertiere in das gewünschte Format\n",
|
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y %H:%M \") # Konvertiere in das gewünschte Format\n",
|
||||||
@@ -1262,6 +1417,7 @@
|
|||||||
"#log Harvest \n",
|
"#log Harvest \n",
|
||||||
" logs = neo.Log.Harvest.get_list()\n",
|
" logs = neo.Log.Harvest.get_list()\n",
|
||||||
" for log in logs:\n",
|
" for log in logs:\n",
|
||||||
|
" print(\"\")\n",
|
||||||
" print(\"Harvest:\")\n",
|
" print(\"Harvest:\")\n",
|
||||||
" print(f\"name: {log.name}\")\n",
|
" print(f\"name: {log.name}\")\n",
|
||||||
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y %H:%M \") # Konvertiere in das gewünschte Format\n",
|
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y %H:%M \") # Konvertiere in das gewünschte Format\n",
|
||||||
@@ -1278,6 +1434,7 @@
|
|||||||
"#log Sale \n",
|
"#log Sale \n",
|
||||||
" logs = neo.Log.Sale.get_list()\n",
|
" logs = neo.Log.Sale.get_list()\n",
|
||||||
" for log in logs:\n",
|
" for log in logs:\n",
|
||||||
|
" print(\"\")\n",
|
||||||
" print(\"Sale:\")\n",
|
" print(\"Sale:\")\n",
|
||||||
" print(f\"name: {log.name}\")\n",
|
" print(f\"name: {log.name}\")\n",
|
||||||
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y %H:%M \") # Konvertiere in das gewünschte Format\n",
|
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y %H:%M \") # Konvertiere in das gewünschte Format\n",
|
||||||
@@ -1288,18 +1445,18 @@
|
|||||||
" print(f\"quant_type: {input.quantities[0].type}\")\n",
|
" print(f\"quant_type: {input.quantities[0].type}\")\n",
|
||||||
" print(f\"quant_measure: {input.quantities[0].measure}\")\n",
|
" print(f\"quant_measure: {input.quantities[0].measure}\")\n",
|
||||||
" print(f\"quant_value: {input.quantities[0].value}\")\n",
|
" print(f\"quant_value: {input.quantities[0].value}\")\n",
|
||||||
" print(f\"quant_inventory_adjustment: {input.quantities[0].inventory_adjustment}\")"
|
" print(f\"quant_inventory_adjustment: {input.quantities[0].inventory_adjustment}\")\n",
|
||||||
|
"\n",
|
||||||
|
"\n",
|
||||||
|
"\n",
|
||||||
|
" "
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
"id": "743232d5-48d1-49f3-8b5f-4fd499e2126e",
|
"id": "5d34dcc9-a4b9-423f-91d4-da1958ecc20e",
|
||||||
"metadata": {
|
"metadata": {},
|
||||||
"jupyter": {
|
|
||||||
"source_hidden": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"#log Purchase\n",
|
"#log Purchase\n",
|
||||||
@@ -1308,6 +1465,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"logs = neo.Log.Purchase.get_list()\n",
|
"logs = neo.Log.Purchase.get_list()\n",
|
||||||
"for log in logs:\n",
|
"for log in logs:\n",
|
||||||
|
" print(\"\")\n",
|
||||||
" print(\"Purchase:\")\n",
|
" print(\"Purchase:\")\n",
|
||||||
" print(f\"name: {log.name}\")\n",
|
" print(f\"name: {log.name}\")\n",
|
||||||
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y %H:%M \") # Konvertiere in das gewünschte Format\n",
|
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y %H:%M \") # Konvertiere in das gewünschte Format\n",
|
||||||
@@ -1338,18 +1496,8 @@
|
|||||||
" print(f\"quant2_value: {input.quantities[2].value}\") \n",
|
" print(f\"quant2_value: {input.quantities[2].value}\") \n",
|
||||||
" \n",
|
" \n",
|
||||||
" \n",
|
" \n",
|
||||||
" \n",
|
" \n"
|
||||||
"\n",
|
|
||||||
" "
|
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"id": "5d34dcc9-a4b9-423f-91d4-da1958ecc20e",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": []
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
|||||||
Reference in New Issue
Block a user