Subversion Repositories SmartDukaan

Rev

Rev 7372 | Rev 7399 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7372 Rev 7393
Line 59... Line 59...
59
            COD verification ticket
59
            COD verification ticket
60
        </a>
60
        </a>
61
        <br />
61
        <br />
62
    #end
62
    #end
63
    <br />
63
    <br />
-
 
64
	#if($order.getSource == 2)
-
 
65
		<h3 style="color: #ff8000;font-style: italic;">This order was placed from store $order.getStoreId()</h3>
-
 
66
	#end
-
 
67
	#if($action.getStoreOrderDetail() && ($order.getStatus().getValue() == 15 || $order.getStatus().getValue() == 34))
-
 
68
    	<div style="margin: 10px 0;font-size: 15px;">
-
 
69
    		Cash Refund Amount : $action.getStoreOrderDetail().getCashRefundAmount()<br>
-
 
70
    		Card Refund Amount : $action.getStoreOrderDetail().getCashRefundAmount()
-
 
71
    	</div>
-
 
72
	#end
64
	#if($action.canOrderBeCancelled())
73
	#if($action.canOrderBeCancelled())
-
 
74
		#set($cancellationClass = "display-store-order-popup")
-
 
75
		#set($cancellationButtonId = "orderCancellationButton")
-
 
76
		#if($order.getSource == 2)
-
 
77
			#set($cancellationClass = "display-cancel-store-order-popup")
-
 
78
			#set($cancellationButtonId = "storeOrderCancellationButton")
-
 
79
			<div id="cancel-store-order-div" class="hidden">
-
 
80
            <form id="cancel-store-order-form">
-
 
81
				<div>
-
 
82
					Cash refund amount: <input type='text' style='width:150px;border:1px solid #777777;color:#999999;height:25px;padding:3px 5px;font-size:15px;' value='$action.getCashAmount()'></input> 
-
 
83
					Card refund amount: <input type='text' style='width:150px;border:1px solid #777777;color:#999999;height:25px;padding:3px 5px;font-size:15px;' value='$action.getCardAmount()'></input>
-
 
84
				</div>
-
 
85
                <table class="display">
-
 
86
                    #foreach($item in $action.getCODCancelMatrix())
-
 
87
                        #if($velocityCount % 2 != 0)
-
 
88
                            <tr >
-
 
89
                        #end
-
 
90
                            <td>
-
 
91
                            #if($item.name().equals("INVALID_CONTACT_DETAILS"))
-
 
92
                                <input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()" checked />
-
 
93
                            #else
-
 
94
                                <input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()" />
-
 
95
                            #end
-
 
96
                            </td>
-
 
97
                        #if($velocityCount % 2 == 0)
-
 
98
                            </ tr>
-
 
99
                        #end
-
 
100
                    #end
-
 
101
                    <tr >
-
 
102
                        <td class="cancelReasonBox" colspan="2">
-
 
103
                            <textarea name="body" rows="5" cols="80" id="cancel-store-order-body"></textarea>
-
 
104
                        </td>
-
 
105
                    </tr>
-
 
106
                    <tr >
-
 
107
                        <td colspan="2">
-
 
108
                            <input type="submit" value="Cancel Order"/>
-
 
109
                        </td>
-
 
110
                    </tr>
-
 
111
                </table>
-
 
112
            </form>
-
 
113
			</div>
-
 
114
		#else
65
	<div id="cancel-div" class="hidden">
115
        	<div id="cancel-div" class="hidden">
66
    <form id="cancel-form">
116
            <form id="cancel-form">
67
        <table class="display">
117
                <table class="display">
68
            #foreach($item in $action.getCODCancelMatrix())
118
                    #foreach($item in $action.getCODCancelMatrix())
69
                #if($velocityCount % 2 != 0)
119
                        #if($velocityCount % 2 != 0)
70
                    <tr >
120
                            <tr >
71
                #end
121
                        #end
72
                <td>
122
                        <td>
73
                #if($item.name().equals("INVALID_CONTACT_DETAILS"))
123
                        #if($item.name().equals("INVALID_CONTACT_DETAILS"))
74
                    <input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()" checked />
124
                            <input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()" checked />
75
				#elseif($item.name().equals("OUT_OF_STOCK") || $item.name().equals("COLOR_OUT_OF_STOCK"))
125
        				#elseif($item.name().equals("OUT_OF_STOCK") || $item.name().equals("COLOR_OUT_OF_STOCK"))
76
				<input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()" disabled="true"/>
126
        				<input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()" disabled="true"/>
77
                #else
127
                        #else
78
                    <input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()" />
128
                            <input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()" />
79
                #end
129
                        #end
80
                #if($item.name().equals("OUT_OF_STOCK") || $item.name().equals("COLOR_OUT_OF_STOCK"))
130
                        #if($item.name().equals("OUT_OF_STOCK") || $item.name().equals("COLOR_OUT_OF_STOCK"))
81
					<label title="$item.getDescription()"><strike>$item.name()</strike></label>
131
        					<label title="$item.getDescription()"><strike>$item.name()</strike></label>
82
				#else
132
        				#else
83
					<label title="$item.getDescription()">$item.name()</label>
133
        					<label title="$item.getDescription()">$item.name()</label>
84
				#end
134
        				#end
85
                </td>
135
                        </td>
86
                #if($velocityCount % 2 == 0)
136
                        #if($velocityCount % 2 == 0)
