bugfix
This commit is contained in:
parent
73baa25d43
commit
624fec71bd
@ -0,0 +1,36 @@
|
|||||||
|
"""
|
||||||
|
合同管理模块 - 增强版
|
||||||
|
支持从商机创建合同、自动生成里程碑和订单、AI智能审核等功能
|
||||||
|
"""
|
||||||
|
|
||||||
|
from .enhanced_contract_core import (
|
||||||
|
create_contract,
|
||||||
|
create_contract_from_opportunity,
|
||||||
|
create_contract_version,
|
||||||
|
create_manual_order,
|
||||||
|
update_contract_milestone_status,
|
||||||
|
ai_contract_analysis,
|
||||||
|
update_contract,
|
||||||
|
delete_contract,
|
||||||
|
get_contract_by_id,
|
||||||
|
list_contracts
|
||||||
|
)
|
||||||
|
|
||||||
|
# 版本信息
|
||||||
|
__version__ = "2.0.0"
|
||||||
|
__author__ = "Hermes AI Agent"
|
||||||
|
__description__ = "Enhanced Contract Management Module with Opportunity Integration and AI Analysis"
|
||||||
|
|
||||||
|
# 导出所有公共接口
|
||||||
|
__all__ = [
|
||||||
|
'create_contract',
|
||||||
|
'create_contract_from_opportunity',
|
||||||
|
'create_contract_version',
|
||||||
|
'create_manual_order',
|
||||||
|
'update_contract_milestone_status',
|
||||||
|
'ai_contract_analysis',
|
||||||
|
'update_contract',
|
||||||
|
'delete_contract',
|
||||||
|
'get_contract_by_id',
|
||||||
|
'list_contracts'
|
||||||
|
]
|
||||||
@ -124,6 +124,53 @@
|
|||||||
"nullable": "yes",
|
"nullable": "yes",
|
||||||
"comments": "AI提取的关键时点JSON数据"
|
"comments": "AI提取的关键时点JSON数据"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "payment_terms",
|
||||||
|
"title": "付款条款",
|
||||||
|
"type": "text",
|
||||||
|
"nullable": "yes",
|
||||||
|
"comments": "付款节点规则,如'30%预付款+50%进度款+20%尾款'"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "credit_period",
|
||||||
|
"title": "账期",
|
||||||
|
"type": "long",
|
||||||
|
"nullable": "yes",
|
||||||
|
"comments": "账期天数"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "penalty_clause",
|
||||||
|
"title": "违约金条款",
|
||||||
|
"type": "text",
|
||||||
|
"nullable": "yes",
|
||||||
|
"comments": "违约金相关条款"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "opportunity_id",
|
||||||
|
"title": "关联商机ID",
|
||||||
|
"type": "str",
|
||||||
|
"length": 32,
|
||||||
|
"nullable": "yes",
|
||||||
|
"comments": "关联的商机ID"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "customer_id",
|
||||||
|
"title": "客户ID",
|
||||||
|
"type": "str",
|
||||||
|
"length": 32,
|
||||||
|
"nullable": "yes",
|
||||||
|
"comments": "关联的客户ID"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "tax_rate",
|
||||||
|
"title": "税率",
|
||||||
|
"type": "decimal",
|
||||||
|
"length": 5,
|
||||||
|
"dec": 4,
|
||||||
|
"nullable": "yes",
|
||||||
|
"default": "0.1300",
|
||||||
|
"comments": "税率,默认13%"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "created_at",
|
"name": "created_at",
|
||||||
"title": "创建时间",
|
"title": "创建时间",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user