Browse Source

fixed a output column issue

main
Holger Frey 2 months ago
parent
commit
a7b641adcc
  1. BIN
      budgets/Budget-Vorlage-2024.xlsx
  2. 4
      superx_budget/pyramid/overview.py

BIN
budgets/Budget-Vorlage-2024.xlsx

Binary file not shown.

4
superx_budget/pyramid/overview.py

@ -149,10 +149,10 @@ def send_overview(context, request): # noqa: ARG001
sheet = get_sheet_of_file(budget_file) sheet = get_sheet_of_file(budget_file)
for row, value in expenses.items(): for row, value in expenses.items():
cell = f"F{row}" cell = f"G{row}"
sheet[cell] = value sheet[cell] = value
for row, value in available.items(): for row, value in available.items():
cell = f"G{row}" cell = f"H{row}"
sheet[cell] = value sheet[cell] = value
budget_year = budget_file.stem.split("-")[-1] budget_year = budget_file.stem.split("-")[-1]

Loading…
Cancel
Save