From 756b6dc2de599547e4a218158dbd382c7271a154 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 27 Nov 2009 16:01:33 +0000 Subject: [PATCH] Fix [2904994] - Fact distribtution only overwriting Org https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2904994&group_id=176962 Thanks to Silvano - freepath --- base/src/org/compiere/acct/Fact.java | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/base/src/org/compiere/acct/Fact.java b/base/src/org/compiere/acct/Fact.java index 2d00e319da..ea298030fd 100644 --- a/base/src/org/compiere/acct/Fact.java +++ b/base/src/org/compiere/acct/Fact.java @@ -735,6 +735,32 @@ public final class Fact factLine.setPostingType(m_postingType); if (dl.isOverwriteOrg()) // set Org explicitly factLine.setAD_Org_ID(dl.getOrg_ID()); + // Silvano - freepath - F3P - Bug#2904994 Fact distribtution only overwriting Org + if(dl.isOverwriteAcct()) + factLine.setAccount_ID(dl.getAccount_ID()); + if(dl.isOverwriteActivity()) + factLine.setC_Activity_ID(dl.getC_Activity_ID()); + if(dl.isOverwriteBPartner()) + factLine.setC_BPartner_ID(dl.getC_BPartner_ID()); + if(dl.isOverwriteCampaign()) + factLine.setC_Campaign_ID(dl.getC_Campaign_ID()); + if(dl.isOverwriteLocFrom()) + factLine.setC_LocFrom_ID(dl.getC_LocFrom_ID()); + if(dl.isOverwriteLocTo()) + factLine.setC_LocTo_ID(dl.getC_LocTo_ID()); + if(dl.isOverwriteOrgTrx()) + factLine.setAD_OrgTrx_ID(dl.getAD_OrgTrx_ID()); + if(dl.isOverwriteProduct()) + factLine.setM_Product_ID(dl.getM_Product_ID()); + if(dl.isOverwriteProject()) + factLine.setC_Project_ID(dl.getC_Project_ID()); + if(dl.isOverwriteSalesRegion()) + factLine.setC_SalesRegion_ID(dl.getC_SalesRegion_ID()); + if(dl.isOverwriteUser1()) + factLine.setUser1_ID(dl.getUser1_ID()); + if(dl.isOverwriteUser2()) + factLine.setUser2_ID(dl.getUser2_ID()); + // F3P end // if (dl.getAmt().signum() < 0) factLine.setAmtSource(dLine.getC_Currency_ID(), null, dl.getAmt().abs());