Also, I believe I can add an additional field here which can be populated with one of the company address which will act as billing address. Is this the correct way of doing it ?
Also, a comment on ERPNext PO design, the shipping address is so filtered in ERPNext to be populated only with ones company’s addresses. That should actually be billing address. The shipping address should be left free, One may always desire to get the items on site or at sub-contractors site.
If Preferred Billing Address is marked, the same will be populated by default for billing address.
If Preferred Shipping Address is marked, the same will be populated by default for shipping address.
This is what was wrong in it. I had already used a code in the fetch “fetch from” area of customise form and used the word address in it. Since the address doc type does not have anything called address that was the cause of error.
However fixing it did not achieve for me what I wanted. Instead I get an message