Class PostingService

java.lang.Object
org.idempiere.acct.PostingService
All Implemented Interfaces:
IPostingService

public class PostingService extends Object implements IPostingService
OSGi service implementation of 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 Details

    • PostingService

      public PostingService()
  • Method Details

    • handlePostedClick

      public void handlePostedClick(AbstractADWindowContent windowContent, int windowNo, int tableId, int recordId)
      Description copied from interface: IPostingService
      Handle 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:
      handlePostedClick in interface IPostingService
      Parameters:
      windowContent - the AbstractADWindowContent that owns the tab
      windowNo - current window number
      tableId - AD_Table_ID of the document
      recordId - Record_ID of the document