Description
Reason for exemption from tax; options are determined by the authorities.
Property type
Read-write property
Syntax
| Visual Basic |
|---|
Public Property TaxExemptionReason() As String |
Remarks
Example
| C# | Copy Code |
|---|
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SAPbobsCOM; namespace ConsoleApp1 { class Program { static void Main(string[] args) { SAPbobsCOM.Company oCompany = new SAPbobsCOM.Company(); // Init Connection Properties oCompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2017; oCompany.Server = ""YourCompanyServer\\MSSQL2017""; // change to your company server oCompany.language = SAPbobsCOM.BoSuppLangs.ln_English; // change to your language oCompany.UseTrusted = false; oCompany.DbUserName = ""yourusername""; oCompany.DbPassword = ""yourpassword""; oCompany.CompanyDB = ""companyname""; // 'Company name oCompany.UserName = ""username""; // 'Username oCompany.Password = ""password""; // 'Password int connectStat = oCompany.Connect(); if (connectStat != 0) { Console.WriteLine(connectStat); return; } CompanyService compServ = oCompany.GetCompanyService(); //compServ.GetBusinessService(ServiceTypes) VatGroups vatGroup = oCompany.GetBusinessObject(BoObjectTypes.oVatGroups); vatGroup.GetByKey(""R7""); Console.WriteLine(vatGroup.TaxExemptionReason); Console.WriteLine(vatGroup.Name); Console.WriteLine(vatGroup.Code); vatGroup.TaxExemptionReason = ""M01""; vatGroup.Update(); vatGroup.GetByKey(""R7""); Console.WriteLine(vatGroup.TaxExemptionReason); Console.WriteLine(vatGroup.Name); Console.WriteLine(vatGroup.Code); TaxExemptReasonService ters = compServ.GetBusinessService(ServiceTypes.TaxExemptReasonService); TaxExemptReasonParams par = ters.GetDataInterface(TaxExemptReasonServiceDataInterfaces.terTaxExemptReasonParams); par.Code = ""M20""; TaxExemptReason te_M01 = ters.Get(par); Console.WriteLine(te_M01.Code); Console.WriteLine(te_M01.Description); te_M01.Code = ""b""; ters.Update(te_M01); // ters.Delete(par); } } } |
|
See Also