|
@@ -58,7 +58,7 @@ discard block |
|
|
block discarded – undo |
|
58
|
58
|
*/ |
|
59
|
59
|
public function __construct() |
|
60
|
60
|
{ |
|
61
|
|
- $this->code_null = 0; // 1=can be empty |
|
|
61
|
+ $this->code_null = 0; // 1=can be empty |
|
62
|
62
|
$this->code_modifiable = 1; |
|
63
|
63
|
$this->code_modifiable_invalide = 1; |
|
64
|
64
|
$this->code_modifiable_null = 1; |
|
@@ -209,7 +209,7 @@ discard block |
|
|
block discarded – undo |
|
209
|
209
|
//Begin barcode with key: for barcode with key (EAN13...) calculate and substitute the last character (* or ?) used in the mask by the key |
|
210
|
210
|
if ((substr($numFinal, -1) == '*') or (substr($numFinal, -1) == '?')) { // if last mask character is * or ? a joker, probably we have to calculate a key as last character (EAN13...) |
|
211
|
211
|
$literaltype = ''; |
|
212
|
|
- $literaltype = $this->literalBarcodeType($db, $type);//get literal_Barcode_Type |
|
|
212
|
+ $literaltype = $this->literalBarcodeType($db, $type); //get literal_Barcode_Type |
|
213
|
213
|
switch ($literaltype) { |
|
214
|
214
|
case 'EAN13': //EAN13 rowid = 2 |
|
215
|
215
|
if (strlen($numFinal) == 13) {// be sure that the mask length is correct for EAN13 |
Please login to merge, or discard this patch.