Moynao
3rd October 2006, 12:13
Hi,

I'm using Baan 6 FP 2 and have a problem in purchasing.

When save PO, it always displays message "Change the value of the Receipt Address field. Reason: Tax number of company 0 not found." and cannot save PO too.

Thanks for all ideas

Evert-Jan Bosch
3rd October 2006, 13:45
Hi Moynao,

Probably check below fails.
Are you using Intrastat functionality?
Please, check if the purchase office has a financial company.

function extern boolean tdpur401.cadr.is.valid(long i.mode)
{
if i.mode = 0 and
not tdpur401.cadr.parents.have.changed() then
return(true)
endif

if INTRASTAT.IMPLEMENTED and
tccom.dll7010.check.home.office.country(
tdpur400.cofc,
tcemm.enty.pur.office,
get.compnr(),
LESS.THAN(tdpur401.qoor, 0.0) ?
tccom.kotr.requirement :
tccom.kotr.receipt,
tdpur401.sfad,
tdpur401.cadr) <> 0 then
|* Message is set in function.
return(false)
endif

return(true)
}

Moynao
4th October 2006, 07:32
Hi Evert-Jan,

Thanks for your reply.
I don't use Instrstat functionality.

For the coding to check purchas office, Could you please help me how to open session or how to check it? I really don't know.

Thanks
Regards,
Moy

Evert-Jan Bosch
4th October 2006, 09:39
Each department has an enterprise unit as you can see in the Departments session (tcemm1124m000). In the enterprise units session (tgbrg0530m000) you can find the financial company linked to the enterprise unit. That financial company is used in the error message that you got on the screen.

Succes,