Terms and Condition changes according to Product in the sales order and Invoice

From what I can see, T&C are linked to a company. Which is great.

Wondering if it is possible to choose another T&C, when a particular product is in the sales order or invoice?

Can it be done if it is not in erpnext now?

What I mean is can it be done easily? Do not want to break anything in erpnext.

hello @pvanthony

Can you please share screenshots showing how Terms & Conditions are linked to a company? I’m asking for clarity because when I check the Terms and Conditions doctype via Edit Doctype, there’s no Link field for Company. It seems T&C are only associated with the Selling or Buying modules through their respective settings, not directly linked to a company.

You are correct that the t&c doctype does not have the company.

T&C is linked in the company doctype. Here is the screenshot.

@pvanthony Oh, I think using the same approach, we can add a custom field inside the item doctype, set default terms and conditions, and apply them using custom scripts.

Thank you for the cool idea.

I will try to do some research on how to write the custom script.

If there is some helpful links, please do share.

By the way these custom fields will stay during an erpnext upgrade, correct?

No, it will not reflect during an ERPNext upgrade. If you want the custom fields and client scripts, you need to create a custom app and export them. After that, you can easily use these changes during different ERPNext upgrades.

Please check this: