From 91a57b125365501dba9e205a11f1853667472ab9 Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Tue, 16 Jun 2009 17:30:31 +0000 Subject: [PATCH] The description save not when the consolidate document is N http://sourceforge.net/tracker/?func=detail&aid=2807284&group_id=176962&atid=879332 --- base/src/org/compiere/process/DistributionRun.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/base/src/org/compiere/process/DistributionRun.java b/base/src/org/compiere/process/DistributionRun.java index cc78906ec5..66901cd6c7 100644 --- a/base/src/org/compiere/process/DistributionRun.java +++ b/base/src/org/compiere/process/DistributionRun.java @@ -1059,12 +1059,12 @@ public class DistributionRun extends SvrProcess //line.setTargetQty(detail.getActualAllocation()); line.setTargetQty(Env.ZERO); //line.setConfirmedQty(detail.getActualAllocation()); - line.setDescription(m_run.getName()); - if (!line.save()) - { - log.log(Level.SEVERE, "OrderLine not saved"); - return false; - } + String Description =""; + if (m_run.getName() != null) + Description =Description.concat(m_run.getName()); + line.setDescription(Description + " " +Msg.translate(getCtx(), "Qty")+ " = " +detail.getActualAllocation()+" "); + line.saveEx(); + } addLog(0,null, detail.getActualAllocation(), order.getDocumentNo() + ": " + bp.getName() + " - " + product.getName());