| Line 372... |
Line 372... |
| 372 |
tVendorPricing.setVendorId(v.getVendorId());
|
372 |
tVendorPricing.setVendorId(v.getVendorId());
|
| 373 |
tVendorPricing.setItemId(item.getId());
|
373 |
tVendorPricing.setItemId(item.getId());
|
| 374 |
tVendorPricing.setMop(v.getMop());
|
374 |
tVendorPricing.setMop(v.getMop());
|
| 375 |
tVendorPricing.setTransferPrice(v.getTransferPrice());
|
375 |
tVendorPricing.setTransferPrice(v.getTransferPrice());
|
| 376 |
tVendorPricing.setDealerPrice(v.getDealerPrice());
|
376 |
tVendorPricing.setDealerPrice(v.getDealerPrice());
|
| - |
|
377 |
tVendorPricing.setNlc(v.getNlc());
|
| 377 |
inventoryClient.addVendorItemPricing(tVendorPricing);
|
378 |
inventoryClient.addVendorItemPricing(tVendorPricing);
|
| 378 |
logger.info("Updated VendorItemPricing: " + tVendorPricing.toString());
|
379 |
logger.info("Updated VendorItemPricing: " + tVendorPricing.toString());
|
| 379 |
}
|
380 |
}
|
| 380 |
}
|
381 |
}
|
| 381 |
|
382 |
|
| Line 532... |
Line 533... |
| 532 |
tVendorPricing = new in.shop2020.model.v1.inventory.VendorItemPricing();
|
533 |
tVendorPricing = new in.shop2020.model.v1.inventory.VendorItemPricing();
|
| 533 |
tVendorPricing.setVendorId(v.getVendorId());
|
534 |
tVendorPricing.setVendorId(v.getVendorId());
|
| 534 |
tVendorPricing.setItemId(itemId);
|
535 |
tVendorPricing.setItemId(itemId);
|
| 535 |
tVendorPricing.setMop(v.getMop());
|
536 |
tVendorPricing.setMop(v.getMop());
|
| 536 |
tVendorPricing.setTransferPrice(v.getTransferPrice());
|
537 |
tVendorPricing.setTransferPrice(v.getTransferPrice());
|
| - |
|
538 |
tVendorPricing.setNlc(v.getNlc());
|
| 537 |
tVendorPricing.setDealerPrice(v.getDealerPrice());
|
539 |
tVendorPricing.setDealerPrice(v.getDealerPrice());
|
| 538 |
inventoryClient.addVendorItemPricing(tVendorPricing);
|
540 |
inventoryClient.addVendorItemPricing(tVendorPricing);
|
| 539 |
}
|
541 |
}
|
| 540 |
}
|
542 |
}
|
| 541 |
|
543 |
|
| Line 831... |
Line 833... |
| 831 |
tVendorPricing = new in.shop2020.model.v1.inventory.VendorItemPricing();
|
833 |
tVendorPricing = new in.shop2020.model.v1.inventory.VendorItemPricing();
|
| 832 |
tVendorPricing.setVendorId(v.getVendorId());
|
834 |
tVendorPricing.setVendorId(v.getVendorId());
|
| 833 |
tVendorPricing.setItemId(it.getId());
|
835 |
tVendorPricing.setItemId(it.getId());
|
| 834 |
tVendorPricing.setMop(v.getMop());
|
836 |
tVendorPricing.setMop(v.getMop());
|
| 835 |
tVendorPricing.setTransferPrice(v.getTransferPrice());
|
837 |
tVendorPricing.setTransferPrice(v.getTransferPrice());
|
| - |
|
838 |
tVendorPricing.setNlc(v.getNlc());
|
| 836 |
tVendorPricing.setDealerPrice(v.getDealerPrice());
|
839 |
tVendorPricing.setDealerPrice(v.getDealerPrice());
|
| 837 |
inventoryClient.addVendorItemPricing(tVendorPricing);
|
840 |
inventoryClient.addVendorItemPricing(tVendorPricing);
|
| 838 |
logger.info("VendorItemPricing updated. " + tVendorPricing.toString());
|
841 |
logger.info("VendorItemPricing updated. " + tVendorPricing.toString());
|
| 839 |
sb.append("[VId:" + v.getVendorId() + ",MOP=" + v.getMop() + ",TP=" + v.getTransferPrice() + ",DP=" + v.getDealerPrice() + "], ");
|
842 |
sb.append("[VId:" + v.getVendorId() + ",MOP=" + v.getMop() + ",TP=" + v.getTransferPrice() + ",NLC= " +v.getNlc() + ",DP=" + v.getDealerPrice() + "], ");
|
| 840 |
}
|
843 |
}
|
| 841 |
}
|
844 |
}
|
| 842 |
|
845 |
|
| 843 |
Map<String, VendorItemMapping> vendorMappings = it.getVendorKeysMap();
|
846 |
Map<String, VendorItemMapping> vendorMappings = it.getVendorKeysMap();
|
| 844 |
if(vendorMappings != null && !vendorMappings.isEmpty()) {
|
847 |
if(vendorMappings != null && !vendorMappings.isEmpty()) {
|
| Line 953... |
Line 956... |
| 953 |
vPricings = new VendorPricings();
|
956 |
vPricings = new VendorPricings();
|
| 954 |
vPricings.setVendorId(vip.getVendorId());
|
957 |
vPricings.setVendorId(vip.getVendorId());
|
| 955 |
vPricings.setMop(vip.getMop());
|
958 |
vPricings.setMop(vip.getMop());
|
| 956 |
vPricings.setDealerPrice(vip.getDealerPrice());
|
959 |
vPricings.setDealerPrice(vip.getDealerPrice());
|
| 957 |
vPricings.setTransferPrice(vip.getTransferPrice());
|
960 |
vPricings.setTransferPrice(vip.getTransferPrice());
|
| - |
|
961 |
vPricings.setNlc(vip.getNlc());
|
| 958 |
vendorPricingMap.put(vPricings.getVendorId(), vPricings);
|
962 |
vendorPricingMap.put(vPricings.getVendorId(), vPricings);
|
| 959 |
}
|
963 |
}
|
| 960 |
}
|
964 |
}
|
| 961 |
|
965 |
|
| 962 |
Map<Long, SourcePricings> sourcePricingMap = new HashMap<Long, SourcePricings>();
|
966 |
Map<Long, SourcePricings> sourcePricingMap = new HashMap<Long, SourcePricings>();
|