#unknown-user
1 messages · Page 1 of 1 (latest)
Hey there
I'm not sure that we specify this anywhere, but the idea is that negative line items and coupons are both meant to discount the Invoice. They are mutually exclusive. 50% off of -$6 isn't really -$3... as that is actually working contrary to the coupon to begin with.
Ah, ok. If you view a negative value line item as a type of discount and not a version of a line item—then I can see that making sense to not allow those to compound.
But, strictly speaking (-6×0.50) = -3.
We can certainly do our own math to make this happen when attaching the discount line item. But before we go down that path, can you think of any approach that might keep us out of that?
Yeah that's fair that -6 * .5 = -3
I just mean that you aren't actually discounting the customer more with that negative line item then. Like it would work contrary to the logic that coupons and negative line items should be providing discounts to the customer. Anyways, what exactly is your goal here?
You want to be able to apply a certain amount discount to an invoice but handle when it also has a coupon?
I think the math allows us to ask the question two different ways
"Can we allow the coupon to apply to the line item with negative value?"
-or-
"Can we get the coupon to apply to the subtotal after the subscription line item and the negative line item have been added together?"
I don't believe either of these are possible. You will need to add logic to check the current coupon and then adjust the amount of the negative line item that you are creating.
That makes sense, that's for the information this morning. I appreciate it. Have a good day!