Accounts
This component runs the Chart of Accounts (COA) function.
If you choose to create a debtor/receivables, creditor/payables or client account, you must reference the account code on the appropriate customer or supplier details using the customer or supplier component as a separate step.
Methods
- Amend
- Driver Type: SASI
- BulkCreateOrAmend
- Driver Type: DJI
- Closed
- Driver Type: SASI
- Create
- Driver Type: SASI
- CreateAsDraft
- Driver Type: SASI
- CreateOrAmend
- Driver Type: SASI
- CreateReplaceOrDelete
- Driver Type: SASI
- Delete
- Driver Type: SASI
- DeleteChildData
- Driver Type: SASI
- Hidden
- Driver Type: SASI
- Query
- Driver Type: Export
- Open
- Driver Type: SASI
- SuspendedHeld
- Driver Type: SASI
Mandatory fields
Some payload elements are mandatory, depending on the method you are using, or the data that is present.
For all methods, a value must be supplied for Account Code - payload element <AccountCode> except for the Query method where it is optional.
- Account Analysis
-
When creating or amending Analysis entries, a value must be supplied for:
- Analysis Code - payload element
<VAcntCatAnalysis_AnlCode> - Short Heading - payload element
<VAcntCatAnalysis_SHead>
- Analysis Code - payload element
- Bank Currency
-
When creating or amending Account Bank Currency details, a value must be supplied for:
- Account Bank Currency - payload element
<AccountBankCurrency.CurrencyCode>
- Account Bank Currency - payload element
- Deleting Child Data
-
When deleting child data, a value must be supplied for:
-
Account Code - payload element
<AccountCode> - Account Bank Currency - payload element
<AccountBankCurrency.CurrencyCode>
-
Related data
- Standard Text
- Standard Text Language
- Account Analysis 1-10
- Bank Currency
The attachment of Standard Text is supported by these methods:
- Amend
- Create
- CreateAsDraft
- CreateOrAmend
- CreateReplaceOrDelete
If the standard text supplied in the payload does not exist then it is created. However, it is not possible to amend existing standard text by this means; existing standard text is attached by key only, and any non-key fields in the SSC payload are ignored. Standard text can be amended using the Standard Text Language Variants function from SunSystems or the SSC component StandardTextLanguageVariants.
The standard text to be attached is language specific and therefore must be included within the StandardTextLang part of the payload in order to be detected by the SSC component, as shown in the following example:
<Accounts>
...
<StandardText>
<StandardTextLang>
<Description>Delivery</Description>
<LanguageCode>1</LanguageCode>
<Paragraph1>Follow the special Instructions on the Invoice</Paragraph1>
<ShortHeading>Delivery</ShortHeading>
<StandardTextClassCode>SALES</StandardTextClassCode>
<StandardTextCode>DELIVERY</StandardTextCode>
</StandardTextLang>
</StandardText>
</Accounts>