For the ability to create SO from the PO edit form directly were implemented the following functionality:
- Create SO button on the PO edit form.
-
- displayed
- if in Company settings the corresponding checkbox is set on
- for not Received and Partially received PO if in PO exists not allocated to any SO item Qty
- after clicking on the button, the SO edit form should be opened with the prefilled item from PO:
- in SO will be displayed items with qty which is not allocated to any SO
- allocation type by default in SO item should be “Reserve from incoming PO”
- once SO has been processed the PO should be linked to SO
- if on SO was changed allocation type, qty, item -> after processing SO the PO will not be linked to SO item
- if on PO were added the same line items -> on the Sale order they won’t merge into one line
- displayed
- Allow Create SO from Purchase Order setting
-
- checkbox. If checkbox is checked the “Create SO” button should be displayed on PO edit