updated payment service

This commit is contained in:
2025-07-06 17:04:29 +03:00
parent 88afa6b329
commit 9edc6cb6a0
17 changed files with 2871 additions and 1177 deletions

View File

@@ -570,13 +570,14 @@ class BuildDecisionBookPayments(CrudCollection):
build_parts_id: Mapped[int] = mapped_column(ForeignKey("build_parts.id"), nullable=False)
build_parts_uu_id: Mapped[str] = mapped_column(String, nullable=False, comment="Build Part UUID")
decision_book_project_id: Mapped[int] = mapped_column(
ForeignKey("build_decision_book_projects.id"),
nullable=True,
comment="Decision Book Project ID",
ForeignKey("build_decision_book_projects.id"), nullable=True, comment="Decision Book Project ID",
)
decision_book_project_uu_id: Mapped[str] = mapped_column(String, nullable=True, comment="Decision Book Project UUID")
account_records_id: Mapped[int] = mapped_column(ForeignKey("account_records.id"), nullable=True)
account_records_uu_id: Mapped[str] = mapped_column(String, nullable=True, comment="Account Record UU ID")
is_closed: Mapped[bool] = mapped_column(Boolean, server_default="0", comment="Is Decision Book Payment Closed")
debt_to_pay: Mapped[float] = mapped_column(Numeric(16, 2), server_default="0", comment="Debt To Pay")
debt_paid: Mapped[float] = mapped_column(Numeric(16, 2), server_default="0", comment="Debt Paid")
# budget_records_id: Mapped[int] = mapped_column(ForeignKey("account_records.id"), nullable=True)
# budget_records_uu_id: Mapped[str] = mapped_column(