Commit 36e409d
richayles
Adjust CODE_128 to handle odd number of digits
This is a change so that handling for CODE_128 auto takes into account an odd number of digits after an initial string. This then works for international DPD shipping integration "NOTE: If the postcode is all numeric, use subset B for the first 2 digits of the data
string, e.g. %0, followed by subset C for the rest of the barcode."
Example %008099915501071048275101276
Previously this would output
* SUBSET B = %, length 1
* SUBSET C = 00809991550107104827510127, length 26
* SUBSET B = 6, length 1
Now expected outcome is
* SUBSET B = %0, length 2
* SUBSET C = 08099915501071048275101276, length 261 parent f754cbd commit 36e409d
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1281 | 1281 | | |
1282 | 1282 | | |
1283 | 1283 | | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
1284 | 1293 | | |
1285 | 1294 | | |
1286 | 1295 | | |
1287 | 1296 | | |
1288 | 1297 | | |
1289 | | - | |
| 1298 | + | |
1290 | 1299 | | |
1291 | 1300 | | |
1292 | 1301 | | |
| |||
0 commit comments