Unposted reversed allocation cannot be posted -> set posted flag when reversing

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2985660
This commit is contained in:
phib 2010-04-12 02:02:46 +00:00
parent a4ded83c4e
commit 135a9d2fd5
1 changed files with 2 additions and 0 deletions

View File

@ -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())