This commit is contained in:
2026-01-06 18:55:47 +03:00
parent 58e6ef2d98
commit e22abc8057
7 changed files with 34 additions and 52 deletions

View File

@@ -4,7 +4,7 @@ class ExcelInfo(BaseModel):
arti:str = Field(..., min_length=5, max_length=12, description="arti of the clothes")
counts:int = Field(..., gt=0, description="the quantity of the clothes")
price:float = Field(..., gt=0, description="the price of the clothes")
ref_key:str = Field(..., description="reffering key from db")
#ref_key:str = Field(..., description="reffering key from db")
class ExcelRealization(BaseModel):
pass
class ExcelReturning(BaseModel):
@@ -60,13 +60,4 @@ class Translit():
'Т': 'T',
'Х': 'X',
}
class CreateDocumentParams(BaseModel):
DATE: str = Field(..., min_length=1)
OPERATION: str = Field(..., min_length=1)
CONTRACTOR: str = Field(..., min_length=1)
CONTRACT: str = Field(..., min_length=1)
ACCOUNT_INTERMEDIARY_SERVICES: str = Field(..., min_length=1)
ACCOUNT_ADVANCES_RECEIVED: str = Field(..., min_length=1)
ACCOUNT_ADVANCES_ISSUED: str = Field(..., min_length=1)
ACCOUNT_WITH_COUNTERPARTY: str = Field(..., min_length=1)
settings = Settings()