oAacc.setActive(getParam("accountingAccount.active","1").equals("1"));
} else {
Dms oDms = getSession().getDms();
TaxPayer oTxpr = new TaxPayer(getSession().getDms(), getParam("taxPayer"));
Document oDoca = oDms.newDocument(oDms.getDocumentType("AccountingAccount"), oTxpr.accounts(getSession()).getDocument());
oDoca.save("");
oAacc = new AccountingAccount(oDoca);
oAacc.setCode(getParam("accountingAccount.code"));
oAacc.setDescription(getParam("accountingAccount.description"));
oAacc.setActive(getParam("accountingAccount.active","1").equals("1"));
}