Shoe marking: as we put into circulation 2 million marking codes “1C” + “Honest Sign”

Earlier, we wrote about solving the problem of scanning and uploading to 1C . Now we will talk about the features of label printing, uploading to a Private Sign and putting into circulation.

Entering codes honest sign shoes, CSV, 1C prof-it.ru

From March 1, you can only sell labeled shoes , while the law on the postponement of time is pending and that only applies to wholesalers.

To begin with, both honest Znak and 1C work rather poorly with large amounts of data, we needed to print and put into circulation about 2 million codes.

We will not go into technical features, but we will tell you the main problems that you encountered when entering into circulation a large number of codes and how we solved them, alas, standard 1C tools do not allow you to quickly and conveniently, but by and large do not allow :) to put into circulation a large number of codes.

After receiving the codes from the ChZ, we only need to print and put into circulation. We divided this work into 3 stages and hope that we have found the optimal solution.

1) Processing of codes and preparation for printing.

Of all the codes received, we form one continuous array, after which, according to a predetermined number, we recommend 970 (since there are a little less than 1000 labels in coils for printing + about 10 defective ones, in thermal glue) we divide into files with a unique serial number.

marking shoes, CSV, 1C

2) Printing codes.

Processing for printing works with the clipboard directly, unloads all CSV files from the source folder, forms a table with 3 values.

CSV, 1C, shoe marking

  1. Human readable marking code value
  2. The marking code without a “crypto-tail” (if the marking code is corrupted so that you can visually evaluate it, find the code and write it off)
  3. The hash encoded base 64 line with the marking code , in this form is transmitted and decrypted.

It is extremely inconvenient to use the standard printing form for these purposes, for a long time, therefore it is impossible. I had to create an additional form for printing ...

In which we created a layout with specific parameters

  • the marking code without a “crypto-tail” (since it cannot be recognized with a crypto-tail 1C) is automatically displayed in the layout,
  • ChZ logo,
  • name of organization etc.

Logo of the “Honest Sign”, company, name, etc. can be set arbitrarily.

label printing, honest sign, 1C, processing 1C

Since it is impossible to print in command mode through processing , the code for printing forms a printed form, removes lines from the visual table field and transfers it to the tab in the text field - “forehead print”, so that you can visually evaluate it.

Formed layouts that are sent to print after each file is printed - it is loaded into the CSV folder files, which contain all actually printed codes. CSV data is not tied to the original files, which allows you to track whether all codes have been printed.

We also added a control break . Manually, you can interrupt the operation and clear all the logs, while the coincidence of the source files is controlled.

Entering codes honest sign shoes, CSV, 1C prof-it.ru pskov

The service offers us to download 678 codes, despite the fact that each download takes a long time and moreover, it always writes that it is successful, but sometimes it needs to be downloaded several times ... We do the upload via the API ChZ.

Again, I had to write a processing that allows us to form 1 CSV array from the source CSV, select the first group to the “group separator” and generate XML from them for sending to the emergency.

PS 1C starts to “slow down” when you read a text document in the form of text and iterate over the lines by index, so I had to “write a revision” which allows you to quickly iterate over the indices through the “STR-split” function, which allows you to reduce tens of times by enumeration.

Applying this set of improvements, we were able to avoid a huge number of errors, inconveniences when downloading and printing large volumes of codes.

All Articles