on 2023 Feb 16 10:59 AM
hello,
Thanks for replying. Sorry if i didnt explain myself well. I am new with cpq. its for quote 1.0. When it's add to the quote.
The problem was that the name of the column I created (unit price 500) have to be the same name in the script that's why I wasn't able to access the variable.
Here is the solution I have found:
for it in Quote.MainItems:
total_amount=it.ExtendedAmount
it.UnitPrice500.Value = 500 * 0.95 * total_amount
it.UnitPrice800.Value = 800 * 0.9 * total_amount
it.UnitPrice1000.Value = 1000 * 0.85 * total_amount
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
5 | |
5 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.