Accounts Receivable¶
- A/R Adjustments
- A/R Comment
- A/R Customer
- A/R Invoice
- A/R Invoice Print
- A/R Item (Setup)
- A/R National Accounts
- A/R Recurring Invoice
- A/R Receipt
- A/R Refund
- A/R ShipTo Address
- A/R Statement Print
A/R Adjustments¶
Views/Record Types Supported¶
Batches, adjustments and G/L lines
Update¶
Insert only
Limitations¶
None
Writeback Fields¶
| AR0041.CNTBTCH | Batch Number |
| AR0041.CNTENTER | Batch Entry Count |
| AR0041.AMTENTER | Total of Entries |
| AR0042.CNTBTCH | Entry Batch Number |
| AR0042.CNTITEM | Entry Number |
| AR0045.CNTSEQ | Entry Detail Line Number |
Implementation Notes¶
Batches¶
Each batch record (AR0041) 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 (AR0042) adjusts one document. Set the Customer (IDCUST), 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 (AR0045) in IDACCT, or a distribution code in IDDISTCODE, and the amount in AMTDIST. A positive amount debits the account and lowers the balance of the document. A negative amount credits the account and raises it.
Document Line (DOCLINE) is 0 to adjust the whole document. On a job-related document it is the line number of the job line to adjust, and 0 is not allowed. The line takes the job of the document line.
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/R Comment¶
Views/Record Types Supported¶
All
Update¶
Insert only
Limitations¶
None
A/R Customer¶
Views/Record Types Supported¶
All
Update¶
Insert/Update
Limitations¶
None
A/R Invoice¶
Views/Record Types Supported¶
All
Update¶
Insert only
Limitations¶
None
Writeback Fields¶
| AR0031.CNTBTCH | Batch Number |
| AR0031.CNTINVCENT | Batch Entry Count |
| AR0031.AMTENTR | Batch Total |
| AR0032.CNTBTCH | Entry Batch Number |
| AR0032.CNTITEM | Entry Number |
| AR0032.IDINVC | Document Number (Set when is auto-numbered) |
| AR0032.DATEINVC | Document Date |
| AR0032.PPCHECKNUM | Prepayment Check/Receipt Number |
| AR0032.PPDOCNBR | Prepayment Document Number |
| AR0033.CNTBTCH | Entry Detail Batch Number |
| AR0033.CNTITEM | Entry Detail Entry Number |
| AR0033.CNTLINE | Entry Detail Line Number |
Implementation Notes¶
Entry record can be either A/R Invoice Header (AR0032) or A/R Invoice Batch (AR0031).
Batches¶
Each batch record (AR0031) 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 AR0032, the import makes one batch. IMan takes Post Created Batch (POSTCREATEDBATCH) and Delete Empty/Erroneous Batch (DELEMPTYBATCH) 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.
Entering Tax¶
Sage calculates the tax from the tax group and the tax classes. To enter the tax from the source set Tax Override (SWMANTX) to 1. IMan then sets AMTTAXx, the tax amount for each tax authority, on the invoice and on its details. BASETAXx is the tax base. SWTAXINCLx on a detail denotes that its amount includes the tax.
TXAMTxRC is the tax in the tax reporting currency. Set SWTXCTLRC to 0 to enter it.
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 |
|---|---|---|
| SWMANTX | Tax Override | 1 |
| DISTTAXES | Distribute Taxes Across Details | True |
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."
Prepayments¶
Prepayment Made Against Invoice (SWPREPAY)¶
When True a prepayment will be made against the invoice. When a prepayment is made against the invoice the following fields are processed:
| Field Id | Name | Description |
|---|---|---|
| PPARBTCHAPPEND (Optional) | Append Prepayment To Existing Batch | Specifies whether to append the prepayment to an existing open A/R Receipt Batch. If IMan cannot find a batch that matches, it will create a new A/R batch. When the field is not mapped, IMan creates one batch per bank and currency in a run. Set it to one of these values:
|
| PPBANKCODE (Mandatory) | Bank Code | The bank to which the deposit is made. |
| PPARBTCHDESC (Optional) | A/R Prepayment Receipt Batch | When not specified the A/R Receipt Batch Description defaults to: “A/R Invoice Prepayment” |
| PPBANKCURN (Optional) | Bank Currency | The currency of the receipt batch. Set it when the bank holds more than one currency. |
| PPDEPSTNBR (Optional) | Deposit Number | |
| PPDEPDATE (Optional) | Deposit Date | |
| PPDEPCOMMENT (Optional) | Deposit Comment | |
| PPDATERMIT (Optional) | Receipt Date | |
| PPDATEBUS (Optional) | Posting Date | |
| PPTEXTPAYOR (Optional) | Payor | |
| PPTEXTRMIT (Optional) | Entry Description | |
| PPTXTRMITREF (Optional) | Entry Reference | |
| PPCODEPAYM (Optional) | Payment Code | |
| PPIDRMIT (Optional) | Check/Receipt No. | |
| PPAMTRMIT (Mandatory) | Receipt Amount | The receipt amount, in the currency of the bank. |
| PPCODECURNBC (Optional) | Receipt Currency | |
| PPRATEEXCHTC (Optional) | Customer Rate | |
| PPDATERATETC (Optional) | Customer Rate Date | |
| PPRATETYPETC (Optional) | Customer Rate Type | |
| PPRATEEXCHHC (Optional) | Bank Rate | |
| PPDATERATEHC (Optional) | Bank Rate Date | |
| PPRATETYPEHC (Optional) | Bank Rate Type | |
| PPCHECKNUM (Optional) | Check/Receipt Number | This is a writeback field, but may also be specified. |
| PPDOCNBR (Optional) | Receipt Document Number | Writeback field to capture A/R Prepayment Document Number |
IMan saves the invoice before it makes the prepayment. When Sage refuses the prepayment, the invoice stays in its batch without one. The A/R receipt batch stays open. Post it in A/R. Post Created Batch and Delete Empty/Erroneous Batch apply to the invoice batch only.
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 a Billing Date (BILLDATE). IMan does not set these fields on an invoice that is not job-related.
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/R Invoice Print¶
This allows A/R invoices & credit notes to be printed to either a local printer or exported to file.
Views/Record Types Supported¶
N/A
Update¶
Create only
Limitations¶
None
Writeback Fields¶
None
Implementation Notes¶
| Field | Description |
|---|---|
| Print Invoice | When set to true will print the report to the specified printer. |
| Printer Name | The name of the locally installed printer. The printer cannot be a network printer. |
| Export File Path | The file to export the report to. The extension of the file name, .pdf or .rtf, sets the format. |
| Invoice Form | The file name of the Crystal Report form, for example ARDINVO.RPT. |
| Batch Number & Batch Entry | When populated will print the invoice using the batch and entry numbers. They are used in preference to the customer and invoice numbers. |
| Customer & Invoice | When populated will print the invoice using customer and invoice numbers. |
The report leaves out an invoice with errors, and one in a batch with errors. Sage flags the invoice as printed when IMan prints or exports it.
A/R Item (Setup)¶
Views/Record Types Supported¶
All
Update¶
Insert & Update
Limitations¶
None
A/R National Accounts¶
Views/Record Types Supported¶
All
Update¶
Insert /Update
Limitations¶
None
A/R Recurring Invoice¶
Views/Record Types Supported¶
All
Update¶
Insert & Update
Limitations¶
None
Writeback Fields¶
| AR0047.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 |
|---|---|---|
| SWMANLTX | Tax Override | 1 |
| DISTTAXES | Distribute Taxes Across Details | True |
Updating Recurring Invoices¶
When updating an existing recurring charge, set the Customer & Recurring Charge 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 IDDIST 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 Invoice is created, or via a lookup against the Recurring Charge Details. |
| Distribution Code (IDDIST) | 1 | When matching by distribution code, ensure there are no duplicate distribution codes in the recurring charge. 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.
Deleting Lines¶
Existing lines can be deleted by setting the Delete Record (SYS.DELETE) field on the line to true. The line must match the line to delete.
Job-Related Recurring Invoices¶
Set Job Related (SWJOB) to 1 on the recurring charge. Each line then takes the Contract (CONTRACT), Project (PROJECT), Category (CATEGORY) and Resource (RESOURCE) it belongs to.
A/R Receipt¶
Views/Record Types Supported¶
Batches, receipts, lines, prepayment jobs, receipt jobs and adjustment details
Update¶
Insert only
Limitations¶
None
Writeback Fields¶
| AR0041.CNTBTCH | Batch Number |
| AR0041.CNTENTER | Batch Entry Count |
| AR0041.FUNCAMOUNT | Batch Functional Total |
| AR0042.CNTBTCH | Entry Batch Number |
| AR0042.CNTITEM | Entry Number |
| AR0042.DOCNBR | Document Number (Set when document is auto-numbered) |
Implementation Notes¶
Batches¶
Each batch record (AR0041) makes a new batch that holds the receipts under it. IMan does not add receipts 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 receipts. 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). Deposit Number (DEPSTNBR) must be an existing deposit slip. When it is not mapped, each batch gets a new deposit slip.
Receipt Types¶
The AR0042.RMITTYPE field sets the type of receipt:
| Value | Notes |
|---|---|
| 1 | Receipt. Each line (AR0044) is a document the receipt pays. |
| 2 | Prepayment. Document Type (DOCTYPE) and Matching Document Number (IDINVCMTCH) name the document it is for. It has no lines. |
| 3 | Unapplied Cash. It has no lines. |
| 5 | Misc. Receipt. Each line (AR0044) 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.
Receipt Amount (AMTRMIT) is the amount received, in the currency of the bank. Sage does not calculate it from the lines. Any part that the lines do not apply stays unapplied.
Autocash – When PROTYPE is 2 on an applied receipt (RMITTYPE 1), Sage applies the receipt amount to the customer's open documents. IMan does not read the lines.
Applying Receipts¶
The lines of an applied receipt (AR0044) 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 (ADJAR0045) under the line, with the write-off's description (TEXTADJ) and reference (GLREF) on the line. A positive amount (AMTDIST) lowers the balance of the document.
- Customer (IDCUST) – only when the customer of the receipt is a national account. It is the member whose document the line pays.
- A job split – on a job-related document, Receipt Job records (RCPAR0045) 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 prorates the line's amount over the document's job lines.
A prepayment or miscellaneous receipt is made job-related by setting Job Related (SWJOB) to 1 on the receipt (AR0042):
- Prepayment – Prepay Job records (PPAR0045) under the receipt, each with the Contract, Project, Category, Resource and amount. Together they must take the whole receipt amount (AMTRMIT); Sage refuses the prepayment otherwise.
- Miscellaneous receipt – the Contract, Project, Category and Resource on each line (AR0044).
Auto Calculate Receipt Amount (AUTOTOTCALC) – When this is set to 1 on an applied receipt (RMITTYPE 1) or a miscellaneous receipt (RMITTYPE 5), the Receipt Amount (AMTRMIT) is calculated from the detail lines, including their taxes on a miscellaneous receipt, in place of any mapped value, so the receipt has no unapplied amount. It is not used with Autocash (PROTYPE 2). When it is 0 or not mapped, the mapped Receipt Amount is used.
Entering Tax on a Miscellaneous Receipt¶
Sage calculates the tax on a miscellaneous receipt. To enter the tax from the source set SWTXAMTCTL to 0. IMan then sets TXAMTxTC, the tax amount for each tax authority, on the receipt and on its lines. Set Distribute Taxes Across Details (DISTTAXES) to 1 to distribute the tax of the receipt 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/R Refund¶
Views/Record Types Supported¶
Batches, refunds and the documents they refund
Update¶
Insert only
Limitations¶
Job fields cannot be set. When a refund is for a job-related document, Sage allocates it to the jobs of the document.
Writeback Fields¶
| AR0140.CNTBTCH | Batch Number |
| AR0140.ENTRYCNT | Batch Entry Count |
| AR0140.ENTRYTOT | Total of Entries |
| AR0141.CNTBTCH | Entry Batch Number |
| AR0141.CNTITEM | Entry Number |
| AR0141.IDINVC | Document Number (Set when refund is auto-numbered) |
| AR0142.CNTBTCH | Entry Detail Batch Number |
| AR0142.CNTITEM | Entry Detail Entry Number |
| AR0142.CNTLINE | Entry Detail Line Number |
Implementation Notes¶
Entry record can be either A/R Refund Batch (AR0140) or A/R Refund Header (AR0141).
Each batch record makes a new batch. When its description (BTCHDESC) is not mapped, IMan uses “Realisable IMan Import Batch”. When the entry record is AR0141, the import makes one batch, and IMan sets no description.
IMan does not post refund batches. Post them in A/R.
A/R ShipTo Address¶
Views/Record Types Supported¶
All
Update¶
Insert/Update
Limitations¶
None
A/R Statement Print¶
This allows A/R Statements can be printed or exported.
Statements are generated one customer at a time, which is specified by the IMan dataset.

The statement print does not give you the possibility to print a range of statements like you can through the UI.
Views/Record Types Supported¶
N/A
Update¶
Create only
Limitations¶
Letter/Label printing is not supported.
Writeback Fields¶
None
Implementation Notes¶
| Field | Description |
|---|---|
| Print Statement | When set to true will print the report to the specified printer. |
| Printer Name | The name of the locally installed printer. The printer cannot be a network printer. |
| Export File Path | The file to export the report to. The extension of the file name, .pdf or .rtf, sets the format. |
| Statement Form | The file name of the Crystal Report form, for example ARSTMT10.RPT. |
| Customer | The customer id (or national account) to print the statement for. |
| Run Type | Set to 0 for Customer Statements (default) and 1 for National Accounts. |
| Run Date (DATERUN) & Cutoff Date (DATECUTOFF) | Default to today's date on the IMan server. |
| Dunning Message (IDDUNNING) | Defaults to DEFAULT. The code must exist in A/R. |
| INVCDATESW | 0 (the default) ages the statement by due date and 1 by document date. |
| Remaining Fields | Are used to specify the other parameters used to generate the statement. |
IMan posts the statement run for each record, including a record that does not print or export the statement. Sage then updates the last statement date and amount of the customer.