The builtin payment terms on a customer don’t work us so i am hiding these and creating my own payment terms custom field on the Customer doctype.
I then need to link this field and show the permitted values for these payment terms on a Quote. ie if a customer is set to Net 30 days as the selected default term, i want this to appear by default on a quotation for this customer, but so this can be changed to a different payment term, if necessary, for this particular quote.
I’ve tried using a custom script to bridge between the payment terms field in Quotation and the same field in Customer, but when I try to use a ‘link’ type field on the Quotation doctype I can only link to another doctype and not a custom field which is what I have.
What is the easiest way to achieve what I’m trying to do? I have tried working this through and believe it should be quite easy, but can’t quite get it to work in practice …
I still can’t quite get this to work. I can get the field to appear in the quote, but its not linked to the customer field, it works separately to the field ion the customer for.
I’m wondering if I have a problem with the Custok script not working to link the feilds as it should
I get this error ‘Duplicate name Custom Field Quotation-payment_terms’ when trying to add the custom field in 2. Does this mean I should only add the custom script AFTER stage 2?
I can now get the fields in place without errors, but when I go to my Quote, the payment term field is missing instead of just ‘read only’. If I un tick read only, teh field is show, but only allows me to select a customer.
I have seen the payment TErms field show up as a read only field but clickable to the customer page. But this only shows up sometimes. I’m not sure why sometimes it appears and sometimes it doesnt. But I am getting closer