Skip to Content

AL Packaging

AL Packaging - User guide

How to set up and use the app in Business Central.

Download the guide as PDF

1. Concepts in one minute

  • A packaging line describes one packaging combination used by a document. A document can have several lines, for example one pallet type for one part of the load and another for the rest.
  • A line is linked to its document by the Record Map ID of AL Foundation App, so the same table serves sales orders, transfer orders, warehouse documents and the posted shipments they become.
  • The packaging itself is made of items, typed by the Item Type of AL Foundation App: Pallet, Package, Tray, Interlayer and Edge Protector. You do not maintain a separate catalogue: a pallet is an item, with its own unit of measure, stock and, if you use AL CONAI, its own weight.
  • Ownership and travel are described by three fields: the owner (your company, the customer, the vendor or the shipping agent), the transfer type (non-returnable, the packaging stays with the recipient, or returnable, it must be given back) and the transport type (who takes care of the transport: the sender, the recipient or the carrier).
  • Pallet composition is two numbers: how many packages make a layer, and how many layers go on a pallet. The packages per pallet are calculated from them.
  • Every line says who wrote it: by hand, planned packaging calculated from the packaging instructions, or actual packaging counted on the units prepared in the warehouse. A recalculation replaces the planned and actual lines of a document and never touches the ones written by hand.
  • The package count and pallet count of a document are the sums of its lines, rounded up, and they show on the document header.
  • When a shipment is posted, the packaging lines move to it: the actual lines whole, the planned lines for the part that was shipped, the lines written by hand with the first shipment. The packaging of a shipment stays readable after posting, and the order keeps the packaging of what is still to ship.

2. Prerequisites

  • Microsoft Dynamics 365 Business Central, version 29.0 or higher, online (SaaS) and on-premises. AppSource covers online environments; on-premises is distributed and installed directly by AppLibra, through the AppLibra License Manager.
  • The dependencies installed: AL Foundation App, AL License and Trial Management, AL Message Passing, AL Role Center.
  • Permissions: two assignable permission sets. Give ALPPKG-USER (AL Packaging - User) to whoever describes packaging on documents, and ALPPKG-ADMIN (AL Packaging - Administrator) to whoever configures the app. The administrator role includes the user role.
  • The user role grants insert, modify and delete on the packaging lines. This is not generosity: posting a sales or transfer shipment moves the lines from the order to the posted shipment, and a recalculation rewrites them, so without those rights both would fail. Users without the AL Packaging roles can still post and print: the app does its part with permissions of its own.

3. Setup

3.1 Activate the license

Open Packaging Setup (PKG) from Tell Me, from the Packaging group of your role center, or from the AppLibra hub. Opening it the first time creates the setup record, and that is what starts the trial through AL License. The Add License action registers a license key, or starts the trial period if none is active.

There is nothing else to configure: AL Packaging has no options that change how it behaves. Everything else is described on the items and on the documents.

Packaging Setup, where the licence is registered
Packaging Setup, where the licence is registered

3.2 Create the packaging items

Packaging is made of items. Create one item per pallet, package, tray, interlayer and edge protector you use, and set the Item Type (AL Foundation App) accordingly. The type is what makes the item selectable in the right field: the pallet field on a packaging line only proposes items typed as Pallet, the package field only items typed as Package, and so on.

If you also use AL CONAI, give these items their packaging weight: the environmental contribution is computed from the same items.

3.3 Default packaging on the item units of measure

On Item Units of Measure of a sold item you can set two defaults:

  • Pallet Item No.: the item used as the pallet for that unit of measure.
  • Package Item No.: the item used as the package for that unit of measure.

These are the defaults AL Packaging uses to estimate the packaging of a document when nothing better is available. When you recalculate a document and no app answers with planned or actual packaging, every item line gets the default package and the default pallet of its units of measure, for the quantity still to ship: the package quantity is that quantity expressed in the unit of measure that has the default package, and the pallet quantity the same with the unit that has the default pallet. AL Logistic also reads these defaults when it prepares a package.

The default pallet and package on the lines of the item units of measure: the package on the CARTON unit, the pallet on the PALLET unit
The default pallet and package on the lines of the item units of measure: the package on the CARTON unit, the pallet on the PALLET unit

4. Daily use

4.1 Describe the packaging of a document

On a sales order, a transfer order, a posted sales shipment or a posted transfer shipment, use the Packaging (PKG) action. The list opens already filtered on that document.

Add a line and fill what applies:

  • Pallet Item No. and Pallet Quantity: which pallet and how many.
  • Package Item No. and Package Quantity: which package (carton) and how many.
  • Tray Item No. and Tray Quantity, Interlayer Item No. and Interlayer Quantity, Edge Protector Item No. and Edge Protector Quantity: the accessories of the load.
  • Owner Type, Transfer Type and Transport Type: who owns the packaging, whether it is given back, and who takes care of the transport.
  • EAN 128: the code that identifies the packaging on the label.

A line you add here is a line by hand, and no recalculation deletes it. The Origin column shows who wrote each line. A planned line can be changed, and the change stays until the next recalculation. An actual line cannot be changed here: its numbers come from the real pallets and packages, so a wrong one is corrected where the units are, and something missing is a new line by hand.

