action.skip

Enabling Margin Scheme-Based Bookings

DE Differenzbesteuerung
FR taxation sur la marge

← Bookkeeping Data Creation Use Cases

This article describes how to configure the bookkeeping data generation for invoices if your business pays taxes on profit margins.

Summary

JustOn Billing & Invoice Management controls the booking data creation using dedicated configurations on invoice line items, G/L account settings and global settings. The key setting to cover the current use case is the Margin Scheme revenue recognition rule on the invoice line item, which makes the software create separate booking details for the defined margin and the applicable taxes.

These are the minimum required settings:

Object Field Value
Global Settings Create Bookkeeping Data true
Assignment Rules - G/L Account G/L Account 8193
G/L Account 2 8191
Business Entity business entity name
Collective Account Booking Account 1776
Type Tax
Account |
Invoice
ON_DebtorNo|
DebtorNo
debtor account number
Invoice Line Item Revenue Recognition Rule Margin Scheme
Margin margin value

Use Case Outline

An invoice for reselling a second-hand good under a margin scheme may look like this:

Title Purchase Price Margin Sale Price
Oldie
margin scheme applies
800,00 200,00 1000,00
VAT 19% on 168,07 net margin 31,93
Grand Total 1000,00

Conditions

To illustrate the calculation and booking approaches, let us assume the following conditions:

  • Invoice shows gross values for purchase price, margin and sales price
  • Separate bookings for the net revenue (on the margin) and the corresponding VAT

Booking Accounts

The bookings are expected to be made to the following accounts:

Account name Account no.
SKR 03
Configuration Type Booking Detail Target Field
Revenue 0% VAT 8193 G/L Account Booking Account
Margin Revenue 19% VAT 8191 G/L Account Booking Account
VAT 19% 1776 Collective Account Booking Account
Debtor 12345 Debtor number Contra Booking Account

Expected Postings

The invoice amount (1000,00) is distributed from the debtor account to:

  • Revenue 0% VAT → 800,00
  • Margin Revenue 19% VAT → 168,07
  • VAT 19% → 31,93
Posting Debit to account Credit to account Amount
1 Debtor (12345) Revenue 0% VAT (8193) 800,00
2 Debtor (12345) Margin Revenue 19% VAT (8191) 168,07
3 Debtor (12345) VAT 19% (1776) 31,93

With respect to the booking accounts, the following postings will be recorded:

Debtor (12345)
Posting Debit Credit
1 800,00
2 168,07
3 31,93
Revenue 0% VAT (8193)
Posting Debit Credit
1 800,00
Margin Revenue 19% VAT (8191)
Posting Debit Credit
2 168,07
VAT 19% (1776)
Posting Debit Credit
3 31,93

Required Configuration

JustOn Billing & Invoice Management controls the booking data creation using dedicated configurations on invoice line items, G/L account settings, collective account settings and global settings. Enabling the bookkeeping data generation for the outlined use case involves the following configuration steps:

In addition, your accounting may optionally require to configure booking texts, allocate cost centers or profit centers, or specify cost objects.

Activating Booking Data Creation

In order to globally enable the creation of bookkeeping data, the feature must be activated in the global settings.

  1. Click to enter Setup, then open Custom Settings.

    In Salesforce Lightning, navigate to Custom Code > Custom Settings.

    In Salesforce Classic, navigate to Develop > Custom Settings.

  2. Click Manage in the row of Global Settings.

  3. Click Edit in the Default row.
  4. Select the checkbox Create Bookkeeping Data.
  5. Click Save.

    Once enabled, the bookkeeping data is generated automatically upon invoice finalization.

Info

Once created, the booking details can no longer be modified or deleted. In case of errors, however, you can regenerate booking details for invoices.

Enabling Booking Accounts

To provide for the correct booking account allocation, you create dedicated G/L Account Assignment Rules and Collective Account settings.

Booking margin revenue and taxes according to the outlined use case requires the following booking accounts:

