Aiman
February 12, 2013, 7:39am
1
Hi together,
We have in AX 4.0 two Customers with same tax exempt number. Now I have the task of making it again for other clients, but I get an info logo with the information that two clients can not have the same same tax exempt number.
there is one parameter setting?
Thanks a lot in advance.
Aiman
They cannot legally have the same exempt number, there is no parameter to allow this for multuple entry for different customers.
Aiman
February 12, 2013, 8:10am
3
HI,
It is one customer with two Addresses, therefor different Customers IDs.
Thanks
Aiman
Aiman
February 12, 2013, 10:34am
4
I will I allowed that two Customers have the same VAT:
boolean checkVATNumUsed()
{
boolean ret = true;
CustTable tmpCustTable;
;
if (TaxParameters::find().VatBookEnable == NoYes::Yes && this.VATNum)
{
select firstonly tmpCustTable
where tmpCustTable.RecId != this.RecId &&
tmpCustTable.VATNum == this.VATNum;
if (tmpCustTable.RecId)
{
ret = checkFailed(strfmt("@SYS79490 ",fieldpname(CustTable, VATNum)));
}
}
return ret;
}
→
IF excluded:
// if (tmpCustTable.RecId)
// {
// ret = checkFailed(strfmt("@SYS79490 ",fieldpname(CustTable, VATNum)));
// }
After insert the VAT–> activate it again.
Aiman
One customer with two addresses only needs one customer record and one exempt ID with multiple addresses.