IDEMPIERE-6137 Payment Rule does not appear in reports from Sales Order (#2347)

This commit is contained in:
Carlos Ruiz 2024-05-06 15:25:17 +02:00
parent 42e998ff7d
commit 39fff47de6
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,8 @@
*****************************************************************************/
package org.compiere.print;
import static org.compiere.model.SystemIDs.REFERENCE_PAYMENTRULE;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Clob;
@ -513,6 +515,8 @@ public class DataEngine
else if (DisplayType.isList(AD_Reference_ID)
|| (AD_Reference_ID == DisplayType.Button && AD_Reference_Value_ID != 0))
{
if (AD_Reference_ID == DisplayType.Payment)
AD_Reference_Value_ID = REFERENCE_PAYMENTRULE;
if (ColumnSQL.length() > 0)
{
lookupSQL = ColumnSQL;