- Add comprehensive documentation in botbook/ with 12 chapters - Add botapp/ Tauri desktop application - Add botdevice/ IoT device support - Add botlib/ shared library crate - Add botmodels/ Python ML models service - Add botplugin/ browser extension - Add botserver/ reorganized server code - Add bottemplates/ bot templates - Add bottest/ integration tests - Add botui/ web UI server - Add CI/CD workflows in .forgejo/workflows/ - Add AGENTS.md and PROD.md documentation - Add dependency management scripts (DEPENDENCIES.sh/ps1) - Remove legacy src/ structure and migrations - Clean up temporary and backup files
15 lines
583 B
QBasic
15 lines
583 B
QBasic
PARAM product_id AS STRING
|
|
|
|
product = PRODUCT product_id
|
|
IF NOT product THEN
|
|
RETURN WITH error AS "Product not found"
|
|
END IF
|
|
|
|
IF product.tax_code THEN
|
|
RETURN WITH tax_code AS product.tax_code, tax_class AS product.tax_class
|
|
END IF
|
|
|
|
info = LLM "Get NCM/tax classification for: " + product.name + " " + product.category + ". Return JSON with tax_code, tax_class, description"
|
|
UPDATE "products" WITH tax_code AS info.tax_code, tax_class AS info.tax_class WHERE id = product_id
|
|
|
|
RETURN WITH tax_code AS info.tax_code, tax_class AS info.tax_class, description AS info.description
|