Subversion Repositories SmartDukaan

Rev

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

Rev 29978 Rev 30017
Line 35... Line 35...
35
</section>
35
</section>
36
<script type="text/javascript">
36
<script type="text/javascript">
37
    $(document).ready(function () {
37
    $(document).ready(function () {
38
        getEntityAheadOptions($("#entityData"), function (selectedEntity) {
38
        getEntityAheadOptions($("#entityData"), function (selectedEntity) {
39
            itemCatalogId = selectedEntity.catalogId_i;
39
            itemCatalogId = selectedEntity.catalogId_i;
-
 
40
            itemTitle = selectedEntity.title_s
40
        });
41
        });
41
        $("#model-to-notify").click(function () {
42
        $("#model-to-notify").click(function () {
-
 
43
            colorNumberHandler(itemCatalogId, 0, 'Notify for ' + itemTitle, 'Notify', function (itemQuantity, callback) {
42
            getColorsForItems(itemCatalogId,)
44
                let poItemWarehouseModel = {
-
 
45
                    warehouseId: $("#warehouseId").val(),
-
 
46
                    itemIdQuantityList: itemQuantity
-
 
47
                }
-
 
48
                doPostAjaxRequestWithJsonHandler(`${context}/indent/send-po-notification`, JSON.stringify(poItemWarehouseModel), function (response) {
-
 
49
                    if (response) {
-
 
50
                        alert("Notified Successfully");
-
 
51
                    }
-
 
52
                    callback();
-
 
53
                })
-
 
54
            })
43
        });
55
        });
44
    });
56
    });
45
</script>
57
</script>