87
                    </ tr>
137
                            </ tr>
88
                #end
138
                        #end
89
            #end
139
                    #end
90
            <tr >
140
                    <tr >
91
                <td id ="cancelReasonBox" colspan="2">
141
                        <td class="cancelReasonBox" colspan="2">
92
                    <textarea name="body" rows="5" cols="80" id="cancel-body"></textarea>
142
                            <textarea name="body" rows="5" cols="80" class="cancel-body"></textarea>
93
                </td>
143
                        </td>
94
            </tr>
144
                    </tr>
95
            <tr >
145
                    <tr >
96
                <td colspan="2">
146
                        <td colspan="2">
97
                    <input type="submit" value="Cancel Order"/>
147
                            <input type="submit" value="Cancel Order"/>
98
                </td>
148
                        </td>
99
            </tr>
149
                    </tr>
100
        </table>
150
                </table>
101
    </form>
151
            </form>
102
</div>
152
			</div>
103
	<div id="cancel-div-limited" class="hidden">
153
        	<div id="cancel-div-limited" class="hidden">
104
    <form id="cancel-form-limited">
154
            <form id="cancel-form-limited">
105
        <table class="display">
155
                <table class="display">
106
            #foreach($item in $action.getCODCancelMatrix())
156
                    #foreach($item in $action.getCODCancelMatrix())
107
                #if($velocityCount % 2 != 0)
157
                        #if($velocityCount % 2 != 0)
108
                    <tr >
158
                            <tr >
109
                #end
159
                        #end
110
                <td>
160
                        <td>
111
                #if($item.name().equals("OUT_OF_STOCK") || $item.name().equals("COLOR_OUT_OF_STOCK") || $item.name().equals("OTHER"))
161
                        #if($item.name().equals("OUT_OF_STOCK") || $item.name().equals("COLOR_OUT_OF_STOCK") || $item.name().equals("OTHER"))
112
                    <input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()">
162
                            <input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()">
113
                #else
163
                        #else
114
                    <input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()" disabled="true"/>
164
                            <input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()" disabled="true"/>
115
				#end
165
        				#end
116
				#if($item.name().equals("OUT_OF_STOCK") || $item.name().equals("COLOR_OUT_OF_STOCK") || $item.name().equals("OTHER"))
166
        				#if($item.name().equals("OUT_OF_STOCK") || $item.name().equals("COLOR_OUT_OF_STOCK") || $item.name().equals("OTHER"))
117
					<label title="$item.getDescription()">$item.name()</label>
167
        					<label title="$item.getDescription()">$item.name()</label>
118
				#else
168
        				#else
119
					<label title="$item.getDescription()"><strike>$item.name()</strike></label>
169
        					<label title="$item.getDescription()"><strike>$item.name()</strike></label>
120
				#end
170
        				#end
121
                </td>
171
                        </td>
122
                #if($velocityCount % 2 == 0)
172
                        #if($velocityCount % 2 == 0)
123
                    </ tr>
173
                            </ tr>
124
                #end
174
                        #end
125
            #end
175
                    #end
126
            <tr >
176
                    <tr >
127
                <td id ="cancelReasonBox" colspan="2">
177
                        <td class="cancelReasonBox" colspan="2">
128
                    <textarea name="body" rows="5" cols="80" id="cancel-body"></textarea>
178
                            <textarea name="body" rows="5" cols="80" class="cancel-body"></textarea>
129
                </td>
179
                        </td>
130
            </tr>
180
                    </tr>
131
            <tr >
181
                    <tr >
132
                <td colspan="2">
182
                        <td colspan="2">
133
                    <input type="submit" value="Cancel Order"/>
183
                            <input type="submit" value="Cancel Order"/>
134
                </td>
184
                        </td>
135
            </tr>
185
                    </tr>
136
        </table>
186
                </table>
137
    </form>
187
            </form>
138
</div>
188
        </div>
139
 
-
 
140
	<div>
-
 
141
		<select id = "cancellationInitiator" name="cancellationInitiator">
-
 
142
			<option value="CUSTOMER">CUSTOMER REQUEST</option>
-
 
143
		#if($action.canViewOrderCancellation())
-
 
144
			<option value="INTERNAL">INTERNAL</option>
-
 
145
		#end
189
		#end
-
 
190
    	<div>
-
 
191
    		<select id = "cancellationInitiator" name="cancellationInitiator">
-
 
192
    			<option value="CUSTOMER">CUSTOMER REQUEST</option>
-
 
193
    		#if($action.canViewOrderCancellation())
-
 
194
    			<option value="INTERNAL">INTERNAL</option>
-
 
195
    		#end
146
		</select>
196
    		</select>
147
		<input type="button" class="display-cancel-order-popup" value="Cancel Order" id="orderCancellationButton" orderid="$order.getId()">
197
    		<input type="button" class="$cancellationClass" value="Cancel Order" id="$cancellationButtonId" orderid="$order.getId()">
148
	</div>
198
    	</div>
149
	#end
199
	#end
-
 
200
	
150
    <label class="heading">Order details</label><br />
201
    <label class="heading">Order details</label><br />
151
    <div id="orderTopLeft">
202
    <div id="orderTopLeft">
152
		<span>Status Description :
203
		<span>Status Description :
153
            $action.getOrderStatusDescription($order)
204
            $action.getOrderStatusDescription($order)
154
        </span><br/>
205
        </span><br/>