Accounts Payable¶
- A/P Adjustments
- A/P Control Payment
- A/P Invoice
- A/P Payment
- A/P Recurring Invoice
- A/P Remit To
- A/P Vendor
- A/P Vendor Comment
A/P Adjustments¶
Views/Record Types Supported¶
Batches, adjustments and G/L lines
Update¶
Insert only
Limitations¶
None
Writeback fields¶
| AP0030.CNTBTCH | Batch Number |
| AP0030.CNTENTER | Batch Entry Count |
| AP0030.AMTENTER | Total of Entries |
| AP0031.CNTBTCH | Entry Batch Number |
| AP0031.CNTENTR | Entry Number |
Implementation Notes¶
Batches¶
Each batch record (AP0030) makes a new batch that holds the adjustments under it. IMan does not add adjustments to a batch that is already in Sage. When the description is not mapped, IMan uses “Realisable IMan Import Batch”.
Batch Status (BATCHSTAT) is the status IMan gives the batch when it has imported the adjustments. 7 is Ready To Post. When it is not mapped, the batch stays open.
The batch record must be the top record of the import.
Adjusting a Document¶
Each adjustment (AP0031) adjusts one document. Set the Vendor (IDVEND), the Document Number (IDINVC) and the Payment Number (CNTPAYM) of the document's schedule on the adjustment. The payment number is 1 when the document has a single payment.
Set the account of each G/L line (AP0034) in IDACCT, or a distribution code in IDDISTCODE, and the amount in AMTDIST. A positive amount debits the account and raises the balance of the document. A negative amount credits the account and lowers it.
Batch Posting¶
The resulting batch may be posted by setting the ‘Post Created Batch’ (POSTCREATEDBATCH) field to one of the following values.
| Value | Notes |
|---|---|
| 0 | Do not post the batch. |
| 1 | Post the batch if there are no errors during batch creation. |
| 2 | Post the batch irrespective of any errors. The batch will only be posted if the Error Action has been set to either Reject Record or Continue; when set to Abort the batch will not be posted. |
A batch that IMan does not post because of errors keeps its status. The audit reads "Batch n was not posted due to errors during import."
A/P Control Payment¶
Views/Record Types Supported¶
N/A
Update¶
Insert only
Limitations¶
None
Implementation Notes¶
Sets the status of one scheduled payment of an A/P Invoice, for example to place it on hold. Set the Vendor (IDVENDSTRT), the Document Number (IDDOCSTART) and the payment number (CNTPAYSCHD). SWSTATUS is the status. The due date (DATEDUE), payment limit (AMTPYMLM), discount (AMTDISC) and discount date (DATEDISC) can also be set.
A/P Invoice¶
Views/Record Types Supported¶
All inc. Intercompany Transactions
Update¶
Insert only
Limitations¶
None
Writeback Fields¶
| AP0020.CNTBTCH | Batch Number |
| AP0020.CNTINVCENT | Number of Entries |
| AP0020.AMTENTR | Batch Total |
| AP0021.CNTBTCH | Entry Batch Number |
| AP0021.CNTITEM | Entry Number |
| AP0022.CNTBTCH | Entry Detail Batch Number |
| AP0022.CNTITEM | Entry Detail Entry Number |
| AP0022.CNTLINE | Entry Detail Line Number |
Implementation Notes¶
Entry record can be either A/P Invoice Batch (AP0020) or A/P Invoice Header (AP0021).
Batches¶
Each batch record (AP0020) makes a new batch that holds the invoices under it. IMan does not add invoices to a batch that is already in Sage. When the description is not mapped, IMan uses “Realisable IMan Import Batch”.
When the entry record is AP0021, the import makes one batch. IMan takes Post Created Batch (POSTCREATEDBATCH), Delete Empty/Erroneous Batch (DELEMPTYBATCH) and the batch description (BTCHDESC) from the first invoice.
Batch Status (BTCHSTTS) is the status IMan gives the batch when it has imported the invoices. 7 is Ready To Post. When it is not mapped, the batch stays open.
Document Total¶
Auto Calculate Document Total (AUTOTOTCALC) – When this is set to True the Document Total field, as found on the Document Tab of the User Interface will be automatically calculated by summing the detail lines and any exclusive taxes.
Entering Tax¶
The Tax Amount Control (SWCALCTX) and Tax Base Control (SWTXBSECTL) fields set where the tax amounts (AMTTAXx) and the tax bases (BASETAXx) come from:
| Value | Notes |
|---|---|
| 0 | Enter. IMan sets the values on the invoice and on its details. |
| 1 | Calculate. Sage calculates the tax. |
| 2 | Distribute. IMan sets the values on the invoice, and Sage distributes them over the details. |
SWTAXINCLx denotes that an amount includes the tax. The details take the value on the invoice when they have none of their own.
Distributing Tax¶
Tax can be distributed using the invoice header over the detail lines as per the Distribute Tax button found on the Tax tab of the user interface. To distribute tax set the following fields with respective values:
| Field | Description | Value |
|---|---|---|
| SWCALCTX & SWTXBSECTL | Tax Amount Control & Tax Base Control | 0 or 2 |
| DISTTAXES | Distribute Taxes Across Details | True |
Job-Related Invoices¶
Set Job Related (SWJOB) to 1 on the invoice. Each detail then takes the Contract (CONTRACT), Project (PROJECT), Category (CATEGORY) and Resource (RESOURCE) it belongs to, and optionally BILLTYPE, BILLDATE, BILLRATE, IDITEM, UNITMEAS, QTYINVC and AMTCOST. IMan does not set these fields on an invoice that is not job-related.
Batch Posting¶
The resulting batch may be posted by setting the ‘Post Created Batch’ (POSTCREATEDBATCH) field to one of the following values.
| Value | Notes |
|---|---|
| 0 | Do not post the batch. |
| 1 | Post the batch if there are no errors during batch creation. |
| 2 | Post the batch irrespective of any errors. The batch will only be posted if the Error Action has been set to either Reject Record or Continue; when set to Abort the batch will not be posted. |
A batch that IMan does not post because of errors keeps its status. The audit reads "Batch n was not posted due to errors during import."
Deleting Empty/Erroneous Batches¶
If an error occurs during the creation of a batch OR if the batch is empty i.e. has no entries, the batch can be deleted by setting the 'Delete Empty/Erroneous Batch' (DELEMPTYBATCH) to '1'. IMan marks the batch as deleted and prefixes its description with “Deleted - ”. It takes the entries that imported without error with it. The batch stays in Sage's list of batches. IMan does not delete a batch that it has posted.
| Value | Notes |
|---|---|
| 0 | Do not delete the batch. |
| 1 | Delete the batch. |
A/P Payment¶
Views/Record Types Supported¶
Batches, payments, lines, prepayment jobs, payment jobs and adjustment details
Update¶
Insert only
Limitations¶
None
Writeback Fields¶
| AP0030.CNTBTCH | Batch Number |
| AP0030.CNTLSTRMIT | Last Entry Number |
| AP0030.FUNCAMOUNT | Functional Batch Total |
| AP0031.CNTBTCH | Entry Batch Number |
| AP0031.CNTENTR | Entry Number |
| AP0031.DOCNBR | Document Number (Set when payment is auto-numbered) |
Implementation Notes¶
Batches¶
Each batch record (AP0030) makes a new batch that holds the payments under it. IMan does not add payments to a batch that is already in Sage. When the description is not mapped, IMan uses “Realisable IMan Import Batch”.
Batch Status (BATCHSTAT) is the status IMan gives the batch when it has imported the payments. 7 is Ready To Post. When it is not mapped, the batch stays open.
The batch record must be the top record of the import. It names the bank (IDBANK) and its currency (CODECURN), and takes the rate of the batch in RATETYPE, DATERATE and RATEEXCHHC.
Payment Types¶
The AP0031.RMITTYPE field sets the type of payment:
| Value | Notes |
|---|---|
| 1 | Payment. Each line (AP0033) is a document the payment pays. |
| 2 | Prepayment. Document Type (DOCTYPE) and Matching Document Number (IDINVCMTCH) name the document it is for. AMTPPAYTC is the amount and DATEACTVPP the activation date. It has no lines. |
| 4 | Misc. Payment. Each line (AP0033) is a G/L line. Set the account in IDACCT, or a distribution code in IDDISTCODE, and the amount in AMTDISTTC. |
IMan rejects any other type.
Sage calculates the amount of a payment or a miscellaneous payment from its lines.
Applying Payments¶
The lines of an applied payment (AP0033) name the document paid (IDINVC) and the amount applied (AMTPAYM). The amount cannot be more than the balance of the document. Sage takes the discount (AMTERNDISC) on top of the amount. The lines may also take:
- Payment Number (CNTPAYM) – the payment of a multi-payment document's schedule that the line pays.
- A write-off – Adjustment Detail records (ADJAP0034) under the line, with the write-off's description (TEXTADJ) and reference (GLREF) on the line. A negative amount (AMTDIST) lowers the balance of the document.
- A job split – on a job-related document, Payment Job records (PAYAP0034) under the line, each naming one of the document's job lines by Contract, Project, Category and Resource with the amount paid against it. Without them Sage spreads the line's amount over the document's job lines.
A prepayment or miscellaneous payment is made job-related by setting Job Related (SWJOB) to 1 on the payment (AP0031):
- Prepayment – Prepay Job records (PPAP0034) under the payment, each with the Contract, Project, Category, Resource and amount. Together they must take the whole prepayment amount (AMTPPAYTC); Sage refuses the prepayment otherwise.
- Miscellaneous payment – the Contract, Project, Category and Resource on each line (AP0033).
Entering Tax on a Miscellaneous Payment¶
Sage calculates the tax on a miscellaneous payment. To enter the tax from the source set SWTXAMTCTL, for the tax amounts, and SWTXBSECTL, for the tax bases, to 0. IMan then sets TXAMTxTC and TXBSExTC for each tax authority, on the payment and on its lines. Set Distribute Taxes Across Details (DISTTAXES) to 1 to distribute the tax of the payment over its lines.
Batch Posting¶
The resulting batch may be posted by setting the ‘Post Created Batch’ (POSTCREATEDBATCH) field to one of the following values.
| Value | Notes |
|---|---|
| 0 | Do not post the batch. |
| 1 | Post the batch if there are no errors during batch creation. |
| 2 | Post the batch irrespective of any errors. The batch will only be posted if the Error Action has been set to either Reject Record or Continue; when set to Abort the batch will not be posted. |
A batch that IMan does not post because of errors keeps its status. The audit reads "Batch n was not posted due to errors during import."
Deleting Empty/Erroneous Batches¶
If an error occurs during the creation of a batch OR if the batch is empty i.e. has no entries, the batch can be deleted by setting the 'Delete Empty/Erroneous Batch' (DELEMPTYBATCH) to '1'. IMan marks the batch as deleted and prefixes its description with “Deleted - ”. It takes the entries that imported without error with it. The batch stays in Sage's list of batches. IMan does not delete a batch that it has posted.
| Value | Notes |
|---|---|
| 0 | Do not delete the batch. |
| 1 | Delete the batch. |
A/P Recurring Invoice¶
Views/Record Types Supported¶
All
Update¶
Insert/Update
Limitations¶
None
Writeback Fields¶
| AP0065.CNTLINE | Line Number |
Implementation Notes¶
Taxes¶
Tax can be distributed using the invoice header over the detail lines as per the Distribute Tax button found on the Tax tab of the user interface. To distribute tax set the following fields with respective values:
| Field | Description | Value |
|---|---|---|
| SWCALCTAX & SWTXBSECTL | Tax Amount Control & Tax Base Control | 0 or 2 |
| DISTTAXES | Distribute Taxes Across Details | True |
Updating Recurring Payables¶
When updating an existing recurring payable, set the Vendor & Recurring Payable fields, and an Update Operation that includes Update.
To update an existing line it must be matched to the line being updated. Set either the CNTLINE or IDDISTCODE field.
To control which should be used for matching the ‘Line Match Method’ (MATCHMTD) field controls how the lines are matched.
| Field Id | Line Match Method Value | Notes |
|---|---|---|
| Line Number (CNTLINE) (Default) | 0 | The value may be obtained either at the time the Recurring Payable is created, or via a lookup against the Recurring Payable Details. |
| Distribution Code (IDDISTCODE) | 1 | When matching by distribution code, ensure there are no duplicate distribution codes in the recurring payable. When duplicate distributions are present only the first one is updated. |
IMan adds a line that matches no line after the last line. Lines that are not in the IMan dataset stay as they are.
Job-Related Recurring Payables¶
Set Job Related (SWJOB) to 1 on the recurring payable. Each line then takes the Contract (CONTRACT), Project (PROJECT), Category (CATEGORY) and Resource (RESOURCE) it belongs to, and optionally BILLTYPE, BILLRATE, IDITEM, UNITMEAS, QTYINVC and AMTCOST.
A/P Remit To¶
Views/Record Types Supported¶
All
Update¶
Insert/Update
Limitations¶
None
A/P Vendor¶
Views/Record Types Supported¶
All
Update¶
Insert/Update
Limitations¶
None
A/P Vendor Comment¶
Views/Record Types Supported¶
All
Update¶
Insert only
Limitations¶
None