LaravelDaily / laravel-invoices

Laravel package to generate PDF invoices from various customizable parameters
GNU General Public License v3.0
1.39k stars 303 forks source link

Discount over discountByPercent #145

Closed VenomXL closed 2 years ago

VenomXL commented 2 years ago

At times clients are demanding especially when they are really close or regular clients. An additional discount amount should be allowed to be applied even after discountByPercent has already been applied to showcase them they are being over valued or over pampered for being a loyal customer.

mc0de commented 2 years ago

You can calculate your own discount logic and provide final discount to ->discount() method.

Stacked discounts are not very usual thing business do.

Feel free to submit a PR