Subversion Repositories SmartDukaan

Rev

Rev 36136 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36136 Rev 36206
Line 103... Line 103...
103
                    </td>
103
                    </td>
104
                    <td>
104
                    <td>
105
                        <input type="text" class="form-control typeaheaditem qty-new-item" autocomplete="off" placeholder="Search to item..." />
105
                        <input type="text" class="form-control typeaheaditem qty-new-item" autocomplete="off" placeholder="Search to item..." />
106
                        <input type="hidden" class="qty-new-itemid" />
106
                        <input type="hidden" class="qty-new-itemid" />
107
                    </td>
107
                    </td>
108
                    <td><input type="text" class="form-control qty-serial" placeholder="IMEI (for serialized)" /></td>
108
                    <td><input type="text" class="form-control qty-serial" placeholder="IMEI(s) space-separated" /></td>
109
                    <td><input type="number" class="form-control qty-correction-val" placeholder="Qty" min="1" /></td>
109
                    <td><input type="number" class="form-control qty-correction-val" placeholder="Qty" min="1" /></td>
110
                    <td><button class="btn btn-sm btn-danger removeQtyCorrectionRow">Remove</button></td>
110
                    <td><button class="btn btn-sm btn-danger removeQtyCorrectionRow">Remove</button></td>
111
                </tr>
111
                </tr>
112
            </tbody>
112
            </tbody>
113
        </table>
113
        </table>
Line 157... Line 157...
157
    // Add qty correction row
157
    // Add qty correction row
158
    $(document).on('click', '.addQtyCorrectionRow', function() {
158
    $(document).on('click', '.addQtyCorrectionRow', function() {
159
        var $row = $('<tr class="qty-correction-row">' +
159
        var $row = $('<tr class="qty-correction-row">' +
160
            '<td><input type="text" class="form-control typeaheaditem qty-old-item" autocomplete="off" placeholder="Search from item..." /><input type="hidden" class="qty-old-itemid" /></td>' +
160
            '<td><input type="text" class="form-control typeaheaditem qty-old-item" autocomplete="off" placeholder="Search from item..." /><input type="hidden" class="qty-old-itemid" /></td>' +
161
            '<td><input type="text" class="form-control typeaheaditem qty-new-item" autocomplete="off" placeholder="Search to item..." /><input type="hidden" class="qty-new-itemid" /></td>' +
161
            '<td><input type="text" class="form-control typeaheaditem qty-new-item" autocomplete="off" placeholder="Search to item..." /><input type="hidden" class="qty-new-itemid" /></td>' +
162
            '<td><input type="text" class="form-control qty-serial" placeholder="IMEI (for serialized)" /></td>' +
162
            '<td><input type="text" class="form-control qty-serial" placeholder="IMEI(s) space-separated" /></td>' +
163
            '<td><input type="number" class="form-control qty-correction-val" placeholder="Qty" min="1" /></td>' +
163
            '<td><input type="number" class="form-control qty-correction-val" placeholder="Qty" min="1" /></td>' +
164
            '<td><button class="btn btn-sm btn-danger removeQtyCorrectionRow">Remove</button></td>' +
164
            '<td><button class="btn btn-sm btn-danger removeQtyCorrectionRow">Remove</button></td>' +
165
            '</tr>');
165
            '</tr>');
166
        $('#qty-corrections-table tbody').append($row);
166
        $('#qty-corrections-table tbody').append($row);
167
        initQtyTypeahead($row);
167
        initQtyTypeahead($row);