Files
old-wiaas-legacy/client-wiaas/src/constants/ordersConstants.js

214 lines
10 KiB
JavaScript

const MODULE = 'ORDERS_';
export const REQUEST_ORDERS = MODULE + 'REQUEST_ORDERS';
export const RECEIVE_ORDERS = MODULE + 'RECEIVE_ORDERS';
export const REQUEST_ACTIVE_ORDERS = MODULE + 'REQUEST_ACTIVE_ORDERS';
export const RECEIVE_ACTIVE_ORDERS = MODULE + 'RECEIVE_ACTIVE_ORDERS';
export const REQUEST_HISTORY_ORDERS = MODULE + 'REQUEST_HISTORY_ORDERS';
export const RECEIVE_HISTORY_ORDERS = MODULE + 'RECEIVE_HISTORY_ORDERS';
export const REQUEST_ORDER_INFO = MODULE + 'REQUEST_ORDER_INFO';
export const RECEIVE_ORDER_INFO = MODULE + 'RECEIVE_ORDER_INFO';
export const SEND_ORDER_COMMENT = MODULE + 'SEND_ORDER_COMMENT';
export const REQUEST_CUSTOMER_DOCUMENTS = MODULE + 'REQUEST_CUSTOMER_DOCUMENTS';
export const RECEIVE_CUSTOMER_DOCUMENTS = MODULE + 'RECEIVE_CUSTOMER_DOCUMENTS';
export const RE_UPLOAD_DOCUMENT = MODULE + 'RE_UPLOAD_DOCUMENT';
export const REQUEST_VALIDATION_COMMENTS = MODULE + 'REQUEST_VALIDATION_COMMENTS';
export const RECEIVE_VALIDATION_COMMENTS = MODULE + 'RECEIVE_VALIDATION_COMMENTS';
export const REQUEST_CUSTOMER_ACCEPTANCE = MODULE + 'REQUEST_CUSTOMER_ACCEPTANCE';
export const RECEIVE_CUSTOMER_ACCEPTANCE = MODULE + 'RECEIVE_CUSTOMER_ACCEPTANCE';
export const UPLOAD_CUSTOMER_ACCEPTANCE = MODULE + 'UPLOAD_CUSTOMER_ACCEPTANCE';
export const SEND_CUSTOMER_ACCEPTANCE = MODULE + 'SEND_CUSTOMER_ACCEPTANCE';
export const REQUEST_IS_NEXT_STEP_WANTED = MODULE + 'REQUEST_IS_NEXT_STEP_WANTED';
export const RECEIVE_IS_NEXT_STEP_WANTED = MODULE + 'RECEIVE_IS_NEXT_STEP_WANTED';
export const RECEIVE_IS_COMPONENT_DISABLED = MODULE + 'RECEIVE_IS_COMPONENT_DISABLED';
export const SET_EARLIEST_INSTALLATION_DATE = MODULE + 'SET_EARLIEST_INSTALLATION_DATE';
export const SET_CONFIRMATION_DATES = MODULE + 'SET_CONFIRMATION_DATES';
export const REQUEST_INSTALLATION_COMPANIES = MODULE + 'REQUEST_INSTALLATION_COMPANIES';
export const RECEIVE_INSTALLATION_COMPANIES = MODULE + 'RECEIVE_INSTALLATION_COMPANIES';
export const SET_SUPPORT_MESSAGE = MODULE + 'SET_SUPPORT_MESSAGE';
export const SET_SCHEDULING_DISABLED_FLAG = MODULE + 'SET_SCHEDULING_DISABLED_FLAG';
export const SET_VIEW_ALL_ORDERS = MODULE + 'SET_VIEW_ALL_ORDERS';
export const REQUEST_ALL_SHIPPING_DATES_CONFIRMED = MODULE + 'REQUEST_ALL_SHIPPING_DATES_CONFIRMED';
export const RECEIVE_ALL_SHIPPING_DATES_CONFIRMED = MODULE + 'RECEIVE_ALL_SHIPPING_DATES_CONFIRMED';
export const orderMessages = {
SYSTEM_ALLOWED_LANGUAGES_EMPTY: 'There are no languages added in the system.',
ALLOWED_LANGUAGE: 'Allowed languages are:',
ALLOWED_LANGUAGE_ERROR: 'There was an error while trying to detect the language:',
SERVER_ERROR: 'There seems to be a problem and the comment was not added!',
ORDER_COMMENT_ADDED: 'Order comment updated!',
FILE_UPLOADED : 'File has been uploaded and needs to be validated!',
NOT_UPLOADED : 'There seems to be a problem and the file was not uploaded!',
RE_UPLOAD_MAIL : 'Notify mail has been sent!',
ACCEPTANCE_NOT_UPDATED : 'Acceptance status not updated!',
ACCEPTANCE_NOT_UPLOADED: 'You need to uploade the acceptance document before you can agree with the installation!',
DECLINE_REASON_EMPTY : 'Please describe what is not to your satisfaction.',
INSTALLATION_DECLINED : 'The implementation is not satisfactory.',
ERROR_MAIL_SENT : 'Notify mail was not sent!',
ORDER_UPDATE_MAIL_SENT: 'Order update email was successfully sent',
INSTALLATION_DATE_EMPTY: 'Installation date cannot be empty.',
INVALID_DATE_ESTIMATED: 'Estimated date is in incorrect format.',
STATUS_NOT_SET: 'Status of the installation date is not set.',
EID_NOT_SET: 'Earliest installation date is not set.',
RELATION_NOT_FOUND: 'Relation between the order and installation company has not been set.',
PAST_DATE: 'Installation date cannot be earlier than',
PROPOSED_DATE_EXISTS: 'This date is already proposed',
MAX_SLA_EXCEEDED: 'Maximum installation date regarding SLA is excedeed.',
MAX_CHARACTERS: 'Too many characters for field: ',
INSTALLATION_ALREADY_ACCEPTED: 'The accepted installation date has been changed.',
INSTALLATION_DATE_UPDATED: 'Installation date was successfully updated.',
INSTALLATION_DATE_NOT_REMOVED: 'This installation date cannot be removed. Please refresh the page.',
INSTALLATION_DATE_REMOVED : 'My proposed installation date was successfully removed',
INSTALLATION_DATE_REMOVE_ERROR : 'There was an error while trying to remove my installation date proposed',
INSTALLATION_MAIL_SENT: 'Notification mail was sent',
INVALID_FILE_QUESTIONNAINRE : 'Invalid file format! Supported extensions: .pdf, .docx, .doc, .xlsx, .xls, .odt, .ods',
INVALID_FILE_ACCEPTANCE : 'Invalid file format! Supported extensions: .pdf, .docx, .doc, .xlsx, .xls, .odt, .ods, .jpg, .png, .jpeg',
EMPTY_VALUE: 'Field required: ',
INSTALLATION_ACCEPTED: 'The implementation has been accepted!',
ID_ORDER_NOT_SET: 'The id of the order is not set',
SUPPORT_MAIL_SENT: 'Support mail sent!'
};
export const orderTexts = {
labels: {
NOT_ACCEPTED: 'Customer acceptance must be submitted no later than : ',
ACCEPTED: 'Implementation accepted',
DECLINED: 'Implementation not satisfactory',
NOT_SET: 'not set',
REASON: 'Reason',
UPLOAD_ACCEPTANCE_LABEL: 'Select or drop acceptance file',
NO_DOCUMENTS_UPLOADED: 'No documents uploaded!',
ACCEPTANCE_LABEL: 'The system is implemented in a professional way and provides the agreed functionality.',
ACCEPT_INSTALLATION_TEXT: 'We are pleased to hear you are satisfied. Please continue by pressing the button below.',
DECLINE_REASON_TEXT: 'We are sorry to hear you are not satisfied with the implementation. Please describe why below, to help us get better.',
REFERENCE: 'Location Details',
LOCATION_DETAILS: 'Location details',
BID: 'Invoice reference',
ORDER_DATE: 'Order date',
EST_DELIVERY: 'Est. delivery date',
AMOUNT: 'Amount',
STATUS: 'Status',
SOLD_BY: 'Sold By',
TOTAL_DELVIERY_PRICE: 'On Delivery',
TOTAL_RECURRENT_PRICE: 'Monthly',
ACCEPTANCE_HEADER: 'Installation acceptance',
DELIVERY_DATE: 'Delivery date',
INSTALLATION_SCHEDULE_HEADER: 'Installation scheduling',
SUPPORT_MESSAGE_HEADER: 'Contact support',
TERMS_AND_COND: 'Terms and conditions',
DELIVERY_ADDRESS: 'Delivery address',
PHONE_NUMBER: 'Phone number',
MAIL: 'Mail address',
EXTEND: 'with possibility to extend each',
PACKAGE_PRICE: 'Package price',
RECURRENT_PRICE: 'Package recurent price',
SERVICES_PRICE: 'Services and support',
OPTIONS: 'Options',
ADDITIONAL_PACKAGES: 'Additional Packages',
DOCUMENTS: 'Documents',
NO_DOCUMENTS: 'No documents available',
OTHER_DOCS: 'Other documents',
PACKAGES: 'Packages',
COMPLETED: 'Completed',
WILL_BE_PROCESS: 'This order will be processed soon',
INSTALL_COMPANY: 'Installation company',
INSTALL_COMPANY_NOT_SET: 'Installation company has not yet been chosen by the broker',
EARLIEST_INSTALLATION: 'Earliest installation date',
PROPOSED_DATES: 'Proposed dates',
INSTALLATION_PROTOCOL: 'Installation protocol',
NO_PROTOCOL_UPLOADED: 'No documents uploaded yet',
INSTALLATION_MAIL_SENT: 'Notification mail was sent',
ERROR_MAIL_SENT: 'An error occured while trying to send a mail.',
ORDER_DETAILS: 'Order details',
ORDER_NUMBER: 'Order number',
COMMERCIAL_LEAD: 'Catalogue',
ORDER_ITEMS: 'Order items',
PRICE: 'Price',
SERVICES_AND_SUPPORT: 'Services and support',
END_OF_LIFE: 'End of life',
ENTER_TEXT: 'Enter your text here',
SELECT_OR_DROP: 'Select or drop questionnaire',
ACTIVE_ORDERS: ' Active Orders',
ORDER_HISTORY: 'Orders History',
NO_RECORDS: 'No records available',
NOT_AVAILABLE: 'This order is not available',
ORDER: 'Order',
ORDER_INFO: 'Order Info',
COMMENTS: 'Comments',
SCHEDULE_INSTALLATION_ENABLED: 'Function to schedule the installation date',
SCHEDULE_INSTALLATION_DISABLED: 'Scheduling will be available when the delivery date is set by supplier',
SCHEDULE_INSTALLATION_NOT_EXIST: 'Installation is not required for this order',
PRELIMINARY_INSTALLATION_DATE: 'The date is preliminary until all shipping dates are confirmed',
INSTALLATION_DATE_ACCEPTED: 'The installation date is the final and will be performed at the accepted date',
INSTALLATION_DATE_NOT_SET: 'The installation date is not set yet',
PLACED_BY: 'Placed by',
VIEW_ALL_ORDERS: 'View all orders',
INSTALLATION_DATE: 'Installation date',
INSTALLATION_NOT_REQUIRED:'Installation is not required for this package',
PRELIMINARY_INSTALLATION_DATE_LABEL: 'Preliminary installation date',
PROJECT: 'Project',
BILLING_FIRST_NAME: 'Billing first name',
BILLING_LAST_NAME: 'Billing last name',
BILLING_MAIL: 'Invoice mail',
BILLING_ADDRESS: 'Billing address'
},
buttons: {
ACCEPT_INSTALLATION: 'I agree',
DECLINE_INSTALLATION: 'I disagree',
DELIVERY_DETAILS: 'Delivery details',
DETAILS: 'Details',
SUPPORT: 'Support',
SEND: 'Send',
CANCEL: 'Cancel',
CLOSE: 'Close',
YES: 'Yes',
NO: 'No',
ACCEPT: 'Accept',
DECLINE: 'Decline',
REMOVE: 'Remove',
ADD_COMMENT: 'Add order comment',
SEND_MAIL_TO_SUPPORT: 'Send an email to support',
SEE_DOCUMENTS: 'See documents',
ALL: 'All',
SCHEDULE_INSTALLATION: 'Schedule installation',
ACTIONS: 'Actions'
},
statuses: {
open: 'Open',
'in-progress': 'In Progress',
production: 'Completed',
'end-of-life': 'Completed',
canceled: 'Canceled',
'not-accepted': 'Not Accepted',
invalid: 'Invalid',
pending: 'Pending'
},
headers: {
ORDER: 'Order',
REFERENCE: 'Location Details',
ORDER_DATE: 'Order date',
ESTIMATED_DATE: 'Est. delivery date',
COMMERCIAL_LEAD: 'Catalogue',
AMOUNT: 'Amount',
STATUS: 'Status',
DELIVERY_DATE: 'Delivery date',
END_OF_LIFE: 'End of Life',
PLACED_BY: 'Placed by'
}
};