use new names from order and process properties

This commit is contained in:
GotPPay
2018-08-08 16:48:17 +02:00
parent 0f515172fe
commit 190d139f5a
4 changed files with 7 additions and 7 deletions

View File

@@ -10,10 +10,10 @@ class NextActionItem extends Component {
return ( return (
<Row className="next-actions-row"> <Row className="next-actions-row">
<Col xl="8"> <Col xl="8">
{nextAction.stepAction} {nextAction.step_action}
</Col> </Col>
<Col xl="4"> <Col xl="4">
<Link to={'orders/'+ nextAction.idOrder}> <Link to={'orders/'+ nextAction.order_id}>
<div className={'next-actions-status ' + nextAction.status}>{dashboardTexts.statuses[nextAction.status]}</div> <div className={'next-actions-status ' + nextAction.status}>{dashboardTexts.statuses[nextAction.status]}</div>
</Link> </Link>
</Col> </Col>

View File

@@ -14,7 +14,7 @@ class NextActionsList extends Component {
{ {
nextActions && nextActions &&
nextActions.map((nextAction, index) => nextActions.map((nextAction, index) =>
<NextActionItem key={'action-' + nextAction.orderNumber + index} nextAction={nextAction}/> <NextActionItem key={'action-' + nextAction.order_number + index} nextAction={nextAction}/>
) )
} }
</WiaasTableBody> </WiaasTableBody>

View File

@@ -12,9 +12,9 @@ class OrderItem extends Component {
<WiaasTableRow className={'order-central-row line-' + order.status}> <WiaasTableRow className={'order-central-row line-' + order.status}>
<WiaasTableCol header="#"> <WiaasTableCol header="#">
<i className="fa fa-list-alt package-photo" aria-hidden="true" /> <i className="fa fa-list-alt package-photo" aria-hidden="true" />
<div className="orderNumber">{order.orderNumber}</div> <div className="orderNumber">{order.number}</div>
</WiaasTableCol> </WiaasTableCol>
<WiaasTableCol header={dashboardTexts.tableHeaders.ORDER_DATE}>{order.orderDate}</WiaasTableCol> <WiaasTableCol header={dashboardTexts.tableHeaders.ORDER_DATE}>{order.dateCreated}</WiaasTableCol>
{ {
isViewAllOrdersChecked && isViewAllOrdersChecked &&
<WiaasTableCol header={dashboardTexts.tableHeaders.PLACED_BY}>{order.placedBy}</WiaasTableCol> <WiaasTableCol header={dashboardTexts.tableHeaders.PLACED_BY}>{order.placedBy}</WiaasTableCol>
@@ -25,7 +25,7 @@ class OrderItem extends Component {
<WiaasTableCol header={dashboardTexts.tableHeaders.STATUS}> <WiaasTableCol header={dashboardTexts.tableHeaders.STATUS}>
<div className={'status-icon ' + order.status}></div>{dashboardTexts.statuses[order.status]} <div className={'status-icon ' + order.status}></div>{dashboardTexts.statuses[order.status]}
</WiaasTableCol> </WiaasTableCol>
<WiaasTableCol><Link to={'orders/'+ order.idOrder}><Button className="wiaas-button">{dashboardTexts.buttons.DETAILS}</Button></Link></WiaasTableCol> <WiaasTableCol><Link to={'orders/'+ order.id}><Button className="wiaas-button">{dashboardTexts.buttons.DETAILS}</Button></Link></WiaasTableCol>
</WiaasTableRow> </WiaasTableRow>
); );
} }

View File

@@ -46,7 +46,7 @@ class OrdersList extends Component {
{ {
orders && orders &&
orders.map((order, index) => orders.map((order, index) =>
<OrderItem key={'order-' + order.orderNumber} order={order} isViewAllOrdersChecked={isViewAllOrdersChecked}/> <OrderItem key={'order-' + order.number} order={order} isViewAllOrdersChecked={isViewAllOrdersChecked}/>
) )
} }
</WiaasTableBody> </WiaasTableBody>