Hi Yann

Why not use the AR Customer Master table - it has those fields as well, and reading from that table is very very straightforward. The only downside is that someone has to run Receivables | Maintenance | Calculate Customer Aging once a day. But that is not so awful, because it can be set to run automatically when the first person launches Receivables each morning.

When you run that function, you probably will want to uncheck "Update on hold by", and you can choose whether to update the fields based on the document date or the due date.

Steve