FR3471930 Allow consolidation of PO from Req with different dates

From ADempiere
Jump to: navigation, search
This Wiki is read-only for reference purposes to avoid broken links.

Description

The process that converts requisition into purchase order can consolidate them into one purchase order based on a serie of considerations.

One of them is that the promised date on the order matches the required date of the requisition.

This means that if there are three requisition for product sold from one vendor, with three different date required, this will result in three PO.

Adempiere support orders that have date promised at line level (in addition to the one on order header), but the conversion process does not make use of that.

The purpose of this FR is to allow consolidating requisition with different date required into one order, enabling to generate one order with different promised date at line level.

Implementation

For the implementation to be backward compatible, a new parameter has been added (named ConsolidateByDatePromised), with the following meaning:

  • If true (default value), different date promised will result in different orders (current behaviour)
  • if false, different date promised will result in one order (date promised is ignored when deciding to create a new order)

and the process RequisitionPOCreate has been modified to read and check for it.

An additional consideration has been done to avoid order line to be consolidated if they have different date promised.

Developers

References