SAPbobsCOM.CompanyService oCompanyService = (SAPbobsCOM.CompanyService)oCompany.GetCompanyService();
SAPbobsCOM.DeductibleTaxService oDeductibleTaxService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.DeductibleTaxService);
SAPbobsCOM.DeductibleTax oDeductibleTax = oDeductibleTaxService.GetDataInterface(SAPbobsCOM.DeductibleTaxServiceDataInterfaces.dtsDeductibleTax);
oDeductibleTax.Code = "X1";
oDeductibleTax.Name = "X1 Name";
oDeductibleTax.DeductibleTaxRate = 18;
oDeductibleTax.Inactive = SAPbobsCOM.BoYesNoEnum.tNO;
var Add = oDeductibleTaxService.Add(oDeductibleTax);
SAPbobsCOM.CompanyService oCompanyService = (SAPbobsCOM.CompanyService)oCompany.GetCompanyService();
SAPbobsCOM.DeductibleTaxService oDeductibleTaxService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.DeductibleTaxService);
SAPbobsCOM.DeductibleTaxParams oDeductibleTaxParams = oDeductibleTaxService.GetDataInterface(SAPbobsCOM.DeductibleTaxServiceDataInterfaces.dtsDeductibleTaxParams);
SAPbobsCOM.DeductibleTax oDeductibleTax;
oDeductibleTaxParams.Code = "X1";
oDeductibleTax = oDeductibleTaxService.Get(oDeductibleTaxParams);
oDeductibleTax.Inactive = SAPbobsCOM.BoYesNoEnum.tYES;
oDeductibleTax.DeductibleTaxRate = 16;
oDeductibleTaxService.Update(oDeductibleTax);
SAPbobsCOM.CompanyService oCompanyService = (SAPbobsCOM.CompanyService)oCompany.GetCompanyService();
SAPbobsCOM.DeductibleTaxService oDeductibleTaxService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.DeductibleTaxService);
SAPbobsCOM.DeductibleTaxParamsCollection oDeductibleTaxParamsCollection;
oDeductibleTaxParamsCollection = oDeductibleTaxService.GetList();
foreach (SAPbobsCOM.DeductibleTaxParams oDeductibleTaxParams in oDeductibleTaxParamsCollection)
{
var Code = oDeductibleTaxParams.Code;
var Name = oDeductibleTaxParams.Name;
}
SAPbobsCOM.CompanyService oCompanyService = (SAPbobsCOM.CompanyService)oCompany.GetCompanyService();
SAPbobsCOM.DeductibleTaxService oDeductibleTaxService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.DeductibleTaxService);
SAPbobsCOM.DeductibleTaxParams oDeductibleTaxParams = oDeductibleTaxService.GetDataInterface(SAPbobsCOM.DeductibleTaxServiceDataInterfaces.dtsDeductibleTaxParams);
oDeductibleTaxParams.Code = "X1";
oDeductibleTaxService.Delete(oDeductibleTaxParams);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
7 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 | |
4 | |
3 |