iVendNextDevelopers My apps

S29 — a layout of its own for each distributor's invoice, and a price list with photos

A distributor sells to four or five other distributors, and each wants its own invoice layout. The distributor also sends each a price list with a photo of every item, so nearly identical products can be told apart. This sample does both without touching the till: two ways to give the back-office sales invoice a layout for each customer, and the photo price list two ways, a print format on the price list itself and a small program that makes it as one page that prints to PDF.

The recipe: A layout for each customer's invoice, and a price list with photosThe sample's README

The price list page: sections, photos, a grey box where an item has none

Industries: Distribution and warehousing

Start from it

Copy by hand: not an app made here. Copy the folder, edit the three layouts in layouts/ and customers.json, run python3 build.py, and install one invoice package from the App library's install screen.

What to change

What a partner usually changes:

A changed layout needs a higher version.

More: the recipe.

The customer sets: for the branch package, Default Print Format to PP PRT Branch Invoice in Customize Form for Sales Invoice; a package cannot set it. From then on every customer's invoice uses that template.

Run it

python3 samples/s29_print_pack/build.py
python3 tools/manifest/validate.py samples/s29_print_pack/branch_manifest.json
python3 -m unittest discover -s samples/s29_print_pack/tests -p 'test_*.py'

Versions

1.0.1

1.0.0

Needs this serves

This page in the kit