Location, customer or vendor and shipping agent are filled for you when the line is attached to its document: AL Packaging reads them from the document itself. On a transfer order it also reads the destination, so a transfer to a customer fills the customer and a transfer to a vendor fills the vendor. They are read again by every recalculation, and when the order is posted the lines on the shipment take them from the posted shipment.

Packaging lines of a document: two planned lines, one owned and one returnable, and a line by hand
Packaging lines of a document: two planned lines, one owned and one returnable, and a line by hand

4.2 Pallet composition

Three fields describe how the load is built:

  • Packages per Layer: how many packages make up one layer.
  • Layers per Pallet: how many layers are stacked on one pallet.
  • Packages per Pallet: calculated, the product of the two. If you type it, the packages per layer are calculated back from the layers per pallet.

This is the number logistics and labels need, and it is the reason the composition lives on the document and not only on the item: the same carton can be palletised differently for different customers.

Packages per layer and layers per pallet give the packages per pallet
Packages per layer and layers per pallet give the packages per pallet

4.3 Counts on the document

The header of the sales order, the transfer order, the posted sales shipment and the posted transfer shipment shows Pallet Count and Package Count: the totals of the packaging lines of that document, rounded up, because part of a package still travels as a package. Click a count to drill down to the lines behind it.

The warehouse shipment has no packaging lines of its own: it ships lines of sales and transfer orders, and the packaging stays on them. Its counts add up those orders, each rounded as it will be on its own delivery note, and its Packaging (PKG) action shows the lines of all of them in one list, where the Source Document column says which order each line belongs to.

The Packaging and Recalculate Packaging actions and the two counts on the sales order
The Packaging and Recalculate Packaging actions and the two counts on the sales order

4.4 Recalculate the packaging

The Recalculate Packaging (PKG) action, next to Packaging (PKG) on the same five documents, writes the packaging of the document for you:

  • if units have been prepared for the document, the actual packaging counted on them, from AL Logistic;
  • otherwise the planned packaging from the packaging instructions, from AL Packaging Profiles;
  • without instructions, an estimate from the default pallet and package of the units of measure of the items (section 3.3).

The planned and actual lines of the document are replaced; the lines written by hand stay as they are. On a warehouse shipment the action recalculates each order it ships, with the shipping agent of the warehouse shipment: that is the one the order will have once the shipment is posted, and the lines show it already.

4.5 Posting

When you post the shipment of a sales order or of a transfer order, the packaging lines move from the order to the posted shipment:

  • the actual lines move whole: they are the units that leave;
  • a planned line moves for the part of its order line that was shipped, and the rest stays on the order, so the next shipment has its packaging too;
  • the lines written by hand go with the first shipment.

On the shipment the lines take customer, location and shipping agent from the posted shipment. Nothing is retyped and nothing is lost: the posted shipment carries the packaging that left with it, with its counts, and the Packaging (PKG) action on the posted shipment opens exactly those lines. The data for the printed documents gives the packages of each line and of the document rounded up, like the counts.

On the posted sales shipment you can also record the Time of Delivery, which is useful when the delivery slot matters as much as the date.

5. What other apps read from here

AL Packaging is a base, and that is the point of describing packaging once:

  • AL Logistic builds the real units (the pallets and packages actually prepared) and answers the recalculation with the actual packaging counted on them.
  • AL Packaging Profiles answers the recalculation with the planned packaging, from the profile of the customer, so the lines are filled from a rule instead of by hand.
  • AL CONAI uses the packaging items and their weights for the environmental contribution.
  • Labels read the pallet composition and the EAN 128.

6. Where to find it

  • Tell Me: search "PKG", or directly "Packaging (PKG)" and "Packaging Setup (PKG)".
  • Role center: the Packaging (PKG) group on the Order Processor role center, and the same group in the AppLibra hub, with the setup in the shared Setup section.
  • Manual Setup: "Packaging Setup (PKG)", next to the standard Business Central setups.
  • On documents: the Packaging (PKG) and Recalculate Packaging (PKG) actions on sales orders, transfer orders, posted sales shipments, posted transfer shipments and warehouse shipments.
  • On items: the Pallet Item No. and Package Item No. fields on Item Units of Measure.

7. FAQ and limits

  • Do I have to fill every field on a line? No. A line describes what you use: if you ship on pallets without trays, leave the tray fields empty.
  • Can a document have more than one packaging line? Yes, and it is the normal case when a load mixes packaging types.
  • Why is the pallet field not proposing my item? The field only offers items with the matching Item Type. An item that is not typed as Pallet will not appear there.
  • Why can I not change a line? Its Origin is Actual: it was counted on the prepared units. Correct the units, or add a line by hand.
  • Will a recalculation delete what I typed? Not the lines you added by hand. It replaces the planned and actual lines, so a change made to a planned line lasts until the next recalculation.
  • I changed the shipping agent on the order: do the lines follow? A recalculation brings the new one, and at posting the lines take the shipping agent of the posted shipment. Until then they keep the one they were written with.
  • What happens to the lines when I post? They move to the posted shipment: the actual ones whole, the planned ones for the part shipped, the ones by hand with the first shipment. They are not copied.
  • Are the counts rounded? Yes, up, to whole pallets and whole packages: you cannot ship two thirds of a carton. The printed documents are rounded the same way.
  • Does AL Packaging decide how to pack? No. It records the decision and makes it available to the apps that act on it. The rules that propose a packaging live in AL Packaging Profiles; without them AL Packaging only estimates from the units of measure.

8. Support and resources