Package org.idempiere.acct
Class PostingService
java.lang.Object
org.idempiere.acct.PostingService
- All Implemented Interfaces:
IPostingService
OSGi service implementation of
Handles the "Posted" column click in an AD Window tab: validates document status, shows the accounting viewer if already posted, or triggers immediate posting if not yet posted.
IPostingService.Handles the "Posted" column click in an AD Window tab: validates document status, shows the accounting viewer if already posted, or triggers immediate posting if not yet posted.
Registered as an OSGi service so that the accounting module is optional — when this bundle is absent, the "Posted" button is silently ignored.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandlePostedClick(AbstractADWindowContent windowContent, int windowNo, int tableId, int recordId) Handle a click on the "Posted" column in an AD Window tab.
-
Constructor Details
-
PostingService
public PostingService()
-
-
Method Details
-
handlePostedClick
public void handlePostedClick(AbstractADWindowContent windowContent, int windowNo, int tableId, int recordId) Description copied from interface:IPostingServiceHandle a click on the "Posted" column in an AD Window tab. Implementations are responsible for:- Validating document status before posting
- Opening the accounting viewer when already posted
- Triggering immediate posting when not yet posted
- Specified by:
handlePostedClickin interfaceIPostingService- Parameters:
windowContent- theAbstractADWindowContentthat owns the tabwindowNo- current window numbertableId- AD_Table_ID of the documentrecordId- Record_ID of the document
-