Hello,
I've got a little issue regarding multiple pricing levels for the same currency. We have a number of price levels for US$ currencies that do not apply to all items on our price list.
As such, a request was made to hide all price levels that do not have pricing values entered for each Item record.
For example, products A, D, and E have special pricing for Customer X. We create a new Price Level called 'Special Pricing for Customer X'. So, products A, D, and E will have a base line level (for our standard customers) and another price level for the special pricing. However, products B, C, and F do not have special pricing and will therefore only have pricing values for base line. Yet, the additional Price Level (Special Pricing for Customer X) will show up within the product B's Item record.
I am looking to remove the instances of "Special Pricing For Customer X" for all items that do not have this pricing.
I'm familiar with SuiteScript and Javascript (to a novice level), but cannot seem to get the entire Price Level to disappear. I've attempted to use 'setDisplayType('hidden')', which works fine for fields and sublists, but not specific line items within the sublists. As soon as I attempt to grab the specific line item, the script fails by giving me an 'unexpected error'.
I've also done a redirect to a custom form that only displays the pricing that is relevant to each product, but this form is a but cumbersome, as it requires a massive amount of input to replicate the Item record in its entirety (which we need).
Any advice on how to accomplish this task using SuiteScript?
Thank you,