WIP
This commit is contained in:
parent
7f88e9a232
commit
a145b62883
@ -52,12 +52,19 @@
|
||||
" ART_WU.add(pNr)\n",
|
||||
"\n",
|
||||
"# zusätzlich\n",
|
||||
"ART_WU = ART_WU.union({\"062346\", \"062356\", \"062306\", \"062416\", \"104406\", \"104409\"})\n",
|
||||
"ART_WU = ART_WU.union({\"062346\", \"062356\", \"062306\", \"062349\", \"062308\", \"062358\", \"062416\", \"104405\", \"104406\", \"104407\", \"104409\"})\n",
|
||||
"\n",
|
||||
"ART_WU = list(ART_WU)\n",
|
||||
"ART_WU.sort()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# IBM 11/09 - Negative Verfügbarkeit ausführen!"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
@ -87,6 +94,7 @@
|
||||
" upcoming: int\n",
|
||||
" upc_date: str\n",
|
||||
" upc_area: str\n",
|
||||
" comm_area: str\n",
|
||||
" stock00: int\n",
|
||||
" stock01: int\n",
|
||||
" stock33: int\n",
|
||||
@ -110,6 +118,7 @@
|
||||
" upcoming=int(t[10]),\n",
|
||||
" upc_date=date.fromisoformat(f\"20{str(t[11])[-2:]}-{str(t[11])[-4:-2]}-{int(str(t[11])[:-4]):02d}\") if int(t[10]) > 0 else None,\n",
|
||||
" upc_area=str(t[12]),\n",
|
||||
" comm_area=t[18],\n",
|
||||
" stock00=int(t[24]),\n",
|
||||
" stock01=int(t[25]),\n",
|
||||
" stock33=int(t[26]),\n",
|
||||
@ -190,7 +199,7 @@
|
||||
" if we_area == \"00\":\n",
|
||||
" verbleibend += we\n",
|
||||
" \n",
|
||||
" sheet.append([\"\", \"Produktion\", we_dat, t.delivdate, t.artnr, t.artname, t.bundle, \"\", f\"+{we}\", verbleibend, t.upcoming, t.upc_date, t.upc_area, t.stock00, t.stock01, t.stock33, t.stock36])\n",
|
||||
" sheet.append([\"\", \"Produktion\", we_dat, t.artnr, t.artname, t.bundle, \"\", f\"+{we}\", verbleibend, t.upcoming, t.upc_date, t.upc_area, t.stock00, t.stock01, t.stock33, t.stock36])\n",
|
||||
" we = 0\n",
|
||||
" if t.cust_name.strip() == \"dennree GmbH\":\n",
|
||||
" sheet.append([t.ordernr, t.cust_name, t.delivdate, t.artnr, t.artname, t.bundle, t.ordered, t.ord_rem, verbleibend, t.upcoming, t.upc_date, t.upc_area, t.stock00, t.stock01, t.stock33, t.stock36])\n",
|
||||
@ -208,7 +217,7 @@
|
||||
" if we_area == \"00\":\n",
|
||||
" verbleibend += we\n",
|
||||
" \n",
|
||||
" sheet.append([\"\", \"Produktion\", we_dat, t.delivdate, t.artnr, t.artname, t.bundle, \"\", f\"+{we}\", verbleibend, t.upcoming, t.upc_date, t.upc_area, t.stock00, t.stock01, t.stock33, t.stock36])\n",
|
||||
" sheet.append([\"\", \"Produktion\", we_dat, t.artnr, t.artname, t.bundle, \"\", f\"+{we}\", verbleibend, t.upcoming, t.upc_date, t.upc_area, t.stock00, t.stock01, t.stock33, t.stock36])\n",
|
||||
"\n",
|
||||
"vorlage.save(f\"Umfuhrplanung_{FROM}.xlsx\")"
|
||||
]
|
||||
@ -223,10 +232,10 @@
|
||||
],
|
||||
"metadata": {
|
||||
"interpreter": {
|
||||
"hash": "032eb40c1682b1e6109824d577ff4427b0bbc2f8ebe1487b7b1be524c4843266"
|
||||
"hash": "2be5faf79681da6f2a61fdfdd5405d65d042280f7fba6178067603e3a2925119"
|
||||
},
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3.9.7 64-bit",
|
||||
"display_name": "Python 3.10.0 64-bit",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
@ -239,7 +248,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.9.7"
|
||||
"version": "3.10.0"
|
||||
},
|
||||
"orig_nbformat": 4
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user