Subversion Repositories SmartDukaan

Rev

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

Rev 4027 Rev 4105
Line 71... Line 71...
71
                </td>
71
                </td>
72
            </tr>
72
            </tr>
73
        </table>
73
        </table>
74
    </form>
74
    </form>
75
</div>
75
</div>
-
 
76
#if($action.getOrders() && ($action.canVerifyCOD() || $action.canViewFailedPayments()))
-
 
77
<h2 >Orders</h2>
76
<div id="bottom-infopane-upper">
78
<div id="bottom-infopane-upper">
-
 
79
    <table id="order-table" class="display">
-
 
80
        <thead>
-
 
81
            <tr>
-
 
82
                <th>Order Id</th>
-
 
83
                <th>Product</th>
-
 
84
                <th>Created</th>
-
 
85
                <th>Amount</th>
-
 
86
                <th>Mobile No</th>
-
 
87
                <th>Shipping Address</th>
-
 
88
                <th>Expected delivery</th>
-
 
89
                #if($ticket.getCategory().name().equals("COD_VERIFICATION"))
-
 
90
                <th></th>
-
 
91
                <th></th>
-
 
92
                #elseif($ticket.getCategory().name().equals("DELAYED_DELIVERY"))
-
 
93
                <th>Promised delivery</th>
-
 
94
                <th>Delay reason</th>
-
 
95
                #end
-
 
96
            </tr>
-
 
97
        </thead>
-
 
98
        <tbody>
-
 
99
            #foreach($order in $action.getOrders())
-
 
100
            #set($orderId = $order.getId())
-
 
101
            #set($trClass = "table-tr-odd")
-
 
102
            #if($velocityCount % 2 == 0)
-
 
103
                #set($trClass = "table-tr-even")
-
 
104
            #end
-
 
105
            <tr id="order-row-$orderId" class="$trClass">
-
 
106
                <td>
-
 
107
                    <a alt="Show Order Details" title="Show Order Details" href="/crm?email=&orderId=$orderId">
-
 
108
                        $orderId
-
 
109
                    </a>
-
 
110
                </td>
-
 
111
                <td class="truncated-text-for-order-table">$action.getProductName($order.getLineitems().get(0))</td>
-
 
112
                <td class="truncated-text-for-order-table">$action.convertDate($order.getCreated_timestamp())</td>
-
 
113
                <td>$order.getTotal_amount()</td>
-
 
114
                <td>$order.getCustomer_mobilenumber()</td>
-
 
115
                <td class="truncated-text-for-order-table">$action.getAddress($order)</td>
-
 
116
                <td class="truncated-text-for-order-table">$action.convertDate($order.getExpected_delivery_time())</td>
-
 
117
                #if($ticket.getCategory().name().equals("COD_VERIFICATION"))
-
 
118
                <td ><input type="button" value="COD verified" ticketId="$ticketId" orderId="$orderId" orderStatus="SUBMITTED_FOR_PROCESSING" class="update-order-status"/> </td>
-
 
119
                <td ><input type="button" value="Cancel order" ticketId="$ticketId" orderId="$orderId" orderStatus="CANCELED" class="update-order-status"/> </td>
-
 
120
                #elseif($ticket.getCategory().name().equals("DELAYED_DELIVERY"))
-
 
121
                <td class="truncated-text-for-order-table">$action.convertDate($order.getPromised_delivery_time())</td>
-
 
122
                <td class="truncated-text-for-order-table">$order.getDelayReason().name()</td>
-
 
123
                #end
-
 
124
            </tr>
-
 
125
            #end
-
 
126
        </tbody>
-
 
127
    </table>
-
 
128
</div>
-
 
129
#end
-
 
130
<br />
-
 
131
<div id="bottom-infopane-middle">
77
    <form id="update-ticket-form" ticketId="$ticketId" _method="put" method="post" action="">
132
    <form id="update-ticket-form" ticketId="$ticketId" _method="put" method="post" action="">
78
        <table>
133
        <table>
79
            <colgroup>
134
            <colgroup>
80
                <col width="200px"/>
135
                <col width="200px"/>
