Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.53k stars 2.81k forks source link

Automatically split discount #23095

Open maxoghana opened 2 years ago

maxoghana commented 2 years ago

Feature Request

When I use a discount to pay my vendor invoice, if the amounbt of the discount I select is more than the amont of the invoice, Dolibarr should automatically split the doiscount into 2 with the correct amonts.

A popup window can ask permission from the user to process the automated split with a message like "The discount amount is greater that the invoice amount. would you like to automatically split your discount ? "

Use case

I got a discount of 100€ with my supplier A

I wand to pay the invoice of supplier A for a total amount of 70€ I select in the "Discounts or credits available" part my discount of 100€ A popoup message appear : "The discount amount is greater that the invoice amount. would you like to automatically split your discount ?" If I clik "Yes" then dolibarr automatically split le discount into 2 : 70 and 30€ and apply the discount of 70€ to pay the invoice.

Suggested implementation

No response

Suggested steps

No response

josett225 commented 1 year ago

still required

josett225 commented 1 hour ago

Still required