Fixing style errors.
This commit is contained in:
parent
ff06798660
commit
14e3be630c
@ -142,10 +142,10 @@ class mod_barcode_product_standard extends ModeleNumRefBarCode
|
||||
}
|
||||
/**
|
||||
* Return literal barcode type code from numerical rowid type of barcode
|
||||
*
|
||||
* @param Database $db Database
|
||||
*
|
||||
* @param Database $db Database
|
||||
* @param int $type Type of barcode (EAN, ISBN, ...) as rowid
|
||||
* @return string
|
||||
* @return string
|
||||
*/
|
||||
|
||||
public function literalBarcodeType($db, $type = '')
|
||||
@ -208,7 +208,7 @@ class mod_barcode_product_standard extends ModeleNumRefBarCode
|
||||
$numFinal = get_next_value($db, $mask, 'product', $field, $where, '', $now);
|
||||
//if EAN13 calculate and substitute the last 13th character (* or ?) used in the mask by the EAN13 key
|
||||
$literaltype = '';
|
||||
$literaltype = $this->literalBarcodeType($db,$type);//get literal_Barcode_Type
|
||||
$literaltype = $this->literalBarcodeType($db, $type);//get literal_Barcode_Type
|
||||
if ($literaltype=='EAN13') //EAN13 rowid = 2
|
||||
{
|
||||
if (strlen($numFinal)==13)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user