Hello Everybody,
We are running AX 2012 R3 CU8, and I have a question of our Italian subsidiaries.
They have two suppliers, but the same VAT number... When registering the VAT number on the second supplier, they get an infolog message "Another supplier exists with the same value in the field VAT number."
My colleague told me that "they have the same vat number because they are part of the same holding"
I took a look on the checkVATNumUsed method for table VendTable
boolean checkVATNumUsed()
{
boolean ret = true;
VendTable tmpVendTable;
#ISOCountryRegionCodes
if (SysCountryRegionCode::isLegalEntityInCountryRegion([#isoIT]) && this.vatNum)
{
select firstonly RecId,vatNum from tmpVendTable
where tmpVendTable.RecId != this.RecId &&
tmpVendTable.vatNum == this.vatNum;
if (tmpVendTable.RecId)
{
ret = checkFailed(strFmt("@SYS79301",fieldPName(VendTable, vatNum)));
}
}
return ret;
}
This is the standard method (sys layer). Of course I can make an update of this method, returning true each time... But not sure there is notanother way to do ?
Any idea please ?