16 lines
585 B
JavaScript
16 lines
585 B
JavaScript
import moment from "moment";
|
|
|
|
export const fromWiaasProcessStep = (step) => {
|
|
return {
|
|
actionCode: step.action_code,
|
|
fullDesc: step.full_desc,
|
|
idOrder: step.order_id,
|
|
idProcess: step.process_id, //not sure about this
|
|
idProcessStep: step.step_id, //not sure about this
|
|
isNewCommentVisible: 1, //TODO : get this from backend
|
|
isVisibleForCustomer: 1, //TODO : get this from backend
|
|
now: moment().format("Do MMM YY"),
|
|
shortDesc: step.short_desc,
|
|
status: step.status,
|
|
}
|
|
}; |