in my invoice I would like to have a text / hint for the customer depending on the payment term.
If payment_term contains "prepaid" then print "You really have to pay before you get your item!"
How can I do this?
I got the following working:
You really have to pay before you get your item! Please use the following number as reference: [[ ((o.payment_term.name == '100% Vorkasse') or removeParentNode('para')) and '' ]] [[ o.number ]]
But I would like to have "contains", not "==".
[[ 'prepaid' in o.payment_term.name and 'You really have to pay before you get your item!' ]]
|x in s||True if an item of s is equal to x, else False|
This table summarizes the comparison operations:
|<||strictly less than||Â|
|<=||less than or equal||Â|
|>||strictly greater than||Â|
|>=||greater than or equal||Â|
|is not||negated object identity||Â|
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 5/6/14, 7:27 AM|
|Seen: 9210 times|
|Last updated: 3/16/15, 8:10 AM|