2 Commits

Author SHA1 Message Date
Hermes Agent
2dd2953757 fix: rewrite all create dspy files to use pre-loaded functions
- Removed all imports (json, ServerEnv, datetime, getID)
- Replaced datetime.now().strftime with timestampstr()
- Added id=getID(), created_at=timestampstr(), updated_at=timestampstr()
- Added resellerid from user org context
- Used DBPools().sqlorContext pattern
- Pass data dict directly to sor.C() without field filtering
- Fixed: suppliers, sub_distributors, sub_resellers, distribution_agreements,
  distribution_agreement_items, supply_contracts, supply_contract_items,
  platform_supply_products, platform_supply_relations, product_supplier_mapping,
  sales_ledger, supplychain_accounting
2026-06-17 17:49:48 +08:00
ed9c96d719 Initial commit: supplychain module - supplier, sub-reseller, contract, agreement, and sales ledger management 2026-05-26 14:21:31 +08:00