Subversion Repositories SmartDukaan

Rev

Rev 31274 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
22245 ashik.ali 1
<style>
34204 tejus.loha 2
    .pointer {
3
        cursor: pointer;
4
    }
28055 tejbeer 5
 
34204 tejus.loha 6
    .modal-content {
7
        background: white;
8
    }
28055 tejbeer 9
 
34204 tejus.loha 10
    .modelHeaderCustom {
11
        font-size: 14px;
12
        font-weight: bold;
13
    }
28055 tejbeer 14
 
34204 tejus.loha 15
    .border-highlight {
16
        border: 3px solid red;
17
    }
28055 tejbeer 18
 
34204 tejus.loha 19
    hr {
20
        background-color: #dddddd;
21
        border: none;
22
        height: 1px;
23
        background: #dddddd;
24
    }
28055 tejbeer 25
 
34204 tejus.loha 26
    .control-label {
27
        margin-top: 0;
28
        margin-bottom: 0;
29
        padding-top: 7px;
30
        font-weight: bold;
31
        font-size: 14px;
32
    }
28055 tejbeer 33
 
34204 tejus.loha 34
    .right {
35
        float: right;
36
    }
28055 tejbeer 37
 
34204 tejus.loha 38
    .form-control {
39
        color: black;
40
    }
28055 tejbeer 41
 
34204 tejus.loha 42
    .bold-details {
43
        text-transform: capitalize;
44
        font-weight: 600;
45
        color: #212121;
46
    }
28055 tejbeer 47
 
34204 tejus.loha 48
    .normal-details {
49
        font-weight: 400;
50
        text-transform: capitalize;
51
        color: #797979;
52
    }
53
 
54
    }
22245 ashik.ali 55
</style>
28055 tejbeer 56
#set($options="{ weekday: 'long', year: 'numeric', month: 'long', day:
57
'numeric', hour: 'numeric', minute:'numeric' }")
22245 ashik.ali 58
<section class="wrapper">
34204 tejus.loha 59
    <div class="row" style="background: white; font-size: 14px;">
60
        <div class="col-lg-4" style="border-left: 1px solid #f0f0f0;">
61
            <h4>ORDER DETAILS</h4>
62
            <div class="row">
63
                <div class="col-lg-4">
64
                    <p class="bold-details">Order ID</p>
65
                </div>
66
                <div class="col-lg-6">
67
                    <p class="normal-details">#$fofoOrder.getId()
68
                        ($fofoOrderItems.size() item)</p>
69
                </div>
70
            </div>
71
            <div class="row">
72
                <div class="col-lg-4">
73
                    <p class="bold-details">Order Date</p>
74
                </div>
75
                <div class="col-lg-6">
76
                    <script>
77
                        document.getElementById('createTimestamp').appendChild(
78
                                document.createTextNode(new Date(
79
                                        '$fofoOrder.getCreateTimestamp()')
80
                                        .toLocaleString("en-US", $options)))
81
                    </script>
82
                    <p class="normal-details" id="createTimestamp"></p>
83
                </div>
84
            </div>
85
            <div class="row">
86
                <div class="col-lg-4">
87
                    <p class="bold-details">Amount Paid</p>
88
                </div>
89
                <div class="col-lg-6">
90
                    <p class="normal-details">
91
                        <span class="normal-details">&#8377; </span>$fofoOrder.getTotalAmount()
92
                    </p>
93
                </div>
94
            </div>
95
        </div>
28055 tejbeer 96
 
34204 tejus.loha 97
        <div class="col-lg-4" style="border-left: 1px solid #f0f0f0;">
98
            <h4>BILLING DETAILS</h4>
99
            <p class="bold-details">$customerBillingAddressObj.getName()</p>
100
            <p class="normal-details">$customerBillingAddress</p>
101
            #if($fofoOrder.getCustomerGstNumber() &&
102
                $fofoOrder.getCustomerGstNumber() != "")
103
                <p class="bold-details">
104
                    GST Number <span class="normal-details extra-margin">$fofoOrder.getCustomerGstNumber()</span>
105
                </p>
106
            #end
107
            <p class="bold-details">
108
                Phone <span class="normal-details extra-margin">$customerBillingAddressObj.getPhoneNumber()</span>
109
            </p>
110
        </div>
28055 tejbeer 111
 
34204 tejus.loha 112
        <div class="col-lg-4" style="border-left: 1px solid #f0f0f0;">
113
            <h4>INVOICE DETAILS</h4>
114
            <p class="bold-details">
115
                Invoice Number <span class="normal-details extra-margin">$fofoOrder.getInvoiceNumber()</span>
116
            </p>
117
            <p class="invoice_download_option">
118
                <i class="fa fa-print" aria-hidden="true"></i><a target="_blank"
119
                                                                 href="generateInvoice?orderId=$fofoOrder.getId()"
120
                                                                 class="extra-margin" style="font-size: 18px">Print
121
                Invoice</a></i>
122
            </p>
123
            <p class="invoice_send_on_whatsapp">WhatsApp No. <input type="number" id="whatsApp-invoice-number" value="$customerBillingAddressObj.getPhoneNumber()" placeholder="Enter WhatsApp number"><button class="btn-success" type="button" onclick="sendInvoiceOnWApp($fofoOrder.getId())" style="margin-left: 5px">Send</button></p>
28055 tejbeer 124
 
22245 ashik.ali 125
 
34204 tejus.loha 126
        </div>
127
 
128
    </div>
129
 
130
    <div class="row" style="font-size: 14px; color: #688a7e;">
