last
This commit is contained in:
@ -226,8 +226,8 @@ class ReportViewSet:
|
||||
|
||||
"""post"""
|
||||
|
||||
def repayment(db: Session, data: schemas.RentRegisterNoticeInit):
|
||||
return exec_procedure(db, 'uspGetRentRegisterNotices', **data)
|
||||
def get_rent_register_notices(db: Session, data: schemas.RentRegisterNoticeInit):
|
||||
return exec_procedure(db, 'uspGetRentRegisterNotices', data.dict())
|
||||
|
||||
|
||||
"""AccrualViewSet"""
|
||||
@ -388,7 +388,7 @@ class ReferenceViewSet:
|
||||
return db.query(tb).with_entities(tb.c["ID"], tb.c["Name"]).all()
|
||||
|
||||
def get_address_types(db: Session):
|
||||
tb = get_table('RefAddressType')
|
||||
tb = get_table('RefAddressType', 'General')
|
||||
return db.query(tb).with_entities(tb.c["ID"], tb.c["Name"]).all()
|
||||
|
||||
"""post"""
|
||||
|
@ -9,7 +9,7 @@ router = APIRouter()
|
||||
"""post"""
|
||||
|
||||
|
||||
@router.post("/repayment", response_model=List[schemas.RentRegisterNotices])
|
||||
async def repayment(request: schemas.RentRegisterNoticeInit, db: Session = Depends(get_db)):
|
||||
data = crud.ReportViewSet.get_details(db, request)
|
||||
@router.post("/get_rent_register_notices", response_model=List[schemas.RentRegisterNotices])
|
||||
async def get_rent_register_notices(request: schemas.RentRegisterNoticeInit, db: Session = Depends(get_db)):
|
||||
data = crud.ReportViewSet.get_rent_register_notices(db, request)
|
||||
return data
|
||||
|
@ -62,8 +62,8 @@ class RentRegisterNoticeInit(BaseModel):
|
||||
IDUser: int = 1
|
||||
IDCashbox: int = 1
|
||||
IsRepayment: bool
|
||||
DateBegin: date
|
||||
DateEnd: date
|
||||
DateBegin: str
|
||||
DateEnd: str
|
||||
|
||||
|
||||
class ObjectMeteringDeviceAddressInit(BaseModel):
|
||||
@ -144,7 +144,9 @@ class RecalculationSave(BaseModel):
|
||||
IDUser: int
|
||||
IDService: int
|
||||
IDType: int
|
||||
Percent: float
|
||||
Percent: float = None
|
||||
IDOldChange: str = None
|
||||
IDNewChange: str = None
|
||||
DateBegin: str
|
||||
DateEnd: str
|
||||
|
||||
@ -326,34 +328,34 @@ class AddressDetailInfoSerializer(BaseModel):
|
||||
class AddressDetailsSerializer(BaseModel):
|
||||
ID: int
|
||||
IDObject: str
|
||||
IDType: int
|
||||
IDImprovementDegree: int
|
||||
IDType: int = None
|
||||
IDImprovementDegree: int = None
|
||||
CadastralNumber: Optional[str] = None
|
||||
Number: Optional[str] = None
|
||||
Privatization: bool
|
||||
Area: float
|
||||
AreaOwned: float
|
||||
AreaAboveNormal: float
|
||||
AreaAdditional: float
|
||||
RoomsNumber: int
|
||||
PeopleNumber: int
|
||||
PeopleWithoutReg: int
|
||||
PeopleAway: int
|
||||
PeopleDependents: int
|
||||
Glazing: bool
|
||||
IDSystemHotWater: int
|
||||
IDSystemHotWaterPeriodType: int
|
||||
IDSystemColdWater: int
|
||||
IDSystemColdWaterPeriodType: int
|
||||
IDSystemSewerage: int
|
||||
IDSystemSeweragePeriodType: int
|
||||
IDStandartVolume: int
|
||||
MeteringDeviceHeating: bool
|
||||
MeteringDeviceHotWater: bool
|
||||
MeteringDeviceColdWater: bool
|
||||
ActAvailabilityMeteringDeviceInstallIDType: int
|
||||
ActAvailabilityMeteringDeviceInstallHeating: bool
|
||||
ActAvailabilityMeteringDeviceInstallWater: bool
|
||||
Privatization: bool = None
|
||||
Area: float = None
|
||||
AreaOwned: float = None
|
||||
AreaAboveNormal: float = None
|
||||
AreaAdditional: float = None
|
||||
RoomsNumber: int = None
|
||||
PeopleNumber: int = None
|
||||
PeopleWithoutReg: int = None
|
||||
PeopleAway: int = None
|
||||
PeopleDependents: int = None
|
||||
Glazing: bool = None
|
||||
IDSystemHotWater: int = None
|
||||
IDSystemHotWaterPeriodType: int = None
|
||||
IDSystemColdWater: int = None
|
||||
IDSystemColdWaterPeriodType: int = None
|
||||
IDSystemSewerage: int = None
|
||||
IDSystemSeweragePeriodType: int = None
|
||||
IDStandartVolume: int = None
|
||||
MeteringDeviceHeating: bool = None
|
||||
MeteringDeviceHotWater: bool = None
|
||||
MeteringDeviceColdWater: bool = None
|
||||
ActAvailabilityMeteringDeviceInstallIDType: int = None
|
||||
ActAvailabilityMeteringDeviceInstallHeating: bool = None
|
||||
ActAvailabilityMeteringDeviceInstallWater: bool = None
|
||||
|
||||
|
||||
class EditAdressInit(AddressDetailsSerializer):
|
||||
@ -521,7 +523,7 @@ class FilterTypeSerializer(BaseModel):
|
||||
|
||||
|
||||
class FilterListSerializer(BaseModel):
|
||||
ID: int
|
||||
ID: str
|
||||
Name: Optional[str] = None
|
||||
IsChecked: bool
|
||||
|
||||
@ -536,9 +538,9 @@ class RentRegisterNotices(BaseModel):
|
||||
Number: Optional[str] = None
|
||||
Address: Optional[str] = None
|
||||
AccountFullName: Optional[str] = None
|
||||
Amount: float
|
||||
AmountFine: float
|
||||
AmountTotal: float
|
||||
Amount: float = None
|
||||
AmountFine: float = None
|
||||
AmountTotal: float = None
|
||||
|
||||
|
||||
class PersonalAccountDebtSerilizer(BaseModel):
|
||||
|
Reference in New Issue
Block a user