Merge pull request 'Update depreciation_date field type to Date in LineItem model' (#211) from hot-fix/depreciacion_date into development
Reviewed-on: ADUANASOFT/anexo76#211
This commit is contained in:
@@ -3,10 +3,11 @@ Normalized Database Schema for SCAF (Fixed Assets) and SCAII (Parts Inventory)
|
||||
SQLAlchemy v2 - Annex 24 Compliance
|
||||
"""
|
||||
|
||||
from datetime import datetime
|
||||
from typing import Optional, TYPE_CHECKING
|
||||
from core.database import Base
|
||||
from decimal import Decimal
|
||||
from sqlalchemy import Boolean, String, Integer, Numeric, SmallInteger, ForeignKey
|
||||
from sqlalchemy import Boolean, Date, String, Integer, Numeric, SmallInteger, ForeignKey
|
||||
from sqlalchemy.orm import Mapped, mapped_column, relationship
|
||||
from api.v1.common.base_models import TenantScopedMixin, TimestampMixin
|
||||
from core.database import Base
|
||||
@@ -177,7 +178,7 @@ class LineItem(Base, TenantScopedMixin, TimestampMixin):
|
||||
|
||||
# Dates
|
||||
depreciation_date: Mapped[Optional[datetime]] = mapped_column(
|
||||
Integer
|
||||
Date
|
||||
) # FECHADEPRECIACION
|
||||
|
||||
# Administrative fields
|
||||
|
||||
Reference in New Issue
Block a user