131
        <div class="col-lg-12">
132
            <table class="table table-striped table-advance table-hover">
133
                <tbody>
134
                <tr>
135
                    <th>Item Code</th>
136
                    <th>Description</th>
137
                    <th>Unit Price</th>
138
                    <th>Quantity</th>
139
                    <th>Total Price</th>
140
                </tr>
141
                <script type="text/javascript">
142
                    fofoLineItemsMap = $fofoOrderItemIdLineItemsMap;
143
                    foiIdCustomerReturnInventoryItemsMap = $foiIdCustomerReturnInventoryItemsMap;
144
                    inventoryItemBilledQtyMap = $inventoryItemBilledQtyMap;
145
                </script>
146
                    #foreach( $fofoOrderItem in $fofoOrderItems ) #set ($total =
147
                        $fofoOrderItem.getSellingPrice() * $fofoOrderItem.getQuantity())
148
                    <tr>
149
                        <td>$fofoOrderItem.getItemId()</td>
150
                        <td>$fofoOrderItem.getBrand() $fofoOrderItem.getModelName()
28055 tejbeer 151
							$fofoOrderItem.getModelNumber() $fofoOrderItem.getColor()</td>
34204 tejus.loha 152
                        <td>$fofoOrderItem.getSellingPrice()</td>
153
                        <td>$fofoOrderItem.getQuantity()</td>
154
                        <td>$total</td> #set ($item =
155
                        $itemsMap.get($fofoOrderItem.getItemId()))
156
                        #if($item.getCategoryId()==10006) #if($fofoOrderItem.isDoa())
157
                            <td><a class="pointer" data-foi="$fofoOrderItem.getId()"
158
                                   data-itemdesc="$item.getItemDescription()"
159
                                   data-target=".bs-example-modal-sm" data-toggle="modal">Mark
160
                                DOA</a></td> #else
161
                            <td></td> #end #else #if($markDefective)
162
                            <td><a class="pointer" data-foi="$fofoOrderItem.getId()"
163
                                   data-itemdesc="$item.getItemDescription()"
164
                                   data-target=".bs-example-modal-sm" data-toggle="modal">Mark
165
                                Defective</a></td> #else
166
                            <td></td> #end #end
167
                        <td></td>
168
                    </tr>
169
                    #end
170
                </tbody>
171
            </table>
172
        </div>
173
        <!-- Small modal -->
174
        <div class="modal fade bs-example-modal-sm" tabindex="-1"
175
             role="dialog" aria-labelledby="mySmallModalLabel" id="exampleModal">
176
            <div class="modal-dialog modal-md" role="document">
177
                <div class="modal-content">
178
                    <div class="modal-header">
179
                        <p class="modal-title"></p>
180
                    </div>
181
                    <div class="modal-body"></div>
182
                    <div class="modal-footer">
183
                        <button type="button" class="return-submit btn btn-primary">Submit</button>
184
                    </div>
185
                </div>
186
            </div>
187
        </div>
188
    </div>
22245 ashik.ali 189
 
34204 tejus.loha 190
    <div class="row">
191
        #if(!$insurancePolicies.isEmpty())
192
            <div class="col-lg-8">
193
                <h4>INSURANCE DETAILS</h4>
194
                <table class="table table-striped table-advance">
195
                    <tbody>
196
                    <tr>
197
                        <th>Plan Name</th>
198
                        <th>Device Model</th>
199
                        <th>Serial Number</th>
200
                        <th>Provider Name</th>
201
                        <th>Amount</th>
202
                    </tr>
203
                        #if(!$insurancePolicies.isEmpty()) #foreach( $insurancePolicy in
204
                            $insurancePolicies )
205
                        <tr>
206
                            <td>$insurancePolicy.getPolicyPlan()</td>
207
                            <td>$insurancePolicy.getBrand() $insurancePolicy.getModelName()</td>
208
                            <td>$insurancePolicy.getSerialNumber()</td>
209
                            <td>$insurancePolicy.getInsuranceProvider().getName()</td>
210
                            <td>$insurancePolicy.getSaleAmount()</td>
211
                        </tr>
212
                        #end #end
213
                    </tbody>
214
                </table>
215
            </div>
216
        #end
28055 tejbeer 217
 
34204 tejus.loha 218
        <div class="col-lg-4 right"
219
             style="border-left: 1px solid #f0f0f0; background: white; font-size: 14px;">
220
            <h4>PAYMENT DETAILS</h4>
221
            #foreach( $paymentOptionTransaction in $paymentOptionTransactions )
222
                #set($paymentOption =
223
                    $paymentOptionIdPaymentOptionMap.get($paymentOptionTransaction.getPaymentOptionId()))
224
                <div class="row">
225
                    <div class="col-lg-3">
226
                        <p class="bold-details">$paymentOption.getName()</p>
227
                    </div>
228
                    <div class="col-lg-3">
229
                        <p class="nomal-details">&#8377;
230
                            $paymentOptionTransaction.getAmount()</p>
231
                    </div>
232
                </div>
233
            #end
234
            <hr/>
235
            <div class="row">
236
                <div class="col-lg-3">
237
                    <p class="bold-details">TOTAL</p>
238
                </div>
239
                <div class="col-lg-3">
240
                    <p class="nomal-details">$fofoOrder.getTotalAmount()</p>
241
                </div>
242
            </div>
243
        </div>
244
    </div>
22245 ashik.ali 245
 
246
</section>
28055 tejbeer 247
<script type="text/javascript"
34204 tejus.loha 248
        src="resources/js/customer-return.js?v=${version}">
249
</script>