feat: add KS-2 UI, reporting period, and table layout fixes
- 004: KS-2 UI (list, create, edit, view, issue) with integration tests - 005: navigation buttons, financial column alignment, button layout - 006: reporting_period_from/to fields with migration, validation, display - 007: fixed table layout with colgroup, quantity2 filter, stable column widths
This commit is contained in:
+4
-2
@@ -1,4 +1,4 @@
|
||||
from sqlalchemy import CheckConstraint, Column, Date, DateTime, ForeignKey, Integer, Numeric, String, Text, UniqueConstraint
|
||||
from sqlalchemy import CheckConstraint, Column, Date, DateTime, ForeignKey, Integer, Numeric, String, Text, UniqueConstraint
|
||||
from sqlalchemy.orm import relationship
|
||||
from sqlalchemy.sql import func
|
||||
|
||||
@@ -13,6 +13,8 @@ class KS2(Base):
|
||||
project_id = Column(Integer, ForeignKey("projects.id"), nullable=False, index=True)
|
||||
number = Column(String, nullable=False)
|
||||
date = Column(Date, nullable=False, index=True)
|
||||
reporting_period_from = Column(Date, nullable=True)
|
||||
reporting_period_to = Column(Date, nullable=True)
|
||||
comment = Column(Text)
|
||||
status = Column(String, nullable=False, default="draft", index=True)
|
||||
created_at = Column(DateTime, nullable=False, server_default=func.now())
|
||||
@@ -51,4 +53,4 @@ class KS2ItemSource(Base):
|
||||
quantity = Column(Numeric(15, 4), nullable=False)
|
||||
|
||||
ks2_item = relationship("KS2Item", back_populates="sources")
|
||||
daily_report_item = relationship("DailyReportItem")
|
||||
daily_report_item = relationship("DailyReportItem")
|
||||
Reference in New Issue
Block a user