se bs vevify & create new field
Showing
2 changed files
with
11 additions
and
2 deletions
| ... | @@ -393,7 +393,8 @@ class BSWorkbook(Workbook): | ... | @@ -393,7 +393,8 @@ class BSWorkbook(Workbook): |
| 393 | for cell in ms[4]: | 393 | for cell in ms[4]: |
| 394 | cell.fill = self.amount_fill | 394 | cell.fill = self.amount_fill |
| 395 | 395 | ||
| 396 | verify_res = False if len(metadata_highlight_row) > 0 or len(verify_highlight_row) > 0 else True | 396 | # verify_res = False if len(metadata_highlight_row) > 0 or len(verify_highlight_row) > 0 else True |
| 397 | verify_res = False if len(metadata_highlight_row) > 0 else True | ||
| 397 | return ms, timedelta, verify_res | 398 | return ms, timedelta, verify_res |
| 398 | 399 | ||
| 399 | @staticmethod | 400 | @staticmethod | ... | ... |
| ... | @@ -244,7 +244,14 @@ se_compare_args = { | ... | @@ -244,7 +244,14 @@ se_compare_args = { |
| 244 | 'content': fields.Nested(se_compare_content, required=True) | 244 | 'content': fields.Nested(se_compare_content, required=True) |
| 245 | } | 245 | } |
| 246 | 246 | ||
| 247 | application_data_args = {'applicationId': fields.Str(required=True, validate=validate.Length(max=64))} | 247 | application_data_args = { |
| 248 | 'applicationId': fields.Str(required=True, validate=validate.Length(max=64)), | ||
| 249 | 'applicationStatus': fields.Int( | ||
| 250 | required=False, | ||
| 251 | missing=0, | ||
| 252 | validate=lambda val: val >= 0, | ||
| 253 | ), | ||
| 254 | } | ||
| 248 | 255 | ||
| 249 | applicant_data_args = { | 256 | applicant_data_args = { |
| 250 | # 'mainApplicantName': fields.Str(required=True, validate=validate.Length(max=16)), | 257 | # 'mainApplicantName': fields.Str(required=True, validate=validate.Length(max=16)), |
| ... | @@ -265,6 +272,7 @@ document_args = { | ... | @@ -265,6 +272,7 @@ document_args = { |
| 265 | 'uploadFinishTime': fields.DateTime(required=True), | 272 | 'uploadFinishTime': fields.DateTime(required=True), |
| 266 | 'dataSource': fields.Str(required=True, validate=validate.Length(max=64)), # POS/EAPP/Econtract | 273 | 'dataSource': fields.Str(required=True, validate=validate.Length(max=64)), # POS/EAPP/Econtract |
| 267 | 'metadataVersionId': fields.Str(required=True, validate=validate.Length(max=64)), | 274 | 'metadataVersionId': fields.Str(required=True, validate=validate.Length(max=64)), |
| 275 | 'password': fields.Str(required=False, validate=validate.Length(max=16)), | ||
| 268 | } | 276 | } |
| 269 | 277 | ||
| 270 | doc_upload_args = { | 278 | doc_upload_args = { | ... | ... |
-
Please register or sign in to post a comment