Examples of GnucashWritableFile


Examples of biz.wolschon.fileformats.gnucash.GnucashWritableFile

     * @return the default-accout
     * @throws JAXBException
     *             if account-creation fails-
     */
    protected GnucashWritableAccount getDefaultAccount() throws JAXBException {
        GnucashWritableFile writableFile = getMyAccount().getWritableGnucashFile();
        String accountID = getMyProperties().getProperty(
                getPluginName() + SETTINGS_DEFAULTTARGETACCOUNT);
        GnucashWritableAccount account = accountID == null ? null
                : (GnucashWritableAccount) writableFile.getAccountByIDorName(
                        accountID, accountID);
        if (account == null) {
            account = writableFile.getAccountByName("Ausgleichskonto-EUR");
        }
        if (account == null) {
            account = writableFile.createWritableAccount();
            account.setName("Ausgleichskonto-EUR");
        }
        return account;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.