Skip to content
Permalink
Browse files

#4961 regsiter import accoutn process

#4961 Chart of Accounts Import
  • Loading branch information...
cristinamghita committed Feb 19, 2019
1 parent 8e14b40 commit 0e408faa2199e5491030a110ec2fed6bad3b3572
@@ -0,0 +1,43 @@
/**
*
*/
package de.metas.acct.impexp;

import org.compiere.model.I_I_DiscountSchema;
import org.compiere.model.I_I_ElementValue;
import org.compiere.process.AbstractImportJavaProcess;

/*
* #%L
* de.metas.acct.base
* %%
* Copyright (C) 2019 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-2.0.html>.
* #L%
*/

/**
* @author metas-dev <dev@metasfresh.com>
*
*/
public class ImportAccount extends AbstractImportJavaProcess<ImportAccount>
{

public ImportAccount()
{
super(ImportAccount.class);
}
}
@@ -29,13 +29,15 @@
import org.adempiere.ad.modelvalidator.AbstractModuleInterceptor;
import org.adempiere.ad.modelvalidator.IModelValidationEngine;
import org.adempiere.ad.security.IUserRolePermissionsDAO;
import org.adempiere.impexp.IImportProcessFactory;
import org.compiere.model.I_AD_Client;
import org.compiere.model.I_C_AcctSchema;
import org.compiere.model.I_C_ConversionType;
import org.compiere.model.I_C_Period;
import org.compiere.model.I_C_PeriodControl;
import org.compiere.model.I_GL_Distribution;
import org.compiere.model.I_GL_DistributionLine;
import org.compiere.model.I_I_ElementValue;
import org.compiere.model.I_M_Product_Acct;
import org.compiere.model.I_M_Product_Category_Acct;
import org.compiere.model.MAccount;
@@ -46,6 +48,7 @@
import de.metas.acct.api.IFactAcctListenersService;
import de.metas.acct.api.IPostingService;
import de.metas.acct.api.IProductAcctDAO;
import de.metas.acct.impexp.AccountImportProcess;
import de.metas.acct.model.I_C_VAT_Code;
import de.metas.acct.posting.IDocumentRepostingSupplierService;
import de.metas.acct.spi.impl.AllocationHdrDocumentRepostingSupplier;
@@ -90,6 +93,8 @@ protected void onAfterInit()
}

Services.registerService(IProductActivityProvider.class, Services.get(IProductAcctDAO.class));

Services.get(IImportProcessFactory.class).registerImportProcess(I_I_ElementValue.class, AccountImportProcess.class);
}

@Override

0 comments on commit 0e408fa

Please sign in to comment.
You can’t perform that action at this time.