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.26k stars 2.73k forks source link

Add " Add Purchase Order " function in sales order #23870

Open trekmorris opened 1 year ago

trekmorris commented 1 year ago

Feature Request

In small business , one people may do many things . So after get a sales order , then you may need to purchase items . Then it will more efficient to add a " Add Purchase Order " button in sales order . And you could create several purchase orders and they will link to this sales order automatically . ( Like you could create several sales orders from one proposal , and it will auto link to same proposal now . )

Use case

No response

Suggested implementation

  1. Add a " Add Purchase Order " button in sales order .
  2. When you click it , it will show a " New Purchase Order " page , there you could choose the vender . Alos you can choose which product line will be imported in the end of page .

Suggested steps

No response

TechServiceConseil commented 1 year ago

Hello!

You can do that with the following module https://github.com/ATM-Consulting/dolibarr_module_supplierorderfromorder You can dowload it, rename the zip to module_supplierorderfromorder-2.5.zip and the folder inside to supplierorderfromorder

If i unterstand well the AGPL, we have the right to duplicate the code and use it without limitation. That is available for all modules we can find in the Dolistore?

Does it mean i can fork the project and make a pull request for module i find in Dolistore ?

Bye

trekmorris commented 1 year ago

Hi

Thanks for this information . Yes , i think if this module is under AGPL , you could fork and make a pull request .

priojk commented 1 year ago

Just a little remark: Legally, you are of course free to fork any GPL licensed project. However, when existing modules get integrated into Dolibarr core, this generally happens with the consent of the original author.

So, if you would like to integrate an existing module form the Dolistore into the core, it would be advisable to first have a chat with the author of that module. There are examples of successfully integrating such modules, but it also has implications regarding e.g. maintenance in case of identified bugs.

edupulpillo commented 1 year ago

The module module_supplierorderfromorder really register a link to the supplier invoice in the customer invoice?

edupulpillo commented 7 months ago

The module module_supplierorderfromorder really register a link to the supplier invoice in the customer invoice?

JonBendtsen commented 5 months ago

The module module_supplierorderfromorder really register a link to the supplier invoice in the customer invoice?

what do you mean?

edupulpillo commented 5 months ago

I mena if really that module after creating a purchase order from a sales order will keep and object link between Sales and purchase orders. It will be great to have a relationship between the purchase orders and sales orders.

JonBendtsen commented 5 months ago

I mena if really that module after creating a purchase order from a sales order will keep and object link between Sales and purchase orders. It will be great to have a relationship between the purchase orders and sales orders.

And there is not already that @edupulpillo ?

When you create an order from a proposal you get a link between them. When you create an invoice from an order you get a link between them.

they are shown in the bottom of the proposal/order/invoice detail page

edupulpillo commented 5 months ago

The link always is between customer order and proposal, but not between vendor proposal and customer proposal, and not between vendor purchase order and sales order, that should be a great feature to have a relationship between the products that are purchased and sold.

W1W1-M commented 2 days ago

Since v19, if you create a supplier purchase order from client sales order they get linked together automatically. However you can't link them manually via the "Link to" button.

An external module is also available on the Dolistore for making multiple purchase orders from one sales order depending on supplier. This external module also links the orders.