feat(bx): 报销支付按未结清余额分次冲抵和发放。
冲抵后的余额不再自动记成发放,发放和冲抵分开提交,未结清单据继续留在待处理。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
b49c99f1bd
commit
e7f942b399
8 files changed
+707
-261
No files matched your search
@@ -256,6 +256,27 @@ class BxReimburseOffset(Base):
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
||||
|
||||
|
||||
class BxReimbursePayment(Base):
|
||||
__tablename__ = "bx_reimburse_payment"
|
||||
|
||||
id = Column(String(64), primary_key=True, comment="主键ID(UUID)")
|
||||
reimburse_id = Column(String(64), nullable=False, comment="报销申请单ID")
|
||||
pay_amount = Column(DECIMAL(14, 2), nullable=False, comment="本次发放金额")
|
||||
pay_time = Column(DateTime, nullable=False, comment="发放时间")
|
||||
pay_user_id = Column(String(64), nullable=False, comment="发放操作人ID")
|
||||
pay_user_name = Column(String(64), nullable=True, comment="发放操作人姓名")
|
||||
pay_remark = Column(String(512), nullable=True, comment="发放备注")
|
||||
tenant_no = Column(String(64), nullable=False, default="shanxia2.0", comment="租户编号")
|
||||
order_num = Column(Integer, nullable=True, comment="排序号(公共)")
|
||||
remark = Column(String(512), nullable=True, comment="备注")
|
||||
create_by = Column(String(64), nullable=True, comment="创建人")
|
||||
create_dept_id = Column(String(64), nullable=False, default="", comment="创建部门")
|
||||
create_time = Column(DateTime, nullable=False, default=datetime.now, comment="创建时间")
|
||||
update_by = Column(String(64), nullable=True, comment="更新人")
|
||||
update_time = Column(DateTime, nullable=True, onupdate=datetime.now, comment="更新时间")
|
||||
del_flag = Column(SmallInteger, nullable=False, default=0, comment="删除标记")
|
||||
|
||||
|
||||
class BxAttachment(Base):
|
||||
__tablename__ = "bx_attachment"
|
||||
|
||||
|
||||
Reference in new issue
Block a user