if (!CVUtility.isModuleVisible("PurchaseOrder", userID, this.dataSource))
throw new AuthorizationFailedException("PurchaseOrder- updatePurchaseOrder");
try {
InitialContext ic = CVUtility.getInitialContext();
PurchaseOrderLocalHome home = (PurchaseOrderLocalHome) ic.lookup("local/PurchaseOrder");
PurchaseOrderLocal invoice = home.findByPrimaryKey(new PurchaseOrderPK(poDetail
.getPurchaseOrderId(), this.dataSource));
invoice.setDataSource(this.dataSource);
invoice.setPurchaseOrderVO(poDetail, userID);
} catch (Exception e) {
logger.error("[updatePurchaseOrder]: Exception", e);