Dms oDms = getSession().getDms();
Document rcpt = oDms.getDocument(sRecipient);
String sTaxPayerId = rcpt.type().name().equals("TaxPayer") ? sRecipient : getSessionAttribute("taxpayer_docid");
if (sService.equals("INVOICES")) {
disconnect();
DepositToZespedBridge oDzb = new DepositToZespedBridge(CaptureService.INVOICES, lDepositId, getSessionAttribute("user_uuid"), sFlavor, sTaxPayerId, sBiller, sRecipient);
oDzb.start();
Log.out.debug("Done attaching sides");
} else {
TaxPayer txpy = new TaxPayer(getSession().getDms(), sTaxPayerId);
BillNote bill = txpy.billnotes(getSession()).forConcept(getSession(), sConcept, sEmployee);
Ticket tckt = bill.createTicket(getSession(), new AccountingAccount(getSession(), sAccount));
disconnect();
DepositToZespedBridge oDzb = new DepositToZespedBridge(CaptureService.BILLNOTES, lDepositId, Long.parseLong(tckt.getId()));
oDzb.start();
Log.out.debug("Done attaching sides");
FlashScope oFscope = FlashScope.getCurrent(getContext().getRequest(), true);
oFscope.put("ticket_docid", tckt.id());
}
new CreditBurner(getSessionAttribute("user_uuid"),