Shopify Functions Discounts removed when a custom sale is added to the POS cart

I am running into this problem. I think B2B wholesale club used a POS button to apply discounts to custom items. I will try that the next few days and let you know.