Rev 4844 | Rev 5890 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#set($messages = $action.getActionErrors())#if($messages && $messages.size() != 0)#foreach($message in $messages)$message <br/>#end#else#set($order = $action.getOrder())#if($action.canEditOrderAddress())<a class="change-shipment-address">Change shipment address</a><div id="addresses"><form class="change-address"><table >#foreach($address in $action.getAddresses())<tr ><td ><input type="radio" id="address" name="addressId" value="$address.getId()"/></td><td >#if($address.getName())<b>$address.getName()</b><br />#end#if($address.getLine1())<label>$address.getLine1() </label><br />#end#if($address.getLine2() != "")<label>$address.getLine2()</label><br />#end#if($address.getCity())<label>$address.getCity()</label><br />#end#if($address.getState())<label>$address.getState()</label><br />#end#if($address.getPin())<label>Pin: $address.getPin()</label>#end</p>#if($address.getPhone())<b>Phone: $address.getPhone() </b>#end</td></tr><tr><td ><input type="submit" value="Change Address"/></td></tr>#end</table></form></div>#end#set($ticketId = $action.getCodTicketId())#if($ticketId)<br /><a href="/crm?email=&ticketId=$ticketId">COD verification ticket</a><br />#end<br />#if($action.canOrderBeCancelled())<div id="cancel-div" class="hidden"><form id="cancel-form"><table class="display">#foreach($item in $action.getCODCancelMatrix())#if($velocityCount % 2 != 0)<tr >#end<td>#if($item.name().equals("INVALID_CONTACT_DETAILS"))<input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()" checked />#else<input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()" />#end<label title="$item.getDescription()">$item.name()</label></td>#if($velocityCount % 2 == 0)</ tr>#end#end<tr ><td id ="cancelReasonBox" colspan="2"><textarea name="body" rows="5" cols="80" id="cancel-body"></textarea></td></tr><tr ><td colspan="2"><input type="submit" value="Cancel Order"/></td></tr></table></form></div><div><select id = "cancellationInitiator" name="cancellationInitiator"><option value="CUSTOMER">CUSTOMER REQUEST</option>#if($action.canViewOrderCancellation())<option value="INTERNAL">INTERNAL</option>#end</select><input type="button" class="display-cancel-order-popup" value="Cancel Order" id="orderCancellationButton" orderid="$order.getId()"></div>#end<label class="heading">Order details</label><br /><div id="orderTopLeft"><span>Status Description :$action.getOrderStatusDescription($order)</span><br/><span>Invoice No : #if($order.getInvoice_number()) $order.getInvoice_number() #end</span><br/><span>Airway Bill No : #if($order.getAirwaybill_no()) $order.getAirwaybill_no() #end</span><br/><span>Receiver : #if($order.getReceiver()) $order.getReceiver() #end</span><br/><span>Out Of Stock Time :#if($order.getOutofstock_timestamp() != 0) $action.convertDate($order.getOutofstock_timestamp())#end</span><br/></div><div id="orderTopMiddle"><span>Accepted :#if($order.getAccepted_timestamp() != 0) $action.convertDate($order.getAccepted_timestamp())#end</span><br/><span>Billed By :#if($order.getBilled_by()) $order.getBilled_by() #end</span><br/><span>Billed :#if($order.getBilling_timestamp() != 0) $action.convertDate($order.getBilling_timestamp())#end</span><br/><span>Shipped :#if($order.getShipping_timestamp() != 0) $action.convertDate($order.getShipping_timestamp())#end</span><br/><span>Pickup :#if($order.getPickup_timestamp() != 0) $action.convertDate($order.getPickup_timestamp())#end</span><br/>#if($order.isSetRefund_timestamp())<span>Refund Time :$action.convertDate($order.getRefund_timestamp())#end</span><br/></div><div id="orderTopRight"><span>Verification timestamp :#if($order.getVerification_timestamp() != 0) $action.convertDate($order.getVerification_timestamp())#end</span><br/><span class="bold">Promised Shipping : </span>#if($order.getPromised_shipping_time() != 0) $action.convertDate($order.getPromised_shipping_time())#end<br/><span class="bold">Expected Shipping : </span>#if($order.getExpected_shipping_time() != 0) $action.convertDate($order.getExpected_shipping_time())#end<br/><span class="bold">Promised Delivery : </span>#if($order.getPromised_delivery_time() != 0) $action.convertDate($order.getPromised_delivery_time())#end<br/><span class="bold">Expected Delivery : </span>#if($order.getExpected_delivery_time() != 0) $action.convertDate($order.getExpected_delivery_time())#end<br/><span>Delivered : #if($order.getDelivery_timestamp() != 0) $action.convertDate($order.getDelivery_timestamp()) #end</span><br/></div><div id="orderMiddle"><br />#set($delayReason = "")#if($order.getDelayReason())$delayReason = $order.getDelayReason().name()#end#if($order.getRefundReason())<span class="bold">Cancellation Reason : </span><span class="info">$order.getRefundReason()</span></br>#end#if($action.canViewDelayedDeliveries())<span class="bold">Delay Reason: </span>$delayReason <br />#end#foreach($lineItem in $order.getLineitems())<span class="bold">$action.getProductName($lineItem) $lineItem.getTotal_price()($action.convertDouble($lineItem.getQuantity()), $lineItem.getUnit_price())</span><br/>#end#if($action.getAddress($order)) <span class="bold">Shipping Address: </span>$action.getAddress($order)<br/>#end<br /><br /><label class="heading">Payment details</label><br />#set($payments = $action.getPayments())#set($count = 1)#foreach($payment in $payments)<span>Payment No. $count</span><br/>#set($count = $count + 1)<div id="orderMiddleLeft">#if($payment.getDescription()) <span>Description : $payment.getDescription()</span><br/>#end#if($payment.getStatus().name()) <span>Status : $payment.getStatus().name()</span><br/>#end#if($payment.getAmount()) <span>Amount : $payment.getAmount()</span><br/>#end#if($payment.getAuthCode()) <span>AuthCode : $payment.getAuthCode()</span><br/>#end#set($payMethod = $action.getPaymentMethod($payment.getAttributes()))#if((!$order.isCod()) && $payMethod == "COD")<span>Pay Method : Prepaid</span>#elseif($payMethod)<span>Pay Method : $payMethod</span>#end</div><div id="orderMiddleMiddle">#set($gatewayName = $action.getGatewayName($payment))#if($gatewayName) <span>Gateway : $gatewayName</span><br/>#end#if($payment.getGatewayPaymentId()) <span>Gtwy Payment Id : $payment.getGatewayPaymentId()</span><br/>#end#if($payment.getGatewayTxnDate()) <span>Gtwy Txn Date : $payment.getGatewayTxnDate()</span><br/>#end#if($payment.getGatewayTxnId()) <span>Gtwy Txn Id : $payment.getGatewayTxnId()</span><br/>#end#if($payment.getGatewayTxnStatus()) <span>Gtwy Txn Status : $payment.getGatewayTxnStatus()</span>#end</div><div id="orderMiddleRight">#if($payment.getErrorCode()) <span>Error Code : $payment.getErrorCode()</span><br/>#end#if($payment.getReferenceCode()) <span>Ref Code : $payment.getReferenceCode()</span><br/>#end#if($payment.getSessionId()) <span>Session Id : $payment.getSessionId()</span><br/>#end#if($payment.getSuccessTimestamp() != 0) <span>Success Time : $action.convertDate($payment.getSuccessTimestamp())</span>#end</div>#end</div><div id="orderBottom"><br /><br /><label class="heading">Shipment updates</label><br /><table id="shipment-details"><thead ><tr ><th >Date</th><th >Time</th><th >City</th><th >Description</th></tr></thead><tbody >#foreach($shipmentUpdate in $action.getShipmentUpdates())#set($trClass = "table-tr-odd")#if($velocityCount % 2 == 0)#set($trClass = "table-tr-even")#end<tr class="$trClass"><td >$shipmentUpdate.getDate()</td><td >$shipmentUpdate.getTime()</td><td >$shipmentUpdate.getCity()</td><td >$shipmentUpdate.getDescription()</td></tr>#end</tbody></table></div>#end