Subversion Repositories SmartDukaan

Rev

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

Rev 9835 Rev 9841
Line 144... Line 144...
144
    @UiField FlexTable headerVendorItemKey, tableVendorItemKey;
144
    @UiField FlexTable headerVendorItemKey, tableVendorItemKey;
145
    @UiField FlexTable headerVendorPrices, tableVendorPrices;
145
    @UiField FlexTable headerVendorPrices, tableVendorPrices;
146
    @UiField FlexTable headerSourcePrices, tableSourcePrices;
146
    @UiField FlexTable headerSourcePrices, tableSourcePrices;
147
    @UiField TextBox bestSellingRank;
147
    @UiField TextBox bestSellingRank;
148
    @UiField TextBox expectedDelay;
148
    @UiField TextBox expectedDelay;
149
    @UiField CheckBox defaultForEntity, risky, warehouseStickiness, itemType, hasItemNo, showSellingPrice;
149
    @UiField CheckBox defaultForEntity, risky, warehouseStickiness, itemType, hasItemNo, showSellingPrice, holdOverride;
150
    @UiField DateBox startDate, expectedArrivalDate, comingSoonStartDate;
150
    @UiField DateBox startDate, expectedArrivalDate, comingSoonStartDate;
151
    @UiField FlexTable headerSimilarItems, tableSimilarItems;
151
    @UiField FlexTable headerSimilarItems, tableSimilarItems;
152
    @UiField ListBox preferredVendor,preferredInsurer;
152
    @UiField ListBox preferredVendor,preferredInsurer;
153
    @UiField Button comingSoonButton;
153
    @UiField Button comingSoonButton;
154
    @UiField FlexTable headerVouchers, tableVouchers;
154
    @UiField FlexTable headerVouchers, tableVouchers;
Line 256... Line 256...
256
        warehouseStickiness.setValue(item.isWarehouseStickiness());
256
        warehouseStickiness.setValue(item.isWarehouseStickiness());
257
        
257
        
258
        hasItemNo.setValue(item.isHasItemNo());
258
        hasItemNo.setValue(item.isHasItemNo());
259
        itemType.setValue(item.isItemType());
259
        itemType.setValue(item.isItemType());
260
        showSellingPrice.setValue(item.isShowSellingPrice());
260
        showSellingPrice.setValue(item.isShowSellingPrice());
-
 
261
        holdOverride.setValue(item.isHoldOverride());
261
        
262
        
262
        startDate.setValue(new Date(item.getStartDate()));
263
        startDate.setValue(new Date(item.getStartDate()));
263
        if(item.getComingSoonStartDate() != null){
264
        if(item.getComingSoonStartDate() != null){
264
        	comingSoonStartDate.setValue(new Date(item.getComingSoonStartDate()));
265
        	comingSoonStartDate.setValue(new Date(item.getComingSoonStartDate()));
265
        }else {
266
        }else {
Line 1359... Line 1360...
1359
        } catch(NumberFormatException ex) {
1360
        } catch(NumberFormatException ex) {
1360
            Window.alert("Invalid number Of Days format");
1361
            Window.alert("Invalid number Of Days format");
1361
            return false;
1362
            return false;
1362
        }
1363
        }
1363
        newItem.setShowSellingPrice(showSellingPrice.getValue());
1364
        newItem.setShowSellingPrice(showSellingPrice.getValue());
-
 
1365
        newItem.setHoldOverride(holdOverride.getValue());
1364
        try {
1366
        try {
1365
            String expectedDelayText = expectedDelay.getText().trim();
1367
            String expectedDelayText = expectedDelay.getText().trim();
1366
            if(!expectedDelayText.equals("")){
1368
            if(!expectedDelayText.equals("")){
1367
                newItem.setExpectedDelay(Integer.parseInt(expectedDelayText));
1369
                newItem.setExpectedDelay(Integer.parseInt(expectedDelayText));
1368
            }
1370
            }
Line 1657... Line 1659...
1657
            sb.append("\n-Has Serial Number Flag");
1659
            sb.append("\n-Has Serial Number Flag");
1658
        }
1660
        }
1659
        if(item.isShowSellingPrice() != showSellingPrice.getValue()) {
1661
        if(item.isShowSellingPrice() != showSellingPrice.getValue()) {
1660
        	sb.append("\n-Coming Soon item pricing marked");
1662
        	sb.append("\n-Coming Soon item pricing marked");
1661
        }
1663
        }
-
 
1664
        if(item.isHoldOverride() != holdOverride.getValue()) {
-
 
1665
        	sb.append("\n-Hold Override is marked");
-
 
1666
        }
1662
        if(!checkParameterIfEqual(newItem.getFreebieItemId(), item.getFreebieItemId())) {
1667
        if(!checkParameterIfEqual(newItem.getFreebieItemId(), item.getFreebieItemId())) {
1663
        	optionalChangedValMap.put(OPTIONAL_FREEBIE_ITEM_ID, freebieItemId.getText().trim());
1668
        	optionalChangedValMap.put(OPTIONAL_FREEBIE_ITEM_ID, freebieItemId.getText().trim());
1664
            sb.append("\n-Freebie Item Id");
1669
            sb.append("\n-Freebie Item Id");
1665
        }
1670
        }
1666
        if(!checkParameterIfEqual(asin.getText().trim(), item.getAsin())) {
1671
        if(!checkParameterIfEqual(asin.getText().trim(), item.getAsin())) {