blabal
This commit is contained in:
271
reporting.ipynb
271
reporting.ipynb
@@ -1122,17 +1122,241 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 4,
|
||||||
"id": "a7c72234-8838-461c-a4d7-b1c0170f789f",
|
"id": "a7c72234-8838-461c-a4d7-b1c0170f789f",
|
||||||
"metadata": {
|
"metadata": {},
|
||||||
"jupyter": {
|
"outputs": [
|
||||||
"source_hidden": true
|
{
|
||||||
},
|
"name": "stdout",
|
||||||
"scrolled": true
|
"output_type": "stream",
|
||||||
},
|
"text": [
|
||||||
"outputs": [],
|
"\n",
|
||||||
|
"Activity:\n",
|
||||||
|
"name: Move 24/25 Nachtweide Raps Plant to Nachtweide\n",
|
||||||
|
"timestamp: 14.10.24\n",
|
||||||
|
"plant_name: W-Raps Nachtweide Plant 24/25 \n",
|
||||||
|
"location: Nachtweide\n",
|
||||||
|
"\n",
|
||||||
|
"Activity:\n",
|
||||||
|
"name: Move W-Raps Helmacker Plant 24/25 to Helmacker\n",
|
||||||
|
"timestamp: 14.10.24\n",
|
||||||
|
"plant_name: W-Raps Helmacker Plant 24/25\n",
|
||||||
|
"location: Helmacker\n",
|
||||||
|
"\n",
|
||||||
|
"Activity:\n",
|
||||||
|
"name: Move W-Raps Helmacker Plant 24/25 to Helmacker\n",
|
||||||
|
"timestamp: 22.10.24\n",
|
||||||
|
"plant_name: W-Raps Helmacker Plant 24/25\n",
|
||||||
|
"location: Helmacker\n",
|
||||||
|
"\n",
|
||||||
|
"Maintenance:\n",
|
||||||
|
"name: Scheibeneggen Helmacker Maintenance 24/25\n",
|
||||||
|
"timestamp: 28.07.24\n",
|
||||||
|
"equipment: Scheibenegge Catros\n",
|
||||||
|
"plant_name: W-Raps Helmacker Plant 24/25\n",
|
||||||
|
"quant_type: quantity--price\n",
|
||||||
|
"quant_measure: time\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\n",
|
||||||
|
"quant0_type: quantity--price\n",
|
||||||
|
"quant0_measure: weight\n",
|
||||||
|
"quant0_value: 10.0\n",
|
||||||
|
"unit0_name: kg\n",
|
||||||
|
"quant0_inventory_adjustment: increment\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\n",
|
||||||
|
"quant0_type: quantity--price\n",
|
||||||
|
"quant0_measure: volume\n",
|
||||||
|
"quant0_value: 10.0\n",
|
||||||
|
"unit0_name: l\n",
|
||||||
|
"quant0_inventory_adjustment: increment\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",
|
||||||
|
"quant1materialtype: N\n",
|
||||||
|
"quant2_type: quantity--material\n",
|
||||||
|
"quant2_measure: ratio\n",
|
||||||
|
"quant2_value: 138.0\n",
|
||||||
|
"quant3_type: quantity--material\n",
|
||||||
|
"quant3_measure: ratio\n",
|
||||||
|
"quant3_value: 12.0\n",
|
||||||
|
"quant4_type: quantity--material\n",
|
||||||
|
"quant4_measure: ratio\n",
|
||||||
|
"quant4_value: 60.0\n",
|
||||||
|
"quant5_type: quantity--material\n",
|
||||||
|
"quant5_measure: ratio\n",
|
||||||
|
"quant5_value: 70.0\n",
|
||||||
|
"quant6_type: quantity--material\n",
|
||||||
|
"quant6_measure: ratio\n",
|
||||||
|
"quant6_value: 4.0\n",
|
||||||
|
"\n",
|
||||||
|
"Purchase:\n",
|
||||||
|
"name: W-Raps Saatgut Otello KWS Saatgut Purchase 24/25\n",
|
||||||
|
"timestamp: 01.08.24\n",
|
||||||
|
"quant0_type: quantity--price\n",
|
||||||
|
"quant0_measure: weight\n",
|
||||||
|
"quant0_value: 50.0\n",
|
||||||
|
"unit0_name: kg\n",
|
||||||
|
"quant0_inventory_adjustment: increment\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",
|
||||||
|
"notes: Särad: fein (orange)\n",
|
||||||
|
"Schieber: 3/4\n",
|
||||||
|
"Bodenklappe: 1\n",
|
||||||
|
"Rührwelle: aus\n",
|
||||||
|
"Kalibrierwert: 0,856\n",
|
||||||
|
"Für abgedrehte Aussaatstärke: 40kö/m² 2,18kg\n",
|
||||||
|
"Sähtiefen-Einstellung: 6. Strich\n",
|
||||||
|
"Schardruck: voll\n",
|
||||||
|
"Kreiselegge: 3\n",
|
||||||
|
"Planierschild: 4\n",
|
||||||
|
"tatsächliche Aussaatmenge gesamt: ca.42kö/m²\n",
|
||||||
|
"Saatfläche laut Amatron: 3,2 ha\n",
|
||||||
|
"Saatstärke ca. 42kö/m²\n",
|
||||||
|
"\n",
|
||||||
|
"timestamp: 22.08.24\n",
|
||||||
|
"plant_name: W-Raps Helmacker Plant 24/25\n",
|
||||||
|
"plant loc: Helmacker\n",
|
||||||
|
"plant_crop: Raps\n",
|
||||||
|
"plant_season: 24/25\n",
|
||||||
|
"equipment: Sähmaschine Cataya\n",
|
||||||
|
"quant_type: quantity--standard\n",
|
||||||
|
"quant_measure: weight\n",
|
||||||
|
"quant_value: 50.0\n",
|
||||||
|
"unit0_name: kg\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",
|
||||||
|
"notes: Särad: fein (orange)\n",
|
||||||
|
"Schieber: 3/4\n",
|
||||||
|
"Bodenklappe: 1\n",
|
||||||
|
"Rührwelle: aus\n",
|
||||||
|
"Kalibrierwert: 0,856\n",
|
||||||
|
"Für abgedrehte Aussaatstärke: 40kö/m² 2,18kg\n",
|
||||||
|
"Sähtiefen-Einstellung: 6. Strich\n",
|
||||||
|
"Schardruck: voll\n",
|
||||||
|
"Kreiselegge: 3\n",
|
||||||
|
"Planierschild: 4\n",
|
||||||
|
"tatsächliche Aussaatmenge gesamt: ca.42kö/m²\n",
|
||||||
|
"Saatfläche laut Amatron: 3,2 ha\n",
|
||||||
|
"Saatstärke ca. 42kö/m²\n",
|
||||||
|
"\n",
|
||||||
|
"timestamp: 28.08.24\n",
|
||||||
|
"plant_name: W-Raps Nachtweide Plant 24/25 \n",
|
||||||
|
"plant loc: Nachtweide\n",
|
||||||
|
"plant_crop: Raps\n",
|
||||||
|
"plant_season: 24/25\n",
|
||||||
|
"equipment: Sähmaschine Cataya\n",
|
||||||
|
"quant_type: quantity--standard\n",
|
||||||
|
"quant_measure: weight\n",
|
||||||
|
"quant_value: 66.0\n",
|
||||||
|
"unit0_name: kg\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\n",
|
||||||
|
"plant_name: W-Raps Helmacker Plant 24/25\n",
|
||||||
|
"plant_crop: Raps\n",
|
||||||
|
"plant_season: 24/25\n",
|
||||||
|
"equipment: Spritze\n",
|
||||||
|
"quant_type: quantity--standard\n",
|
||||||
|
"quant_measure: volume\n",
|
||||||
|
"quant_value: 10.0\n",
|
||||||
|
"quant_value: l\n",
|
||||||
|
"quant_inventory_adjustment: decrement\n",
|
||||||
|
"inventory_asset: = Innovert Raps Material 08/24\n",
|
||||||
|
"\n",
|
||||||
|
"Input:\n",
|
||||||
|
"name: Innovert Raps Input 24/25\n",
|
||||||
|
"timestamp: 03.11.24\n",
|
||||||
|
"plant_name: W-Raps Helmacker Plant 24/25\n",
|
||||||
|
"plant_crop: Raps\n",
|
||||||
|
"plant_season: 24/25\n",
|
||||||
|
"equipment: Spritze\n",
|
||||||
|
"quant_type: quantity--standard\n",
|
||||||
|
"quant_measure: volume\n",
|
||||||
|
"quant_value: 10.0\n",
|
||||||
|
"quant_value: l\n",
|
||||||
|
"quant_inventory_adjustment: decrement\n",
|
||||||
|
"inventory_asset: = Innovert Raps Material 08/24\n",
|
||||||
|
"\n",
|
||||||
|
"Medical:\n",
|
||||||
|
"name: Schneckenkorn Medical 24/25\n",
|
||||||
|
"timestamp: 30.08.24\n",
|
||||||
|
"plant_name: W-Raps Helmacker Plant 24/25\n",
|
||||||
|
"plant_crop: Raps\n",
|
||||||
|
"plant_season: 24/25\n",
|
||||||
|
"equipment: Schneckenkornstreuer Leinfelder\n",
|
||||||
|
"quant_type: quantity--standard\n",
|
||||||
|
"quant_measure: weight\n",
|
||||||
|
"quant_value: 10.0\n",
|
||||||
|
"quant_inventory_adjustment: decrement\n",
|
||||||
|
"quant_inventory_name: Schneckenkorn Material 08/24\n",
|
||||||
|
"\n",
|
||||||
|
"Harvest:\n",
|
||||||
|
"name: W-Raps Helmacker Harvest 24/25\n",
|
||||||
|
"timestamp: 20.10.24\n",
|
||||||
|
"plant_name: W-Raps Helmacker Plant 24/25\n",
|
||||||
|
"plant_crop: Raps\n",
|
||||||
|
"plant_season: 24/25\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",
|
||||||
|
"quant_inventory_name: W-Raps Product 08/24\n",
|
||||||
|
"\n",
|
||||||
|
"Harvest:\n",
|
||||||
|
"name: W-Raps Nachtweide Harvest 24/25\n",
|
||||||
|
"timestamp: 28.10.24\n",
|
||||||
|
"plant_name: W-Raps Nachtweide Plant 24/25 \n",
|
||||||
|
"plant_crop: Raps\n",
|
||||||
|
"plant_season: 24/25\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",
|
||||||
|
"quant_inventory_name: W-Raps Product 08/24\n",
|
||||||
|
"\n",
|
||||||
|
"Sale:\n",
|
||||||
|
"name: W-Raps Sale 24/25\n",
|
||||||
|
"timestamp: 28.10.24\n",
|
||||||
|
"plant_name: W-Raps Helmacker Plant 24/25\n",
|
||||||
|
"plant_crop: Raps\n",
|
||||||
|
"plant_season: 24/25\n",
|
||||||
|
"quant_type: quantity--price\n",
|
||||||
|
"quant_measure: weight\n",
|
||||||
|
"quant_value: 5.0\n",
|
||||||
|
"quant_inventory_adjustment: decrement\n",
|
||||||
|
"quant_inventory_name: W-Raps Product 08/24\n"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"#Alle Logs\n",
|
"#Mein Master Report\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# alle logs von einem Plant \n",
|
"# alle logs von einem Plant \n",
|
||||||
@@ -1206,7 +1430,7 @@
|
|||||||
" print(f\"quant1_type: {input.quantities[1].type}\") \n",
|
" print(f\"quant1_type: {input.quantities[1].type}\") \n",
|
||||||
" print(f\"quant1_measure: {input.quantities[1].measure}\")\n",
|
" print(f\"quant1_measure: {input.quantities[1].measure}\")\n",
|
||||||
" print(f\"quant1_value: {input.quantities[1].value}\")\n",
|
" print(f\"quant1_value: {input.quantities[1].value}\")\n",
|
||||||
" #print(f\"taxonomy1_name: {input.quantities[1].taxonomy_term.name}\")\n",
|
" print(f\"quant1materialtype: {input.quantities[1].material_types[0].name}\")\n",
|
||||||
" \n",
|
" \n",
|
||||||
" print(f\"quant2_type: {input.quantities[2].type}\") \n",
|
" print(f\"quant2_type: {input.quantities[2].type}\") \n",
|
||||||
" print(f\"quant2_measure: {input.quantities[2].measure}\")\n",
|
" print(f\"quant2_measure: {input.quantities[2].measure}\")\n",
|
||||||
@@ -1243,15 +1467,13 @@
|
|||||||
" print(\"\")\n",
|
" print(\"\")\n",
|
||||||
" print(\"Seeding:\")\n",
|
" print(\"Seeding:\")\n",
|
||||||
" print(f\"name: {log.name}\")\n",
|
" print(f\"name: {log.name}\")\n",
|
||||||
" #print(f\"notes: {log.notes}\")\n",
|
" print(f\"notes: {log.notes}\")\n",
|
||||||
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y\") # Konvertiere in das gewünschte Format\n",
|
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y\") # Konvertiere in das gewünschte Format\n",
|
||||||
" print(f\"timestamp: {formatted_date}\")\n",
|
" print(f\"timestamp: {formatted_date}\")\n",
|
||||||
" print(f\"plant_name: {plant.name}\")\n",
|
" print(f\"plant_name: {plant.name}\")\n",
|
||||||
" print(f\"plant_name: {plant.season}\")\n",
|
|
||||||
" \n",
|
|
||||||
" print(f\"plant loc: {log.location[0].name}\")\n",
|
" print(f\"plant loc: {log.location[0].name}\")\n",
|
||||||
" print(f\"plant_crop: {plant.crop}\")\n",
|
" print(f\"plant_crop: {plant.crops[0].name}\")\n",
|
||||||
" print(f\"plant_season: {plant.season}\")\n",
|
" print(f\"plant_season: {plant.seasons[0].name}\")\n",
|
||||||
" print(f\"equipment: {log.equipment[0].name}\")\n",
|
" print(f\"equipment: {log.equipment[0].name}\")\n",
|
||||||
" #quantity\n",
|
" #quantity\n",
|
||||||
" input=neo.Log.Seeding.from_id(log.id)\n",
|
" input=neo.Log.Seeding.from_id(log.id)\n",
|
||||||
@@ -1274,8 +1496,8 @@
|
|||||||
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y\") # Konvertiere in das gewünschte Format\n",
|
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y\") # Konvertiere in das gewünschte Format\n",
|
||||||
" print(f\"timestamp: {formatted_date}\")\n",
|
" print(f\"timestamp: {formatted_date}\")\n",
|
||||||
" print(f\"plant_name: {plant.name}\")\n",
|
" print(f\"plant_name: {plant.name}\")\n",
|
||||||
" print(f\"plant_crop: {plant.crop}\")\n",
|
" print(f\"plant_crop: {plant.crops[0].name}\")\n",
|
||||||
" print(f\"plant_season: {plant.season}\")\n",
|
" print(f\"plant_season: {plant.seasons[0].name}\")\n",
|
||||||
" print(f\"equipment: {log.equipment[0].name}\")\n",
|
" print(f\"equipment: {log.equipment[0].name}\")\n",
|
||||||
" \n",
|
" \n",
|
||||||
" #quantity\n",
|
" #quantity\n",
|
||||||
@@ -1286,6 +1508,7 @@
|
|||||||
" print(f\"quant_value: {input.quantities[0].units.name}\")\n",
|
" print(f\"quant_value: {input.quantities[0].units.name}\")\n",
|
||||||
" print(f\"quant_inventory_adjustment: {input.quantities[0].inventory_adjustment}\")\n",
|
" print(f\"quant_inventory_adjustment: {input.quantities[0].inventory_adjustment}\")\n",
|
||||||
" print (f\"inventory_asset: = {input.quantities[0].inventory_asset.name}\")\n",
|
" print (f\"inventory_asset: = {input.quantities[0].inventory_asset.name}\")\n",
|
||||||
|
" #print(f\"quant_inventory_name: {input.quantities[0].inventory_asset.get_logs_of_type(Log.Purchase)}\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"#log Medical\n",
|
"#log Medical\n",
|
||||||
" logs = neo.Log.Medical.get_list()\n",
|
" logs = neo.Log.Medical.get_list()\n",
|
||||||
@@ -1298,8 +1521,8 @@
|
|||||||
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y\") # Konvertiere in das gewünschte Format\n",
|
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y\") # Konvertiere in das gewünschte Format\n",
|
||||||
" print(f\"timestamp: {formatted_date}\")\n",
|
" print(f\"timestamp: {formatted_date}\")\n",
|
||||||
" print(f\"plant_name: {plant.name}\")\n",
|
" print(f\"plant_name: {plant.name}\")\n",
|
||||||
" print(f\"plant_crop: {plant.crop}\")\n",
|
" print(f\"plant_crop: {plant.crops[0].name}\")\n",
|
||||||
" print(f\"plant_season: {plant.season}\")\n",
|
" print(f\"plant_season: {plant.seasons[0].name}\")\n",
|
||||||
" print(f\"equipment: {log.equipment[0].name}\")\n",
|
" print(f\"equipment: {log.equipment[0].name}\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"#quantity\n",
|
"#quantity\n",
|
||||||
@@ -1309,7 +1532,7 @@
|
|||||||
" 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}\")\n",
|
" print(f\"quant_inventory_adjustment: {input.quantities[0].inventory_adjustment}\")\n",
|
||||||
" print(f\"quant_inventory_name: {input.quantities[0].inventory_asset.name}\")\n",
|
" print(f\"quant_inventory_name: {input.quantities[0].inventory_asset.name}\")\n",
|
||||||
"\n",
|
" \n",
|
||||||
"\n",
|
"\n",
|
||||||
"#log Harvest \n",
|
"#log Harvest \n",
|
||||||
" logs = neo.Log.Harvest.get_list()\n",
|
" logs = neo.Log.Harvest.get_list()\n",
|
||||||
@@ -1322,8 +1545,8 @@
|
|||||||
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y\") # Konvertiere in das gewünschte Format\n",
|
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y\") # Konvertiere in das gewünschte Format\n",
|
||||||
" print(f\"timestamp: {formatted_date}\")\n",
|
" print(f\"timestamp: {formatted_date}\")\n",
|
||||||
" print(f\"plant_name: {plant.name}\")\n",
|
" print(f\"plant_name: {plant.name}\")\n",
|
||||||
" print(f\"plant_crop: {plant.crop}\")\n",
|
" print(f\"plant_crop: {plant.crops[0].name}\")\n",
|
||||||
" print(f\"plant_season: {plant.season}\")\n",
|
" print(f\"plant_season: {plant.seasons[0].name}\")\n",
|
||||||
" print(f\"equipment: {log.equipment[0].name}\")\n",
|
" print(f\"equipment: {log.equipment[0].name}\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"#quantity\n",
|
"#quantity\n",
|
||||||
@@ -1345,8 +1568,8 @@
|
|||||||
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y\") # Konvertiere in das gewünschte Format\n",
|
" formatted_date = datetime.fromisoformat(log.timestamp).strftime(\"%d.%m.%y\") # Konvertiere in das gewünschte Format\n",
|
||||||
" print(f\"timestamp: {formatted_date}\")\n",
|
" print(f\"timestamp: {formatted_date}\")\n",
|
||||||
" print(f\"plant_name: {plant.name}\")\n",
|
" print(f\"plant_name: {plant.name}\")\n",
|
||||||
" print(f\"plant_crop: {plant.crop}\")\n",
|
" print(f\"plant_crop: {plant.crops[0].name}\")\n",
|
||||||
" print(f\"plant_season: {plant.season}\")\n",
|
" print(f\"plant_season: {plant.seasons[0].name}\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"#quantity\n",
|
"#quantity\n",
|
||||||
" input=neo.Log.Sale.from_id(log.id)\n",
|
" input=neo.Log.Sale.from_id(log.id)\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user