private BTag createDay(AccountReport12 report) {
        BTag tag = new BTag();
        tag.start = new Saldo();
        tag.end = new Saldo();
        tag.starttype = 'F';
        tag.endtype = 'F';

        ////////////////////////////////////////////////////////////////
        // Start- un End-Saldo ermitteln
        final long day = 24 * 60 * 60 * 1000L;
        for (CashBalance3 bal : report.getBal()) {
            BalanceType12Code code = bal.getTp().getCdOrPrtry().getCd();

            // Schluss-Saldo vom Vortag
            if (code == BalanceType12Code.PRCD) {
                tag.start.value = new Value(this.checkDebit(bal.getAmt().getValue(), bal.getCdtDbtInd()));
                tag.start.value.setCurr(bal.getAmt().getCcy());

                //  Wir erhoehen noch das Datum um einen Tag, damit aus dem
                // Schlusssaldo des Vortages der Startsaldo des aktuellen Tages wird.
                tag.start.timestamp = new Date(SepaUtil.toDate(bal.getDt().getDt()).getTime() + day);
            }

            // End-Saldo
            else if (code == BalanceType12Code.CLBD) {
                tag.end.value = new Value(this.checkDebit(bal.getAmt().getValue(), bal.getCdtDbtInd()));
                tag.end.value.setCurr(bal.getAmt().getCcy());
                tag.end.timestamp = SepaUtil.toDate(bal.getDt().getDt());
            }
        }
        //
        ////////////////////////////////////////////////////////////////

        ////////////////////////////////////////////////////////////////
        // Das eigene Konto ermitteln
        CashAccount25 acc = report.getAcct();
        tag.my = new Konto();
        tag.my.iban = trim(acc.getId().getIBAN());
        tag.my.curr = trim(acc.getCcy());

        BranchAndFinancialInstitutionIdentification5 bank = acc.getSvcr();
        if (bank != null && bank.getFinInstnId() != null)
            tag.my.bic = trim(bank.getFinInstnId().getBICFI());
        ////////////////////////////////////////////////////////////////

        return tag;
    }
private BTag createDay ( AccountReport12 report ) { BTag tag = new BTag ( ) ; tag . start = new Saldo ( ) ; tag . end = new Saldo ( ) ; tag . starttype = 'F' ; tag . endtype = 'F' ; final long day = 24 * 60 * 60 * 1000L ; for ( CashBalance3 bal : report . getBal ( ) ) { BalanceType12Code code = bal . getTp ( ) . getCdOrPrtry ( ) . getCd ( ) ; if ( code == BalanceType12Code . PRCD ) { tag . start . value = new Value ( this . checkDebit ( bal . getAmt ( ) . getValue ( ) , bal . getCdtDbtInd ( ) ) ) ; tag . start . value . setCurr ( bal . getAmt ( ) . getCcy ( ) ) ; tag . start . timestamp = new Date ( SepaUtil . toDate ( bal . getDt ( ) . getDt ( ) ) . getTime ( ) + day ) ; } else if ( code == BalanceType12Code . CLBD ) { tag . end . value = new Value ( this . checkDebit ( bal . getAmt ( ) . getValue ( ) , bal . getCdtDbtInd ( ) ) ) ; tag . end . value . setCurr ( bal . getAmt ( ) . getCcy ( ) ) ; tag . end . timestamp = SepaUtil . toDate ( bal . getDt ( ) . getDt ( ) ) ; } } CashAccount25 acc = report . getAcct ( ) ; tag . my = new Konto ( ) ; tag . my . iban = trim ( acc . getId ( ) . getIBAN ( ) ) ; tag . my . curr = trim ( acc . getCcy ( ) ) ; BranchAndFinancialInstitutionIdentification5 bank = acc . getSvcr ( ) ; if ( bank != null && bank . getFinInstnId ( ) != null ) tag . my . bic = trim ( bank . getFinInstnId ( ) . getBICFI ( ) ) ; return tag ; }
Erzeugt einen neuen Buchungstag.

@param report der Report.
@return der erzeugte Buchungstag.