Skip to content

Invoicing based on templates

Introduction

This document summarizes the following:

  • A **mandatory Sales Order and Posted Shipment** will be created if invoicing from the shipment.
  • The existing Invoice solution for Cases will be replaced with a new function called **Invoice Templates**.
  • The system will **automatically build invoices**.
  • Support for **U.S. Sales Tax – Shipments to Multiple Tax Jurisdictions**.

Basic Setup

PV General Setup for Shipment Invoicing

  1. **Under Logistic**, activate Create Shipment Item.

- Select/create a **No. Series** for the items created during posting.

- Also select an **Item Template** (should include finance settings and base UOM).

Invoicing based on templates 1.jpg

  1. **Under Sales Shipment**, create **two No. Series** for handling shipments.

Invoicing based on templates 2.jpg

> ⚠️ **Note:** Do not use an existing No. Series for these.

Invoice Templates Setup

Invoicing based on templates 3.jpg

Invoicing based on templates 4.jpg

A **new template-based invoice structure** is introduced. It allows more flexibility and avoids the need for custom invoice reports.

The system will **not split invoice lines** into several internal lines to distribute revenue. That type of processing should be handled separately—e.g., via a G/L entry journal after posting.

You must set up **at least one Invoice Template** for invoice creation. Templates can be linked to:

  • Order Type
  • Product Group
  • Customer Group
  • Customer No.

You can override the template in an already-created Invoice Journal.

**Invoice Template Line Types**

Invoicing based on templates 5.jpg

  • **G/L Account** – Creates a G/L Account line (lookup Chart of Accounts).
  • **Item** – Creates an item line (lookup Item List).
  • **Resource** – Creates a Resource line (lookup Resources).
  • **Charge (Item)** – Creates a Charge (Item) line (lookup Charge Items).
  • **Extra Work** – Pulls in Extra Work registered with “Can be Debited” checked.
  • **Merge Fields** – Creates lines based on merge field code setup.
  • **Over/Under** – Uses quantity difference between ordered and shipped.
  • **PV Shipment Freight** – Adds shipment Cost and Extra Fee amounts to invoice.

This function works no matter which invoice method is used. When case or job level is the method then there is a single line with the sum of all shipment costs/extra fees. When PV Shipment or PV Shipment Group on Tax Area are used then the shipment costs/extra fees are summed based on each shipment or tax area.

Invoicing based on templates 6.jpg

Invoicing based on templates 7.jpg

  • Set the **Freight G/L Account** in the No. field

Invoicing based on templates 8.jpg

  • **Main Invoice** – Uses merge fields and pulls in the G/L account from the PrintVis G/L Posting Setup page. Works by case, job, or shipment.
  • **Special Function** – Uses a Codeunit number for full customization. Examples available in the PrintVis GitHub repo.

Auto Build Invoice

Settings

Enable **Auto Build Invoice** to trigger automatic invoice creation on **status changes**.

Invoicing based on templates 9.jpg

Invoicing based on templates 10.jpg

  1. In **Status Code setup**, define which status triggers auto-build.

  2. On the **Invoice Template**, mark the Auto Build setting.

This allows hybrid use:

  • \*\*Small digital jobs\*\* → auto-invoice

  • \*\*Complex jobs\*\* → manual invoice

Templates Assign Type

Invoicing based on templates 11.jpg

Create at least one assignment line linking an **Invoice Template** to filters:

  • Order Type
  • Product Group
  • Customer Group
  • Customer No.
  • Invoice Template

Invoicing

The **Invoicing Guide** helps users create and view invoices within a case.

Invoicing based on templates 12.jpg

Invoicing based on templates 13.jpg

From the **Invoicing page**, under the **Process menu**, use the **Build** button to create the invoice. This uses the **Invoice Template Code** from the general section of the invoice.

Invoicing based on templates 14.jpg

U.S. Sales Tax – Shipments to Multiple Tax Jurisdictions

This section explains how to handle **multiple shipments** from a **single Case** that go to **different tax jurisdictions**.

Create Shipments

When creating shipments:

Invoicing based on templates 15.jpg

Invoicing based on templates 16.jpg

  • Pay attention to the **Tax Area Code** on each **Ship-To Address**.
  • This determines the correct **tax jurisdiction**.

If all shipments go to the **same tax area** (or are **non-taxable**), standard logic applies.

Invoicing based on templates 17.jpg