Commit prior to form response checking pivot in logic

This commit is contained in:
2026-05-04 11:17:14 +10:00
parent cf395091a8
commit 74c73883c9
3 changed files with 8 additions and 1 deletions
+6
View File
@@ -145,6 +145,7 @@ def build_job_material_line(
def parse_quote_template_field_rows(field_rows: List[Dict[str, Any]]) -> Dict[str, Any]:
ordered = sorted(field_rows, key=sort_key)
description = ""
author_name = ""
include_items: List[Dict[str, Any]] = []
exclude_items: List[Dict[str, Any]] = []
extra_include_items: List[Dict[str, Any]] = []
@@ -161,6 +162,10 @@ def parse_quote_template_field_rows(field_rows: List[Dict[str, Any]]) -> Dict[st
description = response
continue
if question == "Name":
author_name = response
continue
if question.startswith("Item ") and response:
include_items.append(
{
@@ -253,6 +258,7 @@ def parse_quote_template_field_rows(field_rows: List[Dict[str, Any]]) -> Dict[st
return {
"description": description,
"author_name": author_name,
"include_items": include_items,
"extra_include_items": extra_include_items,
"exclude_items": exclude_items,