Динамическое получение списка материалов и поставщиков

This commit is contained in:
2024-12-10 17:22:19 +03:00
parent fd4d3ea051
commit a636897eee
4 changed files with 12 additions and 38 deletions

View File

@@ -24,7 +24,8 @@ def requests():
@check_auth
def sklad_zapros():
if request.method == "GET":
return render_template("zagotovki.html")
materials = materials_names()
return render_template("zagotovki.html", materials=materials)
else:
zagotovki = sklad(request)
if zagotovki.status:
@@ -39,7 +40,8 @@ def sklad_zapros():
@check_auth
def sellers_ship():
if request.method == "GET":
return render_template("sellers_ship.html")
sellers = sellers_names()
return render_template("sellers_ship.html", sellers=sellers)
else:
zagotovki = materials_per_seller(request)
if zagotovki.status: