Crediting a Bill and Rebilling

For a bill rebill, you must pass at least two AHDR (adjustment header) lines to the interface: one for the credit and one for the rebill. Use the ADJ_TRANS_TYPE CRALL for the credit, and RBALL for the rebill. You must pass both lines under the same INTFC_ID, but with different interface line numbers (INTFC_LINE_NUM). Both lines must reference the invoice to be adjusted.

In addition to the two AHDR lines, you must pass any delta lines for the rebill under the same INTFC_ID. Delta lines are the lines that have changed from the original; they have been added, replaced, or deleted. Delta lines must reference a TRANS_TYPE_BI of LINE and ADJ_TRANS_TYPE of RBALL. They must also specify the line sequence number of the line to be adjusted in the LINE_SEQ_TO_ADJ field. Use the ADJ_DELTA_ACTION field to specify what action to take on the lines. This is the only type of adjustment that can use the ADJ_DELTA_ACTION field. When building the rebill, the valid values for ADJ_DELTA_ACTION are:

Field or Control Description

ADD

Add this bill line.

RPL (replace)

Replace the specified line with this line.

DEL (delete)

Do not include the specified line.

Note:

AE and DS entries from the original bill are not carried forward on an RPL action. You must pass any associated AE, DS, and DDS lines if the line has been replaced or added. Notes are copied over and new NOTE lines may be sent.

If the only change to the rebill is at the header level, you are required to send only two AHDR lines. For example, if the only change is to the payment terms (where all lines are the same) for the rebill, you must pass an AHDR line that contains the correct payment terms.

The AHDR line for the rebill must contain all values that are to appear on the rebill header. The system uses current defaults for fields that are left blank on this line. If you pass as a blank field that did not appear by default, it appears as a blank on the rebill header. For example, there is no defaulting logic for contract number. If the original bill header referenced contract number ABC, you must supply this value on the AHDR record to display it on the rebill. If you do not supply it, the field is blank on the rebill header.

The following example demonstrates how to populate the staging area for a credit and rebill of invoice 00009101112:

INTFC_ID INTFC_LINE_NUM TRANS_TYPE_BI TRANS_TYPE_SEQ_NUM ADJ_TRANS_TYPE

10015

1

AHDR

1

CRALL

10015

2

AHDR

1

RBALL

10015

3

LINE

1

RBALL

10015

4

LINE

1

RBALL

10015

5

LINE

1

RBALL

INTFC_ID INTFC_LINE_NUM INVOICE_TO_ADJ LINE_SEQ_TO_ADJ ADJ_DELTA_ACTION

10015

1

00009101112

 

 

10015

2

00009101112

 

 

10015

3

00009101112

2

RPL

10015

4

00009101112

0

ADD

 10015

5

00009101112

1

DEL

Note:

The bill-by concept is not used to group the delta lines onto the rebill header. The grouping is based strictly on the BUSINESS_UNIT and INVOICE_TO_ADJ fields.