Accounting Apex API Developer Reference

c2g.InvoiceConsolidationRulePxService

global with sharing class InvoiceConsolidationRulePxService

Methods

runConsolidation

global static c2g.InvoiceConsolidationRulePxService.ConsolidationRuleResponse runConsolidation(Id ConsolidationRuleId, date InvoiceDate)

This method used to consolidate the provided invoices IDs.

Input Parameters

Name Type Description
ConsolidationRuleId Id - contains ID of the consolidation rule
InvoiceDate date - contains the date to be used as the invoice date of the consolidated invoices

Return Value

Response containing consolidation process run ID or errors

c2g.InvoiceConsolidationRulePxService.ConsolidationRuleResponse

global with sharing class ConsolidationRuleResponse extends Response

The response returned by the running consolidation rule for sales invoice consolidation. Contains the ID of the resulting batch process started and any errors produced by the process.

Properties

Name Type Description
ProcessRunId Id ID of the batch process for consolidating sales invoices.

Methods

ConsolidationRuleResponse

global ConsolidationRuleResponse()

getMessages

global Map<Id, List<String>> getMessages()

This method returns errors that are generated in the response.

Return Value

A Map containing a list of the errors generated for each record ID.

© Copyright 2009–2023 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.