81
                <col width="250px"/>
136
                <col width="250px"/>
Line 231... Line 286...
231
                <td ><input type="hidden" name="userId" value="$ticket.getCustomerId()"/></td>
286
                <td ><input type="hidden" name="userId" value="$ticket.getCustomerId()"/></td>
232
            </tr>
287
            </tr>
233
        </table>
288
        </table>
234
    </form>
289
    </form>
235
</div>
290
</div>
236
#if($action.getOrders() && ($action.canVerifyCOD() || $action.canViewFailedPayments()))
-
 
237
<h2 >Orders</h2>
-
 
238
<div id="bottom-infopane-middle">
-
 
239
    <table id="order-table" class="display">
-
 
240
        <thead>
-
 
241
            <tr>
-
 
242
                <th>Order Id</th>
-
 
243
                <th>Product</th>
-
 
244
                <th>Created</th>
-
 
245
                <th>Amount</th>
-
 
246
                <th>Mobile No</th>
-
 
247
                <th>Shipping Address</th>
-
 
248
                <th>Expected delivery</th>
-
 
249
                #if($ticket.getCategory().name().equals("COD_VERIFICATION"))
-
 
250
                <th></th>
-
 
251
                <th></th>
-
 
252
                #elseif($ticket.getCategory().name().equals("DELAYED_DELIVERY"))
-
 
253
                <th>Promised delivery</th>
-
 
254
                <th>Delay reason</th>
-
 
255
                #end
-
 
256
            </tr>
-
 
257
        </thead>
-
 
258
        <tbody>
-
 
259
            #foreach($order in $action.getOrders())
-
 
260
            #set($orderId = $order.getId())
-
 
261
            #set($trClass = "table-tr-odd")
-
 
262
            #if($velocityCount % 2 == 0)
-
 
263
                #set($trClass = "table-tr-even")
-
 
264
            #end
-
 
265
            <tr id="order-row-$orderId" class="$trClass">
-
 
266
                <td>
-
 
267
                    <a alt="Show Order Details" title="Show Order Details" href="/crm?email=&orderId=$orderId">
-
 
268
                        $orderId
-
 
269
                    </a>
-
 
270
                </td>
-
 
271
                <td class="truncated-text-for-order-table">$action.getProductName($order.getLineitems().get(0))</td>
-
 
272
                <td class="truncated-text-for-order-table">$action.convertDate($order.getCreated_timestamp())</td>
-
 
273
                <td>$order.getTotal_amount()</td>
-
 
274
                <td>$order.getCustomer_mobilenumber()</td>
-
 
275
                <td class="truncated-text-for-order-table">$action.getAddress($order)</td>
-
 
276
                <td class="truncated-text-for-order-table">$action.convertDate($order.getExpected_delivery_time())</td>
-
 
277
                #if($ticket.getCategory().name().equals("COD_VERIFICATION"))
-
 
278
                <td ><input type="button" value="COD verified" ticketId="$ticketId" orderId="$orderId" orderStatus="SUBMITTED_FOR_PROCESSING" class="update-order-status"/> </td>
-
 
279
                <td ><input type="button" value="Cancel order" ticketId="$ticketId" orderId="$orderId" orderStatus="CANCELED" class="update-order-status"/> </td>
-
 
280
                #elseif($ticket.getCategory().name().equals("DELAYED_DELIVERY"))
-
 
281
                <td class="truncated-text-for-order-table">$action.convertDate($order.getPromised_delivery_time())</td>
-
 
282
                <td class="truncated-text-for-order-table">$order.getDelayReason().name()</td>
-
 
283
                #end
-
 
284
            </tr>
-
 
285
            #end
-
 
286
        </tbody>
-
 
287
    </table>
-
 
288
</div>
-
 
289
#end
-
 
290
<br />
291
<br />
291
<h2 >Activities</h2>
292
<h2 >Activities</h2>
292
<div id="bottom-infopane-lower">
293
<div id="bottom-infopane-lower">
293
    <table id="activity-table" class="display">
294
    <table id="activity-table" class="display">
294
        <thead >
295
        <thead >