---
title: UI Plugin and Custom Discount Field to calculate Net Sales Price for Zero Quantity Products
slug: ui-plugin-and-custom-discount-field-to-calculate-net-sales-price-for-zero-quantity-products
docTags: 
createdAt: 2025-06-25T23:20:27.703Z
---

:::hint{type="info"}
Summary

- Currently there's no way to influence the Net Sales Price of a zero quantity product (i.e. usage rate product) when using either the standard Discount fields or a Discount Tag.
- To workaround this, I created a UI Plugin and custom Discount % field that will calculate and update the Net Sales Price
- Bonus: highlighted how I like to flatten the UI Plugin line items to more easily traverse the possible nested lines (parent bundle, child lines, ramp lines, etc.)
:::

::loom{url="https://www.loom.com/embed/8c7d6d4b275d4d5a955b66bc4c7ac901"}

