Accounting Apex API Developer Reference

c2g.DocumentAmendService

global with sharing class DocumentAmendService

the service class relating to amending posted documents.

Methods

amendInvoices

global static void amendInvoices(List<c2g.DocumentAmendService.Invoice> invoices)

This service allows you to amend posted sales invoices that have custom fields set up for sub-analysis mapping. Use the SalesInvoiceAmend (Amend Sales Invoice) custom permission to grant permissions on this method.

Input Parameters

Name Type Description
invoices List<c2g.DocumentAmendService.Invoice> Holds details of the sales invoices that you want to amend.

amendCreditNotes

global static void amendCreditNotes(List<c2g.DocumentAmendService.CreditNote> creditNotes)

This service allows you to amend posted sales credit notes that have custom fields set up for sub-analysis mapping. Use the SalesCreditNoteAmend (Amend Sales Credit Notes) custom permission to grant permissions on this method.

Input Parameters

Name Type Description
creditNotes List<c2g.DocumentAmendService.CreditNote> Holds details of the sales credit notes that you want to amend.

amendPurchaseInvoices

global static void amendPurchaseInvoices(List<c2g.DocumentAmendService.PurchaseInvoice> purchaseInvoices)

This service allows you to amend posted purchase invoices that have custom fields set up for sub-analysis mapping. Use the PayableInvoiceAmend (Amend Payable Invoices) custom permission to grant permissions on this method.

Input Parameters

Name Type Description
purchaseInvoices List<c2g.DocumentAmendService.PurchaseInvoice> Holds details of the purchase invoices that you want to amend.

amendPurchaseCreditNotes

global static void amendPurchaseCreditNotes(List<c2g.DocumentAmendService.PurchaseCreditNote> purchaseCreditNotes)

This service allows you to amend posted purchase credit notes that have custom fields set up for sub-analysis mapping. Use the PurchaseCreditNoteAmend (Amend Payable Credit Notes) custom permission to grant permissions on this method.

Input Parameters

Name Type Description
purchaseCreditNotes List<c2g.DocumentAmendService.PurchaseCreditNote> Holds details of the purchase credit notes that you want to amend.

amendJournals

global static void amendJournals(List<c2g.DocumentAmendService.Journal> journals)

This service allows you to amend posted journals that have custom fields set up for sub-analysis mapping. Use the JournalAmend (Amend Journals) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
journals List<c2g.DocumentAmendService.Journal> Holds details of the journals that you want to amend.

amendCashEntries

global static void amendCashEntries(List<c2g.DocumentAmendService.CashEntry> cashEntries)

This service allows you to amend posted Cash entries that have custom fields set up for sub-analysis mapping.

Input Parameters

Name Type Description
cashEntries List<c2g.DocumentAmendService.CashEntry> Holds details of the cash entries that you want to amend.

c2g.DocumentAmendService.Document

global abstract class Document

holds document details that can be amended after the document has been posted. where the value for a field is null the documentamendservice will set that field's value to null on the document, so if you want a value to be unchanged you must populate that field with its current value.

Properties

Name Type Description
DocumentId Id unique string that identifies the document.
DueDate Date the document's due date.
Description String the document description.
Dimension1 Id the document's dimension 1 value.
Dimension2 Id the document's dimension 2 value.
Dimension3 Id the document's dimension 3 value.
Dimension4 Id the document's dimension 4 value.
SubAnalysis Map<String, Object> holds a list of custom fields and values that have been set up for sub-analysis mapping.
LineItems List<c2g.DocumentAmendService.Line> holds values that you want to amend at line level. you only need to supply the values that you want to amend.

Methods

Document

global Document()

Creates an API version of an empty document object for use with the DocumentAmendService.

c2g.DocumentAmendService.Invoice

global class Invoice extends Document

holds details that can be amended after the invoice has been posted. where the value for a field is null the documentamendservice will set that field's value to null on the invoice, so if you want a value to be unchanged you must populate that field with its current value.

This class extends c2g.DocumentAmendService.Document

Properties

Name Type Description
CustomerReference String customer reference such as a customer order number.
PaymentScheduleDueDates List<Date> the list of payment due dates if a payment schedule is attached to the sales invoice.

Methods

Invoice

global Invoice()

Creates an API version of an empty sales invoice object for use with the DocumentAmendService.

c2g.DocumentAmendService.CreditNote

global class CreditNote extends Document

holds details that can be amended after the credit note has been posted. where the value for a field is null the documentamendservice will set that field's value to null on the credit note, so if you want a value to be unchanged you must populate that field with its current value.

This class extends c2g.DocumentAmendService.Document

Properties

Name Type Description
CustomerReference String customer reference such as a customer order or returns note number.
CreditNoteReason String the reason for the credit note.

Methods

CreditNote

global CreditNote()

Creates an API version of an empty sales credit note object for use with the DocumentAmendService.

c2g.DocumentAmendService.PurchaseInvoice

global class PurchaseInvoice extends Document

holds details that can be amended after the invoice has been posted. where the value for a field is null the documentamendservice will set that field's value to null on the invoice, so if you want a value to be unchanged you must populate that field with its current value.

This class extends c2g.DocumentAmendService.Document

Properties

Name Type Description
DocumentReference1 String the invoice's reference 1.
DocumentReference2 String the invoice's reference 2.
ExpenseLines List<c2g.DocumentAmendService.Line> holds values that you want to amend at line level. where the value for a field is null the documentamendservice will set all line level field's value to null, so if you want field level values to remain unchanged you must populate those fields with their current values.

