TaxPayer oTxpr = new TaxPayer(getSession().getDms(), getTaxPayer().getId());
String sFormerTemporaryName = oTxpr.getBusinessName();
bindObject(getTaxPayer(), oTxpr);
oTxpr.setRequiresActivation(false);
oTxpr.save(getSession());
Volume oVol = oTxpr.getVolume(getSession());
if (oVol==null) {
Log.out.debug("TaxPayer has no volume assigned");
} else {
Log.out.debug("TaxPayer volume is "+oVol.name());
if (sFormerTemporaryName.equalsIgnoreCase(oVol.name())) {
oVol.setDescription(oTxpr.getBusinessName());
oVol.save();
}
}
disconnect();
setSessionAttribute("businessname", getTaxPayer().getBusinessName());
oRes = new RedirectResolution(CaptureInvoice.class);