Spaces:
Running
Running
Amamrnaf
commited on
Commit
·
daaaba0
1
Parent(s):
9e16557
"Added bank_details model to dataSchema.py and modified service model."
Browse files- dataSchema.py +6 -5
dataSchema.py
CHANGED
@@ -135,9 +135,9 @@ class service(BaseModel):
|
|
135 |
to_date: str = Field(None,description="ending date in DD/MM/YYYY format.")
|
136 |
currency : str =Field(...,description="currency of the rate.")
|
137 |
fx: str = Field(None,description="foreign exchange.")
|
138 |
-
Number_of_days_hours:
|
139 |
-
rate:
|
140 |
-
total:
|
141 |
|
142 |
class bank_details(BaseModel):
|
143 |
bank_name: str = Field(..., description="Name of the bank.")
|
@@ -153,12 +153,13 @@ class Noc_Invoice(BaseModel):
|
|
153 |
invoice_number: str = Field(..., description="Unique identifier for the invoice.")
|
154 |
full_name: str = Field(..., description="Full name of the person.")
|
155 |
invoice_to:str = Field(...,description="email to send the invoice forward to.")
|
156 |
-
company_name:str = Field(...,description="company name")
|
157 |
address: str = Field(..., description="Address of the company.")
|
158 |
|
159 |
services : List[service] = Field(None,description="list of services in the table.")
|
160 |
sub_total: float = Field(...,description="the sub total.")
|
161 |
vat: float = Field(None, description="the vat.")
|
|
|
162 |
total_due:float= Field(...,description="the total due.")
|
163 |
|
164 |
first_bank : List[bank_details]=Field(...,description="first bank informations.")
|
@@ -207,7 +208,7 @@ Based on the provided timesheet details, extract the following information:
|
|
207 |
- the rate of the service.
|
208 |
- total which is the rate* No of days/hours .
|
209 |
- Sub total
|
210 |
-
- VAT
|
211 |
- Total due
|
212 |
- First bank informations, for each existing bank provide, do not mess up the iban:
|
213 |
- Name of the bank.
|
|
|
135 |
to_date: str = Field(None,description="ending date in DD/MM/YYYY format.")
|
136 |
currency : str =Field(...,description="currency of the rate.")
|
137 |
fx: str = Field(None,description="foreign exchange.")
|
138 |
+
Number_of_days_hours: str = Field(...,description="number of hours or days for the service.")
|
139 |
+
rate: str = Field(..., description="the rate of the service.")
|
140 |
+
total: str = Field(...,description="total which is the rate* No of days/hours .")
|
141 |
|
142 |
class bank_details(BaseModel):
|
143 |
bank_name: str = Field(..., description="Name of the bank.")
|
|
|
153 |
invoice_number: str = Field(..., description="Unique identifier for the invoice.")
|
154 |
full_name: str = Field(..., description="Full name of the person.")
|
155 |
invoice_to:str = Field(...,description="email to send the invoice forward to.")
|
156 |
+
company_name: str = Field(...,description="company name")
|
157 |
address: str = Field(..., description="Address of the company.")
|
158 |
|
159 |
services : List[service] = Field(None,description="list of services in the table.")
|
160 |
sub_total: float = Field(...,description="the sub total.")
|
161 |
vat: float = Field(None, description="the vat.")
|
162 |
+
Withholding_tax : float = Field(None,description="Withholding Tax.")
|
163 |
total_due:float= Field(...,description="the total due.")
|
164 |
|
165 |
first_bank : List[bank_details]=Field(...,description="first bank informations.")
|
|
|
208 |
- the rate of the service.
|
209 |
- total which is the rate* No of days/hours .
|
210 |
- Sub total
|
211 |
+
- VAT or Withholding Tax.
|
212 |
- Total due
|
213 |
- First bank informations, for each existing bank provide, do not mess up the iban:
|
214 |
- Name of the bank.
|