Skip to content

Commit

Permalink
feat(render): Define path to correct template
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikstranneheim committed Sep 2, 2024
1 parent ed3de0c commit 6fcb331
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cg/apps/invoice/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def render_xlsx(data: dict) -> Workbook:
costcenter = data["cost_center"]
template_path = Path(
project_root_dir,
"apps",
"invoice",
"templates",
f"{costcenter}_{sample_type}_invoice{FileExtensions.XLSX}",
)
Expand Down

0 comments on commit 6fcb331

Please sign in to comment.