[Event Request] Report 7000097 Reject Docs. - OnAfterPostGenJournal
We need a new event in Report 7000097 "Reject Docs.":
OnAfterPostGenJournal(VAR GenJnlLine : Record "Gen. Journal Line";CustLedgEntry : Record "Cust. Ledger Entry")
Called from:
CustLedgEntry - OnPostDataItem() IF GenJnlLine.FIND('-') THEN REPEAT IF ArePostedDocs THEN BEGIN PostedDoc2.SETRANGE("Document No.",GenJnlLine."Document No."); IF PostedDoc2.FIND('-') THEN REPEAT PostedBillGr.GET(PostedDoc2."Bill Gr./Pmt. Order No."); DocPost.CloseBillGroupIfEmpty(PostedBillGr,PostingDate); UNTIL PostedDoc2.NEXT = 0; END; UNTIL GenJnlLine.NEXT = 0; //init insert --------------------------------------------- OnAfterPostGenJournal(GenJnlLine,CustLedgEntry); //End insert --------------------------------------------- PostGenJournal; ..... .....
the requested event is named AnAfterPostGenJournal but the next line is PostGenJournal. Did you mean OnBefore?
Yes, sorry. It's really OnBeforePostGenJournal.
Thank you.