on 09-20-2018 1:10 PM
Hi,
For some reason i have to use KUT field for tax number. But I also control the tax number value whether its exists before replication to ERP via cloud app studio enhancement implementation. According to note 2604776, its not possible to use KUT fields in enhancement implementation so i want to copy data from KUT tax number field to Tax numbers node. So i need to create entry under Customer-->Tax numbers using ABSL code.
If it is possible can you guide me ?
Thanks.
Hi,
In taxnumber node of account extenstion standard BO, after modify you may use for example:
this.TaxID.content="12345679";
this.CountryCode="HR";
this.TaxTypeCode.content="2";
br,
Zoran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Zoran, thanks for quick response.
I have already tried similar coding but there is no succes. You can find it below.
I'm working under Root node because i want code to run after i fill the newTaxNoField. If i work under Tax number node, code runs after i click Add button under tax numbers tab.
import ABSL;
var country;
var newTaxNoField;
var stdTaxNoField;
country = this.AddressInformation.Address.PostalAddress.GetFirst().CountryCode;
newTaxNoField = this.Common.GetFirst().ZTAXNO;
if(country == "HR"){
if(!newTaxNoField.IsInitial()){
stdTaxNoField = newTaxNoField;
this.TaxNumber.GetFirst().CountryCode = "HR";
this.TaxNumber.GetFirst().TaxTypeCode.content = "2";
this.TaxNumber.GetFirst().TaxID.content = stdTaxNoField;
}
}
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.