django-afip icon indicating copy to clipboard operation
django-afip copied to clipboard

Add discount field

Open juanpsenn opened this issue 2 years ago • 2 comments

A discount field should be added.

juanpsenn avatar May 21 '22 00:05 juanpsenn

To ReceiptEntry.

WhyNotHugo avatar May 21 '22 00:05 WhyNotHugo

I just needed this enhancement, there is anything I should know?

  1. What is the kind of discount needed to be applied here, if it is as a percentage discount or as a pure net discount?
  2. discount should be applied to total price or to unit price?

If I'm not wrong, discount need to be validated not to be a negative value, negative value would cause an increment when calculating total_price and also should be less than or equal to unit_price if it is being applied to unit price, a discount greater than the unit price would cause a negative total and I'm not sure what that would be representing,

Thanks.

Alvezgr avatar Aug 03 '22 14:08 Alvezgr