Subversion Repositories SmartDukaan

Rev

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

Rev 12523 Rev 18457
Line 331... Line 331...
331
            for(VendorPricings v : item.getVendorPricesMap().values()) {
331
            for(VendorPricings v : item.getVendorPricesMap().values()) {
332
                if(item.getMrp() != null && item.getMrp() < v.getMop()) {
332
                if(item.getMrp() != null && item.getMrp() < v.getMop()) {
333
                    Window.alert("MRP cannot be less than MOP. Vendor: " + Utils.getVendorDesc(v.getVendorId()));
333
                    Window.alert("MRP cannot be less than MOP. Vendor: " + Utils.getVendorDesc(v.getVendorId()));
334
                    return false;
334
                    return false;
335
                }
335
                }
336
                if(v.getTransferPrice() > v.getMop()) {
336
//                if(v.getTransferPrice() > v.getMop()) {
337
                    Window.alert("Transfer Price cannot be more than MOP. Vendor: " + Utils.getVendorDesc(v.getVendorId()));
337
//                    Window.alert("Transfer Price cannot be more than MOP. Vendor: " + Utils.getVendorDesc(v.getVendorId()));
338
                    return false;
338
//                    return false;
339
                }
339
//                }
340
            }
340
            }
341
        }
341
        }
342
        if(item.getVendorKeysMap() != null && !item.getVendorKeysMap().isEmpty()) {
342
        if(item.getVendorKeysMap() != null && !item.getVendorKeysMap().isEmpty()) {
343
            for(VendorItemMapping v : item.getVendorKeysMap().values()) {
343
            for(VendorItemMapping v : item.getVendorKeysMap().values()) {
344
                if(v.getItemKey() == null || v.getItemKey().isEmpty()) {
344
                if(v.getItemKey() == null || v.getItemKey().isEmpty()) {