} // reverseCorrectIt /// <summary> /// Reverse Correction.As if nothing happened - same date /// </summary> /// <param name="GL_JournalBatch_ID">batch</param> /// <returns>reversed journal or null</returns> public MJournal ReverseCorrectIt(int GL_JournalBatch_ID) { log.Info(ToString()); // Journal MJournal reverse = new MJournal(this); reverse.SetGL_JournalBatch_ID(GL_JournalBatch_ID); reverse.SetDateDoc(GetDateDoc()); reverse.SetC_Period_ID(GetC_Period_ID()); reverse.SetDateAcct(GetDateAcct()); // Reverse indicator String description = reverse.GetDescription(); if (description == null) { description = "** " + GetDocumentNo() + " **"; } else { description += " ** " + GetDocumentNo() + " **"; } reverse.SetDescription(description); if (!reverse.Save()) { return(null); } // Lines reverse.CopyLinesFrom(this, null, 'C'); // SetProcessed(true); SetDocAction(DOCACTION_None); return(reverse); } // reverseCorrectionIt