Short question regarding customer

Hi all,

I am having a short question regarding my customer records. I have now migrated over 400 customer addresses from another system. I have also made a custom field called “customer number” which has been necessary in our last ERP.

Now I want to populate/fetch this customer number in all document/printouts like “doc.customer_number” is there a way to do that in a easy way?


For old records, run an update query.

For new records, use add_fetch

have you got a clue for me how to do that?

Should I do a custom script for the add_fetch or should I include it in an existing file?

Check Not Found

Works just like a charm…I tried this one here:

But the one from @nabinhait works much faster and reliable!


PS: Can be closed