IDEMPIERE-6162 Error with Create PO from Requisition for different BPs on multiple lines with same product (#2383)

This commit is contained in:
Carlos Ruiz 2024-05-31 10:05:44 +02:00
parent 76adcb1f98
commit 9d6f8c852f
1 changed files with 1 additions and 0 deletions

View File

@ -304,6 +304,7 @@ public class RequisitionPOCreate extends SvrProcess
|| rLine.getM_AttributeSetInstance_ID() != m_M_AttributeSetInstance_ID
|| rLine.getC_Charge_ID() != 0 // single line per charge
|| m_order == null
|| (rLine.getC_BPartner_ID() > 0 && m_order.getC_BPartner_ID() != rLine.getC_BPartner_ID())
|| m_order.getDatePromised().compareTo(rLine.getDateRequired()) != 0
)
{