Receiving discrepancy slips for Grist and gLabels 3
=================================================

The fictional Grist supplier example has 15 line items. Each slip records one
overage or shortage in cumulative whole units. Keep each slip with the delivery
paperwork and fill in the purchase order or delivery reference. A slip records
a discrepancy; it does not adjust stock or authorize payment.

1. Unzip this kit. Open a terminal IN THE EXTRACTED FOLDER. The converter uses
   Python 3 and the standard library. The label layout is for gLabels 3.x.
   Run the bundled example in a new destination folder:

     python3 make_slips.py receiving-export.csv first-print
     glabels-3-batch -i first-print/slips.csv -o first-print/proof.pdf receiving-slip.glabels

   On systems with the Windows Python launcher, use py -3 instead of python3.
   To view the sample without installing either program, open sample-proof.pdf.

2. Read first-print/review.csv for any lines that need correction. No slip
   is made for a match, a missing count, a fractional count or an inconsistent
   Grist calculation. If the converter reports zero discrepancy slips, there
   is nothing to print. The fixture produces four slips, two matched lines and
   nine lines for review. Box labels has a received count of zero and is short
   by eight. Packing slips is short by three; Bin dividers is over by one.

3. To edit and print with the designer, open receiving-slip.glabels in gLabels
   3. In Objects > Merge Properties, select "Text: Comma Separated Values (CSV)
   with keys on line 1" and browse to first-print/slips.csv. The original sample
   merge is in sample-run/slips.csv. If you opened the project from your file
   manager, select the merge CSV explicitly. Choose Print Preview to check the
   rows. The page is US Letter, ten 4 x 2 inch positions (two columns, five
   rows). Print at 100% and check placement on plain paper before using stock.

4. To print a corrected run, edit a copy of the Grist document. Set the
   Delivery_Count for Packing slips from 5 to 8. In the line-items widget,
   open the three-dot menu and choose Download as CSV. Grist exports visible
   rows and columns. Select the complete set of rows you intend to reconcile,
   including SKU, Qty, Delivery_Count and Receipt_Check. Supply the new CSV:

     python3 make_slips.py corrected-export.csv second-print
     glabels-3-batch -i second-print/slips.csv -o second-print/proof.pdf receiving-slip.glabels

   Packing slips should be absent, and the other three slips should remain.
   Each run uses a new destination folder so you keep the previous count.
   Export record references count the data rows in that particular download,
   starting at 1. If your export includes a numeric id column, that identifier
   is shown instead. Write your own PO reference on the slip.

Source example: https://bulldo.gs/demos/receiving-check/
Guide: https://bulldo.gs/demos/receiving-slips/