Methods

PurchaseInvoice

global PurchaseInvoice()

Creates an API version of an empty purchase invoice object for use with the DocumentAmendService.

c2g.DocumentAmendService.PurchaseCreditNote

global class PurchaseCreditNote extends Document

holds details that can be amended after the credit note has been posted. where the value for a field is null the documentamendservice will set that field's value to null on the credit note, so if you want a value to be unchanged you must populate that field with its current value.

This class extends c2g.DocumentAmendService.Document

Properties

Name Type Description
DocumentReference1 String the credit note's reference 1.
DocumentReference2 String the credit note's reference 2.
VendorInvoiceNumber String invoice number on the credit note delivered by the vendor.
CreditNoteReason String the reason for the credit note.
ExpenseLines List<c2g.DocumentAmendService.Line> holds values that you want to amend at line level. you only need to supply the values that you want to amend.

Methods

PurchaseCreditNote

global PurchaseCreditNote()

Creates an API version of an empty purchase credit note object for use with the DocumentAmendService.

c2g.DocumentAmendService.Journal

global class Journal

holds details that can be amended after the journal has been posted. where the value for a field is null the documentamendservice will set that field's value to null on the journal, so if you want a value to be unchanged you must populate that field with its current value.

Properties

Name Type Description
DocumentId Id unique string that identifies the journal.
Description String the journal's description.
Reference String any significant reference that might be useful to store on the journal.
SubAnalysis Map<String, Object> holds a list of custom fields and values that have been set up for sub-analysis mapping.
LineItems List<c2g.DocumentAmendService.Line> holds values that you want to amend at line level. you only need to supply the values that you want to amend.

Methods

Journal

global Journal()

Creates an API version of an empty journal object for use with the DocumentAmendService.

c2g.DocumentAmendService.CashEntry

global class CashEntry

holds details that can be amended after the cash entry has been posted. where the value for a field is null the documentamendservice will set that field's value to null on the cash entry, so if you want a value to be unchanged you must populate that field with its current value.

This class contains deprecated items.

Properties

Name Type Description
DocumentId Id unique string that identifies the cash entry.
Description String the cash entry's description.
Reference String the cash entry's reference.
BankAccountDimension1Id Id the bank account dimension 1 id for this cash entry.
BankAccountDimension2Id Id the bank account dimension 2 id for this cash entry.
BankAccountDimension3Id Id the bank account dimension 3 id for this cash entry.
BankAccountDimension4Id Id the bank account dimension 4 id for this cash entry.
ChargesGLADimension1Id Id the charges gla dimension 1 id for this cash entry.
ChargesGLADimension2Id Id the charges gla dimension 2 id for this cash entry.
ChargesGLADimension3Id Id the charges gla dimension 3 id for this cash entry.
ChargesGLADimension4Id Id the charges gla dimension 4 id for this cash entry.
SubAnalysis Map<String, Object> holds a list of custom fields and values that have been set up for sub-analysis mapping.
LineItems List<c2g.DocumentAmendService.CashEntryLine> holds values that you want to amend at line level. you only need to supply the values that you want to amend.

Methods

CashEntry

global CashEntry()

Creates an API version of an empty cash entry object for use with the DocumentAmendService.

Deprecated

The following items are deprecated and not supported for use. We recommend that you stop using these items to avoid exceptions.

Properties

Name Type Description Deprecation Details
BankAccountDimension1 CODADimension1 the bank account dimension 1 for this cash entry.
BankAccountDimension2 CODADimension2 the bank account dimension 2 for this cash entry.
BankAccountDimension3 CODADimension3 the bank account dimension 3 for this cash entry.
BankAccountDimension4 CODADimension4 the bank account dimension 4 for this cash entry.
ChargesGLADimension1 CODADimension1 the charges gla dimension 1 for this cash entry.
ChargesGLADimension2 CODADimension2 the charges gla dimension 2 for this cash entry.
ChargesGLADimension3 CODADimension3 the charges gla dimension 3 for this cash entry.
ChargesGLADimension4 CODADimension4 the charges gla dimension 4 for this cash entry.

c2g.DocumentAmendService.CashEntryLine

global class CashEntryLine

holds line details that can be amended after the document has been posted. you only need to supply the values that you want to amend.

Properties

Name Type Description
LineId Id unique string that identifies the line.
AccountReference String the line's account reference.
LineDescription String the line's description.
AccountDimension1 Id the line's account dimension 1 value.
AccountDimension2 Id the line's account dimension 2 value.
AccountDimension3 Id the line's account dimension 3 value.
AccountDimension4 Id the line's account dimension 4 value.
SubAnalysis Map<String, Object> holds a list of custom fields and values that have been set up for sub-analysis mapping at line level.

Methods

CashEntryLine

global CashEntryLine()

Creates an API version of an empty line object for use with the DocumentAmendService.

c2g.DocumentAmendService.Line

global class Line

holds line details that can be amended after the document has been posted. you only need to supply the values that you want to amend.

Properties

Name Type Description
LineId Id unique string that identifies the line.
LineDescription String the line's description.
Dimension1 Id the line's dimension 1 value.
Dimension2 Id the line's dimension 2 value.
Dimension3 Id the line's dimension 3 value.
Dimension4 Id the line's dimension 4 value.
SubAnalysis Map<String, Object> holds a list of custom fields and values that have been set up for sub-analysis mapping at line level.

Methods

Line

global Line()

Creates an API version of an empty line object for use with the DocumentAmendService.

© Copyright 2009–2022 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.