| Line 47... |
Line 47... |
| 47 |
|
47 |
|
| 48 |
private static boolean entityIdMandatory = Utils.isEntityIdMandatory();
|
48 |
private static boolean entityIdMandatory = Utils.isEntityIdMandatory();
|
| 49 |
|
49 |
|
| 50 |
@UiField TextBox productGroup, catalogItemId;
|
50 |
@UiField TextBox productGroup, catalogItemId;
|
| 51 |
@UiField TextBox brand, modelNumber, modelName, color, comments;
|
51 |
@UiField TextBox brand, modelNumber, modelName, color, comments;
|
| 52 |
@UiField TextBox mrp, sellingPrice, weight, bestDealText, bestDealValue, bestSellingRank,bestDealsDetailsText,bestDealsDetailsLink, minStockLevel, numOfDaysStock;
|
52 |
@UiField TextBox mrp, sellingPrice, weight, bestDealText, bestDealValue, bestSellingRank,bestDealsDetailsText,bestDealsDetailsLink, minStockLevel, numOfDaysStock, freebieItemId;
|
| 53 |
@UiField DateBox startDate, retireDate, comingSoonStartDate, expectedArrivalDate;
|
53 |
@UiField DateBox startDate, retireDate, comingSoonStartDate, expectedArrivalDate;
|
| 54 |
@UiField Button addButton, cancelButton, comingSoonButton;
|
54 |
@UiField Button addButton, cancelButton, comingSoonButton;
|
| 55 |
@UiField CheckBox defaultForEntity, risky, itemType, hasItemNo, clearance, showSellingPrice;
|
55 |
@UiField CheckBox defaultForEntity, risky, itemType, hasItemNo, clearance, showSellingPrice;
|
| 56 |
@UiField FlexTable headerVendor, vendorTable;
|
56 |
@UiField FlexTable headerVendor, vendorTable;
|
| 57 |
@UiField FlexTable headerVendorM, vendorTableM;
|
57 |
@UiField FlexTable headerVendorM, vendorTableM;
|
| Line 413... |
Line 413... |
| 413 |
item.setNumOfDaysStock(0);
|
413 |
item.setNumOfDaysStock(0);
|
| 414 |
Window.alert("Invalid min Stock Level. Setting it to zero(0)");
|
414 |
Window.alert("Invalid min Stock Level. Setting it to zero(0)");
|
| 415 |
return;
|
415 |
return;
|
| 416 |
}
|
416 |
}
|
| 417 |
|
417 |
|
| - |
|
418 |
try {
|
| - |
|
419 |
if(!freebieItemId.getText().trim().equals("")) {
|
| - |
|
420 |
long freeItemId = Long.parseLong(freebieItemId.getText().trim());
|
| - |
|
421 |
if(freeItemId < 0) {
|
| - |
|
422 |
throw new NumberFormatException("Negative value of freebieItemId ");
|
| - |
|
423 |
}
|
| - |
|
424 |
item.setFreebieItemId(new Long(freeItemId));
|
| - |
|
425 |
}
|
| - |
|
426 |
} catch(NumberFormatException ex) {
|
| - |
|
427 |
Window.alert("Invalid freebie ItemId");
|
| - |
|
428 |
return;
|
| - |
|
429 |
}
|
| - |
|
430 |
|
| 418 |
item.setDefaultForEntity(defaultForEntity.getValue());
|
431 |
item.setDefaultForEntity(defaultForEntity.getValue());
|
| 419 |
item.setRisky(risky.getValue());
|
432 |
item.setRisky(risky.getValue());
|
| 420 |
item.setHasItemNo(hasItemNo.getValue());
|
433 |
item.setHasItemNo(hasItemNo.getValue());
|
| 421 |
item.setItemType(itemType.getValue());
|
434 |
item.setItemType(itemType.getValue());
|
| 422 |
item.setClearance(clearance.getValue());
|
435 |
item.setClearance(clearance.getValue());
|