Supplier supplier = coreManager.get(Supplier.class, supplierId);
Integer storeId = Integer.parseInt(properties.getProperty("curr.store.id"));
PurchasingOrder po = new PurchasingOrder();
po.setCancelDate(cancelDate);
po.setPoDate(poDate);
po.setSupplier(supplier);
po.setDeliverStoreId(storeId);
po.setRemarks(remarks);
po.setStatus(Status.NEW);
po.setPoId("temp");
try {
PurchasingOrder poResp = coreManager.save(PurchasingOrder.class, po);
poResp.setPoId(PoUtil.constructPoId(poResp.getPoDate(), poResp.getSupplier().getId(), poResp.getId()));
poResp = coreManager.save(PurchasingOrder.class, poResp);
DisplaySearchPurchasingOrder dpo = mapper.map(poResp, DisplaySearchPurchasingOrder.class);
resp = dpo;