Account name Account no.
SKR 03
Configuration Type Booking Detail Target Field
Revenue 0% VAT 8193 G/L Account Booking Account
Margin Revenue 19% VAT 8191 G/L Account Booking Account
VAT 19% 1776 Collective Account Booking Account
Debtor 12345 Debtor number Contra Booking Account

Remember that depending on your accounting system, the booking account numbers may differ.

  1. Create an Assignment Rules - G/L Account setting to book the revenue values.

    To cover the outlined use case, you need the following setting:

    Name G/L Account G/L Account 2 Business Entity
    Margin Revenue 8193 8191 business entity name

    For details, see Configuring G/L Account.

  2. Create a Collective Account setting for the tax bookings.

    To cover the outlined use case, you need the following setting:

    Name Booking Account Type
    VAT 19% 1776 Tax

    Depending on your requirements, your Collective Account setting may, in addition, need to define the Business Entity.

    For details, see Configuring Collective Accounts.

  3. Enable the debtor account number.

    Depending on your requirements, the way to define the debtor account number differs:

    For customer-specific debtor numbers, you use the Account field ON_DebtorNo.

    1. Navigate to the fields list of the Account object.
    2. Create the following new field.

      API Name Data Type Description Example Values
      ON_DebtorNo Text (255)
      or
      Formula
      Specifies the contra account number for booking details. If configured as a formula, it can determine the value based on other fields. 12345
      AnotherField__c

    To support collective debtors (or debtor groups), you use the Invoice field DebtorNo.

    Using a collective debtor number via the Invoice field DebtorNo does not require a collective account setting. Instead, you just set the intended booking account number to be transferred to the booking detail.

    1. Navigate to the fields list of the Invoice object.
    2. Create the following new field.

      API Name Data Type Description Example Values
      DebtorNo Text (255)
      or
      Formula
      Specifies the contra account number for booking details. If configured as a formula, it can determine the value based on other fields. 12345
      AnotherField__c

    If the field is configured as a text, you can use the ON field mechanism to have it set using values from invoice source objects. Be aware, however, that if the field is configured as a formula, the ON field mechanism will not overwrite the DebtorNo value.

    Info

    When creating booking details, the Invoice field DebtorNo takes precedence over the Account field ON_DebtorNo. If the Invoice field DebtorNo is empty or does not exist, JustOn Billing & Invoice Management uses the Account field ON_DebtorNo to set Contra Booking Account in the booking detail.

Preparing Required Invoice Line Item Information

JustOn Billing & Invoice Management writes margin bookings if

  • the revenue recognition rule Margin Scheme is set in the invoice line item field Recognition Rule
  • the field Margin of the invoice line item is set

In addition, the outlined use case requires the Gross Line Item checkbox set true to disable the tax deduction for the purchase price portion (total minus margin).

The ON field mechanism is a likely option for having these fields specified automatically on the invoice line item when generating invoices. Alternatively, you can use Salesforce flows or other automation tools.

To make use of the ON field mechanism, you set the fields ON_RecognitionRule, ON_Margin and ON_GrossInvoice on the invoice line item source object:

  1. Navigate to the fields list of the corresponding object.
  2. Create the following new fields.

    API Name Data Type Description Use Case Value
    ON_RecognitionRule Text (255)
    Formula (Text)
    Picklist
    Specifies the revenue recognition rule to be applied, is copied to the invoice line item during the invoice run. Margin Scheme
    ON_Margin Currency
    Formula (Currency)
    Specifies the margin of the invoice line item.
    Using a formula, you can apply custom logic to determine the margin.
    ON_GrossInvoice Checkbox
    Formula (Checkbox)
    Specifies whether the invoice line item price is considered a gross price. true

    For help about creating fields, see Managing Object Fields.

Info

When applying a margin scheme, taxes (set using tax rules, for example) apply to the margin amount only. For the original price, that is, the rest of the position total, the tax rate is set to 0.

Produced Booking Details

Once configured accordingly, JustOn Billing & Invoice Management produces the following booking details, covering the outlined use case:

# Amount Debit/Credit Flag Booking Account Contra Booking Account Type
1 800,00 H 8193 12345 Revenue
2 168,07 H 8191 12345 Revenue
3 31,93 H 1776 12345 Tax