| Line 80... |
Line 80... |
| 80 |
@UiField TextBox bestDealsText, bestDealsValue;
|
80 |
@UiField TextBox bestDealsText, bestDealsValue;
|
| 81 |
@UiField FlexTable headerAvailability, availabilityTable;
|
81 |
@UiField FlexTable headerAvailability, availabilityTable;
|
| 82 |
@UiField FlexTable headerVendorItemKey, tableVendorItemKey;
|
82 |
@UiField FlexTable headerVendorItemKey, tableVendorItemKey;
|
| 83 |
@UiField FlexTable headerVendorPrices, tableVendorPrices;
|
83 |
@UiField FlexTable headerVendorPrices, tableVendorPrices;
|
| 84 |
@UiField TextBox bestSellingRank;
|
84 |
@UiField TextBox bestSellingRank;
|
| - |
|
85 |
@UiField TextBox expectedDelay;
|
| - |
|
86 |
@UiField TextBox preferredWarehouse;
|
| 85 |
@UiField CheckBox defaultForEntity, risky;
|
87 |
@UiField CheckBox defaultForEntity, risky;
|
| 86 |
@UiField DateBox startDate;
|
88 |
@UiField DateBox startDate;
|
| 87 |
|
89 |
|
| 88 |
public ItemDetails(Item item){
|
90 |
public ItemDetails(Item item){
|
| 89 |
this();
|
91 |
this();
|
| Line 120... |
Line 122... |
| 120 |
catalogItemId.setText(item.getCatalogItemId() + "");
|
122 |
catalogItemId.setText(item.getCatalogItemId() + "");
|
| 121 |
|
123 |
|
| 122 |
mrp.setText(item.getMrp() != null ? item.getMrp()+"" : "");
|
124 |
mrp.setText(item.getMrp() != null ? item.getMrp()+"" : "");
|
| 123 |
sellingPrice.setText(item.getSellingPrice() != null ? item.getSellingPrice()+"" : "");
|
125 |
sellingPrice.setText(item.getSellingPrice() != null ? item.getSellingPrice()+"" : "");
|
| 124 |
weight.setText(item.getWeight() != null ? item.getWeight()+"" : "");
|
126 |
weight.setText(item.getWeight() != null ? item.getWeight()+"" : "");
|
| - |
|
127 |
expectedDelay.setValue(item.getExpectedDelay()+"");
|
| - |
|
128 |
preferredWarehouse.setValue(item.getPreferredWarehouse()+"");
|
| 125 |
|
129 |
|
| 126 |
startDate.setValue(new Date(item.getStartDate()));
|
130 |
startDate.setValue(new Date(item.getStartDate()));
|
| 127 |
addedOn.setText(Utils.getDisplayableDate(item.getAddedOn()));
|
131 |
addedOn.setText(Utils.getDisplayableDate(item.getAddedOn()));
|
| 128 |
retireDate.setText(Utils.getDisplayableDate(item.getRetireDate()));
|
132 |
retireDate.setText(Utils.getDisplayableDate(item.getRetireDate()));
|
| 129 |
updatedOn.setText(Utils.getDisplayableDate(item.getUpdatedOn()));
|
133 |
updatedOn.setText(Utils.getDisplayableDate(item.getUpdatedOn()));
|
| Line 544... |
Line 548... |
| 544 |
v.setMop(Double.parseDouble(tableVendorPrices.getText(row, TABLE_INDEX_PRICING_MOP)));
|
548 |
v.setMop(Double.parseDouble(tableVendorPrices.getText(row, TABLE_INDEX_PRICING_MOP)));
|
| 545 |
v.setDealerPrice(Double.parseDouble(tableVendorPrices.getText(row, TABLE_INDEX_PRICING_DP)));
|
549 |
v.setDealerPrice(Double.parseDouble(tableVendorPrices.getText(row, TABLE_INDEX_PRICING_DP)));
|
| 546 |
v.setTransferPrice(Double.parseDouble(tableVendorPrices.getText(row, TABLE_INDEX_PRICING_TP)));
|
550 |
v.setTransferPrice(Double.parseDouble(tableVendorPrices.getText(row, TABLE_INDEX_PRICING_TP)));
|
| 547 |
v.setVendorId(Long.parseLong(tableVendorPrices.getText(row, TABLE_INDEX_PRICING_VENDORID)));
|
551 |
v.setVendorId(Long.parseLong(tableVendorPrices.getText(row, TABLE_INDEX_PRICING_VENDORID)));
|
| 548 |
vendorPrices.put(v.getVendorId(), v);
|
552 |
vendorPrices.put(v.getVendorId(), v);
|
| 549 |
newItem.setMop(v.getMop());
|
- |
|
| 550 |
newItem.setDealerPrice(v.getDealerPrice());
|
- |
|
| 551 |
newItem.setTransferPrice(v.getTransferPrice());
|
- |
|
| 552 |
}
|
553 |
}
|
| 553 |
newItem.setVendorPricesMap(vendorPrices);
|
554 |
newItem.setVendorPricesMap(vendorPrices);
|
| 554 |
newItem.setItemStatusDesc(statusDesc.getText().trim());
|
555 |
newItem.setItemStatusDesc(statusDesc.getText().trim());
|
| 555 |
|
556 |
|
| 556 |
/*Create an instance of VendorPricings for each row in vendor pricing table. Set the vendor prices to the instance.
|
557 |
/*Create an instance of VendorPricings for each row in vendor pricing table. Set the vendor prices to the instance.
|