Skip to content
Permalink
Browse files

Issue #95

Label for cancelled orders was missing, also updated to new b@se logic.
  • Loading branch information...
ryvanvel committed Dec 11, 2015
1 parent 0f37f5e commit 03697e5f730f1f816aed50bc723760dc94e8ee7a
Showing with 12 additions and 8 deletions.
  1. +12 −8 private/www/netosuite/Templates/skeletal/customer/template.html
@@ -152,14 +152,18 @@ <h3 id="orders">My Orders</h3>
<p>
<a href="[%URL page:'account' type:'view_order' id:'[@order_id@]'%][%END URL%]">[@order_id@]</a>
<span class="label pull-right
<!--##[%DATA id:'order_status' if:'eq' value:'On Hold'%]##-->label-warning<!--##[%END DATA%]##-->
<!--##[%DATA id:'order_status' if:'eq' value:'Pick'%]##-->label-info<!--##[%END DATA%]##-->
<!--##[%DATA id:'order_status' if:'eq' value:'New'%]##-->label-primary<!--##[%END DATA%]##-->
<!--##[%DATA id:'order_status' if:'eq' value:'Backorder Approved'%]##-->label-warning<!--##[%END DATA%]##-->
<!--##[%DATA id:'order_status' if:'eq' value:'New Backorder'%]##-->label-warning<!--##[%END DATA%]##-->
<!--##[%DATA id:'order_status' if:'eq' value:'Pack'%]##-->label-info<!--##[%END DATA%]##-->
<!--##[%DATA id:'order_status' if:'eq' value:'Dispatched'%]##-->label-success<!--##[%END DATA%]##-->
">[@order_status@]<!--##[%DATA id:'refund_status' if:'ne' value:''%]##--> ([@refund_status@])<!--##[%END DATA%]##--></span>
[%if [@order_status@] eq 'On Hold' or [@order_status@] eq 'Backorder Approved' or [@order_status@] eq 'New Backorder'%]
label-warning
[%elseif [@order_status@] eq 'Pick' or [@order_status@] eq 'Pack'%]
label-info
[%elseif [@order_status@] eq 'New'%]
label-primary
[%elseif [@order_status@] eq 'Dispatched'%]
label-success
[%elseif [@order_status@] eq 'Cancelled'%]
label-danger
[%/if%]
">[@order_status@] [%if [@refund_status@]%]([@refund_status@])[%/if%]</span>
</p>

<hr>

0 comments on commit 03697e5

Please sign in to comment.
You can’t perform that action at this time.