Subversion Repositories SmartDukaan

Rev

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

Rev 35806 Rev 35884
Line 79... Line 79...
79
        </table>
79
        </table>
80
        <button class="btn btn-sm btn-default addSerialCorrectionRow">+ Add Row</button>
80
        <button class="btn btn-sm btn-default addSerialCorrectionRow">+ Add Row</button>
81
 
81
 
82
        <hr/>
82
        <hr/>
83
 
83
 
84
        <h5>Non-Serialized Quantity Corrections</h5>
84
        <h5>Item Corrections (Move IMEI or Quantity)</h5>
85
        <p class="text-muted">For non-serialized items: move quantity from one item to another.</p>
85
        <p class="text-muted">Move an IMEI or quantity from one item to another. For serialized items, enter the IMEI.</p>
86
        <table class="table table-bordered table-condensed" id="qty-corrections-table">
86
        <table class="table table-bordered table-condensed" id="qty-corrections-table">
87
            <thead>
87
            <thead>
88
                <tr>
88
                <tr>
89
                    <th>From Item</th>
89
                    <th>From Item</th>
90
                    <th>To Item</th>
90
                    <th>To Item</th>
-
 
91
                    <th>IMEI / Serial</th>
91
                    <th>Quantity</th>
92
                    <th>Qty</th>
92
                    <th></th>
93
                    <th></th>
93
                </tr>
94
                </tr>
94
            </thead>
95
            </thead>
95
            <tbody>
96
            <tbody>
96
                <tr class="qty-correction-row">
97
                <tr class="qty-correction-row">
97
                    <td>
98
                    <td>
98
                        <input type="text" class="form-control typeaheaditem qty-old-item" autocomplete="off" placeholder="Search old item..." />
99
                        <input type="text" class="form-control typeaheaditem qty-old-item" autocomplete="off" placeholder="Search from item..." />
99
                        <input type="hidden" class="qty-old-itemid" />
100
                        <input type="hidden" class="qty-old-itemid" />
100
                    </td>
101
                    </td>
101
                    <td>
102
                    <td>
102
                        <input type="text" class="form-control typeaheaditem qty-new-item" autocomplete="off" placeholder="Search new item..." />
103
                        <input type="text" class="form-control typeaheaditem qty-new-item" autocomplete="off" placeholder="Search to item..." />
103
                        <input type="hidden" class="qty-new-itemid" />
104
                        <input type="hidden" class="qty-new-itemid" />
104
                    </td>
105
                    </td>
-
 
106
                    <td><input type="text" class="form-control qty-serial" placeholder="IMEI (for serialized)" /></td>
105
                    <td><input type="number" class="form-control qty-correction-val" placeholder="Qty" min="1" /></td>
107
                    <td><input type="number" class="form-control qty-correction-val" placeholder="Qty" min="1" /></td>
106
                    <td><button class="btn btn-sm btn-danger removeQtyCorrectionRow">Remove</button></td>
108
                    <td><button class="btn btn-sm btn-danger removeQtyCorrectionRow">Remove</button></td>
107
                </tr>
109
                </tr>
108
            </tbody>
110
            </tbody>
109
        </table>
111
        </table>
Line 150... Line 152...
150
    });
152
    });
151
 
153
 
152
    // Add qty correction row
154
    // Add qty correction row
153
    $(document).on('click', '.addQtyCorrectionRow', function() {
155
    $(document).on('click', '.addQtyCorrectionRow', function() {
154
        var $row = $('<tr class="qty-correction-row">' +
156
        var $row = $('<tr class="qty-correction-row">' +
155
            '<td><input type="text" class="form-control typeaheaditem qty-old-item" autocomplete="off" placeholder="Search old item..." /><input type="hidden" class="qty-old-itemid" /></td>' +
157
            '<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>' +
156
            '<td><input type="text" class="form-control typeaheaditem qty-new-item" autocomplete="off" placeholder="Search new item..." /><input type="hidden" class="qty-new-itemid" /></td>' +
158
            '<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>' +
-
 
159
            '<td><input type="text" class="form-control qty-serial" placeholder="IMEI (for serialized)" /></td>' +
157
            '<td><input type="number" class="form-control qty-correction-val" placeholder="Qty" min="1" /></td>' +
160
            '<td><input type="number" class="form-control qty-correction-val" placeholder="Qty" min="1" /></td>' +
158
            '<td><button class="btn btn-sm btn-danger removeQtyCorrectionRow">Remove</button></td>' +
161
            '<td><button class="btn btn-sm btn-danger removeQtyCorrectionRow">Remove</button></td>' +
159
            '</tr>');
162
            '</tr>');
160
        $('#qty-corrections-table tbody').append($row);
163
        $('#qty-corrections-table tbody').append($row);
161
        initQtyTypeahead($row);
164
        initQtyTypeahead($row);