"""Constants error messages and codes for salessheets application.""" ERROR_CONVERTING_MESSAGE = 'An error while converting HTML to PDF' ERROR_CONVERTING_CODE = 'converting_error' ERROR_GETTING_DATA_MESSAGE = 'No required data was received from db' ERROR_FINDING_TEMPLATE = 'Template on the given path not found' ERROR_CONVERTING_DATE = 'Unable to convert date to string ' \ 'due to invalid format' ERROR_PDF_GENERATION_NO_PRODUCT_ID = 'Product id is required to' \ ' perform pdf generation' ERROR_PDF_GENERATION_CODE = 'pdf_generation_error' ERROR_OWS_IMAGES = 'ows_images_error' ERROR_BARCODE_GENERATING_CODE = 'barcode_generating_error' ERROR_BARCODE_INVALID_LENGTH = 'barcode_invalid_length_error' ERROR_BARCODE_IS_NOT_NUMERIC = 'barcode_is_not_numeric_error' ERROR_INVALID_BARCODE_MESSAGE = 'upc should be 12-digit or 13-digit number!' ERROR_INVALID_PRODUCT_TYPE_CODE = 'invalid_product_type' ERROR_INVALID_PRODUCT_TYPE_MESSAGE = ( 'Product should have product_type_id == 1.') ERROR_EMPTY_PRODUCT_TYPE_FROM_DB = ( 'No product type data has been received from database.') ERROR_MISSING_PRODUCT_ID_ARGUMENT = 'product_id argument was not provided' ERROR_CORRELLATION_ID_INVALID = ( 'Correlation-Id should be valid') ERROR_CORRELLATION_ID_ABSENT = ( 'Correlation-Id is not present in message attributes') ERROR_MISSING_FIELDS_IN_SQS_MESSAGE = ( 'The incoming incoming sqs message is not valid.') ERROR_CORRELLATION_ID_INVALID_MESSAGE = ( 'Correlation id is not valid or is not present at all') ERROR_INVALID_SQS_MESSAGE = 'The sqs message is invalid' ERROR_WHILE_CREATING_BULK_SALES_SHEET = ( 'Error while bulk sales sheet generation occured') ERROR_MESSAGE_IF_FILE_NOT_FOUND = 'Needed file not found' ERROR_DELETING_MESSAGES = 'An error occured while deleting files' ERROR_WRONG_OUTPUT_TYPE = ( 'Wrong output type, it should be either single_pdf or zipped_pdf') ERROR_PDF_GENERATION_NO_OUTPUT_TYPE = ( 'Output type is required to perform pdf generation') ERROR_JOB_ID_MISSING = 'Job id isn not present in sqs message' JOB_DOES_NOT_EXIST = 'Job does not exist' ERROR_CODE_INVALID_JOB_STATUS = 'invalid_job_status' ERROR_MESSAGE_INVALID_JOB_STATUS = 'Invalid job status' ERROR_MESSAGE_INVALID_PRODUCT_ID = 'Invalid product_id provided' ERROR_MESSAGE_TEMPLATE_TYPE_DOES_NOT_EXIST = ( 'Localized template type with id {id} does not exist.') ERROR_CODE_FEATURE_FLAG_FAILED = 'feature_flag_error' ERROR_CODE_OWS_PRICING_ERROR = 'ows_pricing_error' ERROR_MESSAGE_MISSING_PRODUCT_ID = 'product_id is not provided' ERROR_CODE_MISSING_PRODUCT_ID = 'missing product_id' ERROR_CODE_OWS_PRODUCT_ERROR = 'ows_product_error'