How to make Quoted Line Items Negative based on a dropdown value in the Quote header?

I have an integration with my ERP where Returns/Credits are posted as negative dollar values.  Prior to Sugar 7.8 in the old BWC quotes module I was able to alter cost_price, discount_price and list_price of newly added Product catalog entries in an after save hook.  

Basically it was along the lines of:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
If($bean->order_or_return_c == 'return')
{
//Loop through my products
// If list price > 0, multiply it by -1
// If cost_price > 0, multiply it by -1
// If discount_price > 0, multiply it by -1
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

How would I accomplish this in the new sidecar Quotes module?  When an item is added to the quote, if the dropdown = 'return', multiply all its currency fields by -1?

Now that QLI's are a seperate part of the view, I dont know how to cross the threshold with JS to affect one based on the other.