Purchase items which have the is_discount flag are subtracted from the total price. However they could be used not only for discounts. For example fees, commissions and other similar charges could be subtracted as well.
I suggest renaming is_discount to is_negative so it is clear what it does and what it could be used for.
Purchase items which have the
is_discountflag are subtracted from the total price. However they could be used not only for discounts. For example fees, commissions and other similar charges could be subtracted as well.I suggest renaming
is_discounttois_negativeso it is clear what it does and what it could be used for.