Fix create_invoice missing product_id and add product_type support

This commit is contained in:
Benju1
2025-12-05 03:52:42 +01:00
parent 2f4b595be2
commit 2808b26561
3 changed files with 58 additions and 1 deletions

View File

@@ -364,7 +364,9 @@ async def handle_list_tools():
"subprice": {"type": "number", "description": "Unit price"},
"total_ht": {"type": "number", "description": "Total excluding tax"},
"total_ttc": {"type": "number", "description": "Total including tax"},
"vat": {"type": "number", "description": "VAT rate"}
"vat": {"type": "number", "description": "VAT rate"},
"product_id": {"type": "integer", "description": "Product ID to link (optional)"},
"product_type": {"type": "integer", "description": "Type of line (0=Product, 1=Service)"}
},
"required": ["desc", "qty", "subprice"]
}