@@ -1656,7 +1656,7 @@ |
||
1656 | 1656 | $carac_client_name = pdfBuildThirdpartyName($thirdparty, $outputlangs); |
1657 | 1657 | } |
1658 | 1658 | |
1659 | - $mode = 'target'; |
|
1659 | + $mode = 'target'; |
|
1660 | 1660 | $carac_client = pdf_build_address($outputlangs, $this->emetteur, $object->thirdparty, ($usecontact ? $object->contact : ''), $usecontact, $mode, $object); |
1661 | 1661 | |
1662 | 1662 | // Show recipient |
@@ -177,7 +177,7 @@ |
||
177 | 177 | $maxfilesizearray = getMaxFileSizeArray(); |
178 | 178 | $maxmin = $maxfilesizearray['maxmin']; |
179 | 179 | if ($maxmin > 0) { |
180 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
180 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
181 | 181 | } |
182 | 182 | $texte .= ' <input type="file" name="uploadfile">'; |
183 | 183 | $texte .= '<input type="hidden" value="COMMANDE_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -630,7 +630,7 @@ |
||
630 | 630 | |
631 | 631 | |
632 | 632 | if (empty($hidetop)) { |
633 | - $pdf->line($this->marge_gauche, $tab_top + 11, $this->page_largeur - $this->marge_droite, $tab_top + 11); // line takes a position y in 2nd parameter and 4th parameter |
|
633 | + $pdf->line($this->marge_gauche, $tab_top + 11, $this->page_largeur - $this->marge_droite, $tab_top + 11); // line takes a position y in 2nd parameter and 4th parameter |
|
634 | 634 | $pdf->SetXY($this->posxdesc - 1, $tab_top + 1); |
635 | 635 | $pdf->MultiCell($this->wref, 3, $outputlangs->transnoentities("Ref"), '', 'L'); |
636 | 636 | } |
@@ -173,7 +173,7 @@ |
||
173 | 173 | $maxfilesizearray = getMaxFileSizeArray(); |
174 | 174 | $maxmin = $maxfilesizearray['maxmin']; |
175 | 175 | if ($maxmin > 0) { |
176 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
176 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
177 | 177 | } |
178 | 178 | $texte .= ' <input type="file" name="uploadfile">'; |
179 | 179 | $texte .= '<input type="hidden" value="STOCK_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -392,7 +392,7 @@ |
||
392 | 392 | /* END MODULEBUILDER EXPORT KNOWLEDGERECORD */ |
393 | 393 | |
394 | 394 | // Imports profiles provided by this module |
395 | - $r = 1; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
395 | + $r = 1; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
396 | 396 | /* BEGIN MODULEBUILDER IMPORT KNOWLEDGERECORD */ |
397 | 397 | /* |
398 | 398 | $langs->load("knowledgemanagement"); |
@@ -198,7 +198,7 @@ |
||
198 | 198 | $maxfilesizearray = getMaxFileSizeArray(); |
199 | 199 | $maxmin = $maxfilesizearray['maxmin']; |
200 | 200 | if ($maxmin > 0) { |
201 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
201 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
202 | 202 | } |
203 | 203 | $texte .= ' <input type="file" name="uploadfile">'; |
204 | 204 | $texte .= '<input type="hidden" value="USER_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | //Begin barcode with key: for barcode with key (EAN13...) calculate and substitute the last character (* or ?) used in the mask by the key |
198 | 198 | 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...) |
199 | 199 | $literaltype = ''; |
200 | - $literaltype = $this->literalBarcodeType($db, $type);//get literal_Barcode_Type |
|
200 | + $literaltype = $this->literalBarcodeType($db, $type); //get literal_Barcode_Type |
|
201 | 201 | switch ($literaltype) { |
202 | 202 | case 'EAN13': //EAN13 rowid = 2 |
203 | 203 | if (strlen($numFinal) == 13) {// be sure that the mask length is correct for EAN13 |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | $code = strtoupper(trim($code)); |
245 | 245 | |
246 | 246 | if (empty($code) && $this->code_null && !getDolGlobalString('BARCODE_STANDARD_PRODUCT_MASK')) { |
247 | - $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
247 | + $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
248 | 248 | } elseif (empty($code) && (!$this->code_null || getDolGlobalString('BARCODE_STANDARD_PRODUCT_MASK'))) { |
249 | 249 | $result = -2; |
250 | 250 | } else { |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | if ($is_dispo != 0) { |
254 | 254 | $result = -3; |
255 | 255 | } else { |
256 | - $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
256 | + $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
257 | 257 | } |
258 | 258 | } else { |
259 | 259 | if (dol_strlen($code) == 0) { |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | //Begin barcode with key: for barcode with key (EAN13...) calculate and substitute the last character (* or ?) used in the mask by the key |
205 | 205 | 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...) |
206 | 206 | $literaltype = ''; |
207 | - $literaltype = $this->literalBarcodeType($db, $type);//get literal_Barcode_Type |
|
207 | + $literaltype = $this->literalBarcodeType($db, $type); //get literal_Barcode_Type |
|
208 | 208 | switch ($literaltype) { |
209 | 209 | case 'EAN13': //EAN13 rowid = 2 |
210 | 210 | if (strlen($numFinal) == 13) {// be sure that the mask length is correct for EAN13 |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | $code = strtoupper(trim($code)); |
248 | 248 | |
249 | 249 | if (empty($code) && $this->code_null && !getDolGlobalString('BARCODE_STANDARD_THIRDPARTY_MASK')) { |
250 | - $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
250 | + $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
251 | 251 | } elseif (empty($code) && (!$this->code_null || getDolGlobalString('BARCODE_STANDARD_THIRDPARTY_MASK'))) { |
252 | 252 | $result = -2; |
253 | 253 | } else { |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | if ($is_dispo != 0) { |
257 | 257 | $result = -3; |
258 | 258 | } else { |
259 | - $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
259 | + $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment |
|
260 | 260 | } |
261 | 261 | } else { |
262 | 262 | if (dol_strlen($code) == 0) { |
@@ -174,7 +174,7 @@ |
||
174 | 174 | $maxfilesizearray = getMaxFileSizeArray(); |
175 | 175 | $maxmin = $maxfilesizearray['maxmin']; |
176 | 176 | if ($maxmin > 0) { |
177 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
177 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
178 | 178 | } |
179 | 179 | $texte .= ' <input type="file" name="uploadfile">'; |
180 | 180 | $texte .= '<input type="hidden" value="CONTRACT_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |