From 135a9d2fd55392996c0d4522ab4a15f29e5ce550 Mon Sep 17 00:00:00 2001 From: phib Date: Mon, 12 Apr 2010 02:02:46 +0000 Subject: [PATCH] Unposted reversed allocation cannot be posted -> set posted flag when reversing Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2985660 --- base/src/org/compiere/model/MAllocationHdr.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/src/org/compiere/model/MAllocationHdr.java b/base/src/org/compiere/model/MAllocationHdr.java index 23567fa751..0b79397f99 100644 --- a/base/src/org/compiere/model/MAllocationHdr.java +++ b/base/src/org/compiere/model/MAllocationHdr.java @@ -735,6 +735,8 @@ public final class MAllocationHdr extends X_C_AllocationHdr implements DocAction // Set Inactive setIsActive (false); + if ( !isPosted() ) + setPosted(true); setDocumentNo(getDocumentNo()+"^"); setDocStatus(DOCSTATUS_Reversed); // for direct calls if (!save() || isActive())