Enabling Self-Billing Credits
DE Gutschriftverfahren
FR autofacturation
← Setting Up Invoice Management
JustOn Billing & Invoice Management can create self-billing credits – a specific type of credit note, which is issued by the customer, replacing the invoice from the original supplier.
Summary
The creation of a self-billing credit is controlled by two settings:
Invoice Field | Required Value | Notes |
---|---|---|
Class |
Credit |
Is set if the grand total yields a negative amount. |
Type |
Purchased Service |
Is set using ON_Type on the invoice source object. |
Enabling the creation of self-billing credits involves at least:
- Adding the field
ON_Type
to the invoice source object - Enabling negative prices on invoice line items
For details on configuring the the bookkeeping data creation for credits, see Enabling Creditor Bookings.
Enabling Invoice Type
One condition for creating self-billing credits is that the invoice field Type
specifies the value Purchased Service
.
The ON field mechanism is a likely option for having this field set when generating invoices. To make use of it, you set the field ON_Type
to the invoice source object.
-
Navigate to the fields list of the corresponding object.
This can be either the Subscription object or the invoice source object for the generic invoice run.
-
Create the following new field.
API Name Data Type Description Target Value ON_Type Text (255)
Formula (Text)Specifies the invoice type, which controls downstream processes
Using a formula, you can apply custom logic to set the type on certain conditions.Purchased Service
Enabling Negative Prices
Another condition for creating self-billing credits is that the invoice class is set to Credit
. This is set automatically if the grand total of an invoice yields a negative amount.
There are two ways to achieve this:
- Keeping negative prices in the invoice line item source data
- Using a formula to force negative unit prices on invoice generation, as outlined below
Think of the following example: you run a marketplace, selling products a third party supplies. You create invoices for your buyers and credits to pay your suppliers from the same source data.
To this end, you set up two recipient-specific sets of ON fields for two generic invoice run configurations as introduced in Enabling Arbitrary Object Billing to Multiple Parties. In this context, you create two recipient-specific fields to pass the product price to the invoice line item:
- Navigate to the fields list of the source object.
-
Create and configure the required fields for both the supplier and the buyer.
For the fields required for the generic invoice run, see Billing Arbitrary Objects.
Assuming you create invoice line items from order products where the price is kept in the
List Price
field, you can use the followingON_UnitPrice
fields to handle both positive and negative price values:Suffixed API Name Data Type Example Value Notes ON_UnitPriceBuy Formula (Currency) ListPrice
Takes the original price from the ListPrice
field for invoices to the buyer.ON_UnitPriceSuppl Formula (Currency) ListPrice * (-1)
Converts the price from ListPrice
to a negative value for credits to the supplier.