lambda-erp 0.1.19__tar.gz → 0.1.20__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/PKG-INFO +1 -1
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/chat.py +2 -2
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/database.py +14 -1
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/pyproject.toml +1 -1
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/.gitignore +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/LICENSE +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/README.md +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/__init__.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/attachments.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/auth.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/bootstrap.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/demo_limits.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/deps.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/errors.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/main.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/pdf.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/providers.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/routers/__init__.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/routers/accounting.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/routers/admin.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/routers/analytics.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/routers/bank_reconciliation.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/routers/documents.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/routers/masters.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/routers/reports.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/routers/setup.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/services.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/api/templates/document.html +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/docs/agents/README.md +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/frontend/README.md +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/frontend/src/api/client.ts +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/__init__.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/accounting/__init__.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/accounting/bank_transaction.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/accounting/budget.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/accounting/chart_of_accounts.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/accounting/general_ledger.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/accounting/journal_entry.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/accounting/payment_entry.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/accounting/pos_invoice.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/accounting/purchase_invoice.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/accounting/revaluation.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/accounting/sales_invoice.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/accounting/subscription.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/buying/__init__.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/buying/purchase_order.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/controllers/__init__.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/controllers/currency.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/controllers/defaults.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/controllers/pricing_rule.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/controllers/taxes_and_totals.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/exceptions.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/hooks.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/model.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/selling/__init__.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/selling/quotation.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/selling/sales_order.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/simulation.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/stock/__init__.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/stock/delivery_note.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/stock/purchase_receipt.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/stock/stock_entry.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/stock/stock_ledger.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/lambda_erp/utils.py +0 -0
- {lambda_erp-0.1.19 → lambda_erp-0.1.20}/terraform/README.md +0 -0
|
@@ -600,7 +600,7 @@ TOOLS = [
|
|
|
600
600
|
"description": (
|
|
601
601
|
"Create a new master record. You MUST include the full `data` object using the EXACT field names listed below — unknown fields are silently dropped.\n\n"
|
|
602
602
|
"Every record's id is `name`. Customer/Supplier/Item/Warehouse auto-generate it (CUST-/SUPP-/ITEM-/WH-NNN) when omitted; Company/Account/Cost Center have NO auto-id, so `name` is required for them.\n\n"
|
|
603
|
-
"**Customer fields:** name (optional custom id; auto CUST-NNN), customer_name (required), customer_group, territory, default_currency, credit_limit, email, phone, address, city, zip_code, country, tax_id.\n"
|
|
603
|
+
"**Customer fields:** name (optional custom id; auto CUST-NNN), customer_name (required), customer_group, territory, default_currency, credit_limit, email, phone, address, city, zip_code, country, tax_id, contact_person (named contact at the customer), contact_email, contact_phone.\n"
|
|
604
604
|
"**Supplier fields:** name (optional custom id; auto SUPP-NNN), supplier_name (required), supplier_group, default_currency, email, phone, address, city, zip_code, country, tax_id.\n"
|
|
605
605
|
"**Item fields:** item_code (the unique item code/id, e.g. \"SVC-SPARK\" — optional, may use ANY prefix, not just ITEM; auto-generated as ITEM-NNN if omitted), item_name (required, the human-readable name), item_group, stock_uom, standard_rate, is_stock_item, default_warehouse, description.\n"
|
|
606
606
|
"**Warehouse fields:** name (optional custom id; auto WH-NNN), warehouse_name (required), company, parent_warehouse (omit or null when not needed), address, city, zip_code, country.\n"
|
|
@@ -626,7 +626,7 @@ TOOLS = [
|
|
|
626
626
|
"function": {
|
|
627
627
|
"name": "update_master",
|
|
628
628
|
"description": (
|
|
629
|
-
"Update an existing master record. You MUST include the `name` of the existing record and a `data` object with the fields to change. Use the same field names listed in create_master (customer: customer_name, email, phone, address, city, zip_code, country, tax_id, etc.). Example: {\"master_type\":\"customer\",\"name\":\"CUST-001\",\"data\":{\"address\":\"123 New Street\",\"city\":\"Boston\",\"zip_code\":\"02110\"}}"
|
|
629
|
+
"Update an existing master record. You MUST include the `name` of the existing record and a `data` object with the fields to change. Use the same field names listed in create_master (customer: customer_name, email, phone, address, city, zip_code, country, tax_id, contact_person, contact_email, contact_phone, etc.). Example: {\"master_type\":\"customer\",\"name\":\"CUST-001\",\"data\":{\"address\":\"123 New Street\",\"city\":\"Boston\",\"zip_code\":\"02110\"}}"
|
|
630
630
|
),
|
|
631
631
|
"parameters": {
|
|
632
632
|
"type": "object",
|
|
@@ -331,7 +331,10 @@ class Database:
|
|
|
331
331
|
city TEXT,
|
|
332
332
|
zip_code TEXT,
|
|
333
333
|
country TEXT,
|
|
334
|
-
tax_id TEXT
|
|
334
|
+
tax_id TEXT,
|
|
335
|
+
contact_person TEXT,
|
|
336
|
+
contact_email TEXT,
|
|
337
|
+
contact_phone TEXT
|
|
335
338
|
)""",
|
|
336
339
|
|
|
337
340
|
"""CREATE TABLE IF NOT EXISTS "Supplier" (
|
|
@@ -1743,6 +1746,15 @@ def _m015_document_discarded(db: "Database") -> None:
|
|
|
1743
1746
|
db._add_column_if_missing(table, "discarded", "INTEGER DEFAULT 0")
|
|
1744
1747
|
|
|
1745
1748
|
|
|
1749
|
+
def _m016_customer_contact_person(db: "Database") -> None:
|
|
1750
|
+
"""Add a named contact person (Ansprechperson) to the Customer master:
|
|
1751
|
+
a free-text name plus their own email and phone, kept separate from the
|
|
1752
|
+
company-level email/phone already on the record."""
|
|
1753
|
+
db._add_column_if_missing("Customer", "contact_person", "TEXT")
|
|
1754
|
+
db._add_column_if_missing("Customer", "contact_email", "TEXT")
|
|
1755
|
+
db._add_column_if_missing("Customer", "contact_phone", "TEXT")
|
|
1756
|
+
|
|
1757
|
+
|
|
1746
1758
|
Database.MIGRATIONS = [
|
|
1747
1759
|
(1, "chat_message_session_id", _m001_chat_message_session_id),
|
|
1748
1760
|
(2, "chat_session_user_id", _m002_chat_session_user_id),
|
|
@@ -1759,6 +1771,7 @@ Database.MIGRATIONS = [
|
|
|
1759
1771
|
(13, "unrealized_exchange_account", _m013_unrealized_exchange_account),
|
|
1760
1772
|
(14, "company_iban", _m014_company_iban),
|
|
1761
1773
|
(15, "document_discarded", _m015_document_discarded),
|
|
1774
|
+
(16, "customer_contact_person", _m016_customer_contact_person),
|
|
1762
1775
|
]
|
|
1763
1776
|
|
|
1764
1777
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|