@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | } |
128 | 128 | } |
129 | 129 | |
130 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
130 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
131 | 131 | /** |
132 | 132 | * Function to build pdf onto disk |
133 | 133 | * |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | */ |
142 | 142 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
143 | 143 | { |
144 | - // phpcs:enable |
|
144 | + // phpcs:enable |
|
145 | 145 | global $user, $conf, $langs, $hookmanager; |
146 | 146 | |
147 | 147 | $object->fetch_thirdparty(); |
@@ -676,8 +676,8 @@ discard block |
||
676 | 676 | } |
677 | 677 | } |
678 | 678 | |
679 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
680 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
679 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
680 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
681 | 681 | /** |
682 | 682 | * Show total to pay |
683 | 683 | * |
@@ -692,7 +692,7 @@ discard block |
||
692 | 692 | */ |
693 | 693 | protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs, $totalOrdered, $totalAmount = 0) |
694 | 694 | { |
695 | - // phpcs:enable |
|
695 | + // phpcs:enable |
|
696 | 696 | global $conf, $mysoc; |
697 | 697 | |
698 | 698 | $sign = 1; |
@@ -794,7 +794,7 @@ discard block |
||
794 | 794 | return ($tab2_top + ($tab2_hl * $index)); |
795 | 795 | } |
796 | 796 | |
797 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
797 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
798 | 798 | /** |
799 | 799 | * Show table for lines |
800 | 800 | * |
@@ -888,7 +888,7 @@ discard block |
||
888 | 888 | } |
889 | 889 | } |
890 | 890 | |
891 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
891 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
892 | 892 | /** |
893 | 893 | * Show top header of page. |
894 | 894 | * |
@@ -1129,7 +1129,7 @@ discard block |
||
1129 | 1129 | return $top_shift; |
1130 | 1130 | } |
1131 | 1131 | |
1132 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1132 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1133 | 1133 | /** |
1134 | 1134 | * Show footer of page. Need this->emetteur object |
1135 | 1135 | * |
@@ -293,7 +293,7 @@ |
||
293 | 293 | $pdf->MultiCell(0, 3, ''); // Set interline to 3 |
294 | 294 | $pdf->SetTextColor(0, 0, 0); |
295 | 295 | |
296 | - $tab_top = 90; // position of top tab |
|
296 | + $tab_top = 90; // position of top tab |
|
297 | 297 | $tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 : 10); |
298 | 298 | |
299 | 299 | $tab_height = $this->page_hauteur - $tab_top - $heightforfooter - $heightforfreetext; |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | return $texte; |
196 | 196 | } |
197 | 197 | |
198 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
198 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
199 | 199 | /** |
200 | 200 | * Function to build a document on disk using the generic odt module. |
201 | 201 | * |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | */ |
210 | 210 | public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
211 | 211 | { |
212 | - // phpcs:enable |
|
212 | + // phpcs:enable |
|
213 | 213 | global $user, $langs, $conf, $mysoc, $hookmanager; |
214 | 214 | |
215 | 215 | if (empty($srctemplatepath)) { |
@@ -170,7 +170,7 @@ |
||
170 | 170 | $maxfilesizearray = getMaxFileSizeArray(); |
171 | 171 | $maxmin = $maxfilesizearray['maxmin']; |
172 | 172 | if ($maxmin > 0) { |
173 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
173 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
174 | 174 | } |
175 | 175 | $texte .= ' <input type="file" name="uploadfile">'; |
176 | 176 | $texte .= '<input type="hidden" value="RECEPTION_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | abstract class ModelePdfReception extends CommonDocGenerator |
34 | 34 | { |
35 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
35 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
36 | 36 | /** |
37 | 37 | * Return list of active generation modules |
38 | 38 | * |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public static function liste_modeles($db, $maxfilenamelength = 0) |
44 | 44 | { |
45 | - // phpcs:enable |
|
45 | + // phpcs:enable |
|
46 | 46 | $type = 'reception'; |
47 | 47 | $list = array(); |
48 | 48 |
@@ -205,7 +205,7 @@ |
||
205 | 205 | $this->rights[$r][0] = 130; |
206 | 206 | $this->rights[$r][1] = 'Modify thirdparty information payment'; |
207 | 207 | $this->rights[$r][3] = 0; |
208 | - $this->rights[$r][4] = 'thirdparty_paymentinformation_advance'; // Visible if option MAIN_USE_ADVANCED_PERMS is on |
|
208 | + $this->rights[$r][4] = 'thirdparty_paymentinformation_advance'; // Visible if option MAIN_USE_ADVANCED_PERMS is on |
|
209 | 209 | $this->rights[$r][5] = 'write'; |
210 | 210 | |
211 | 211 | // 262 : Restrict access to sales representative |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | $this->export_dependencies_array[$r] = array('category' => 'p.rowid'); |
269 | 269 | } |
270 | 270 | $this->export_sql_start[$r] = 'SELECT DISTINCT '; |
271 | - $this->export_sql_end[$r] = ' FROM ' . MAIN_DB_PREFIX . 'product as p'; |
|
271 | + $this->export_sql_end[$r] = ' FROM ' . MAIN_DB_PREFIX . 'product as p'; |
|
272 | 272 | if (getDolGlobalString('MAIN_PRODUCT_PERENTITY_SHARED')) { |
273 | 273 | $this->export_sql_end[$r] .= " LEFT JOIN " . MAIN_DB_PREFIX . "product_perentity as ppe ON ppe.fk_product = p.rowid AND ppe.entity = " . ((int) $conf->entity); |
274 | 274 | } |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | $this->export_fields_array[$r] = array_merge($this->export_fields_array[$r], array('p2.rowid' => "Id", 'p2.ref' => "Ref", 'p2.label' => "Label", 'p2.description' => "Description")); |
418 | 418 | $this->export_entities_array[$r] = array_merge($this->export_entities_array[$r], array('p2.rowid' => "subproduct", 'p2.ref' => "subproduct", 'p2.label' => "subproduct", 'p2.description' => "subproduct")); |
419 | 419 | $this->export_sql_start[$r] = 'SELECT DISTINCT '; |
420 | - $this->export_sql_end[$r] = ' FROM ' . MAIN_DB_PREFIX . 'product as p'; |
|
420 | + $this->export_sql_end[$r] = ' FROM ' . MAIN_DB_PREFIX . 'product as p'; |
|
421 | 421 | if (getDolGlobalString('MAIN_PRODUCT_PERENTITY_SHARED')) { |
422 | 422 | $this->export_sql_end[$r] .= " LEFT JOIN " . MAIN_DB_PREFIX . "product_perentity as pac ON pac.fk_product = p.rowid AND pac.entity = " . ((int) $conf->entity); |
423 | 423 | } |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | return 1; |
184 | 184 | } |
185 | 185 | |
186 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
186 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
187 | 187 | /** |
188 | 188 | * Write the object to document file to disk |
189 | 189 | * |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | */ |
195 | 195 | public function write_file($don, $outputlangs, $currency = '') |
196 | 196 | { |
197 | - // phpcs:enable |
|
197 | + // phpcs:enable |
|
198 | 198 | global $user, $conf, $langs, $mysoc; |
199 | 199 | |
200 | 200 | $id = (!is_object($don) ? $don : ''); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | abstract class ModeleDon extends CommonDocGenerator |
39 | 39 | { |
40 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
40 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
41 | 41 | /** |
42 | 42 | * Return list of active generation modules |
43 | 43 | * |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public static function liste_modeles($db, $maxfilenamelength = 0) |
49 | 49 | { |
50 | - // phpcs:enable |
|
50 | + // phpcs:enable |
|
51 | 51 | $type = 'donation'; |
52 | 52 | $list = array(); |
53 | 53 |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | } |
67 | 67 | |
68 | 68 | |
69 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
69 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
70 | 70 | /** |
71 | 71 | * Write the object to document file to disk |
72 | 72 | * |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | */ |
78 | 78 | public function write_file($don, $outputlangs, $currency = '') |
79 | 79 | { |
80 | - // phpcs:enable |
|
80 | + // phpcs:enable |
|
81 | 81 | global $user, $conf, $langs, $mysoc; |
82 | 82 | |
83 | 83 | $now = dol_now(); |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | } |
183 | 183 | |
184 | 184 | |
185 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
185 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
186 | 186 | /** |
187 | 187 | * Function to build pdf onto disk |
188 | 188 | * |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | */ |
197 | 197 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
198 | 198 | { |
199 | - // phpcs:enable |
|
199 | + // phpcs:enable |
|
200 | 200 | global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines; |
201 | 201 | |
202 | 202 | dol_syslog("write_file outputlangs->defaultlang=" . (is_object($outputlangs) ? $outputlangs->defaultlang : 'null')); |
@@ -1974,7 +1974,7 @@ discard block |
||
1974 | 1974 | return ($tab2_top + ($tab2_hl * $index)); |
1975 | 1975 | } |
1976 | 1976 | |
1977 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1977 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1978 | 1978 | /** |
1979 | 1979 | * Return list of active generation modules |
1980 | 1980 | * |
@@ -1984,11 +1984,11 @@ discard block |
||
1984 | 1984 | */ |
1985 | 1985 | public static function liste_modeles($db, $maxfilenamelength = 0) |
1986 | 1986 | { |
1987 | - // phpcs:enable |
|
1987 | + // phpcs:enable |
|
1988 | 1988 | return parent::liste_modeles($db, $maxfilenamelength); // TODO: Change the autogenerated stub |
1989 | 1989 | } |
1990 | 1990 | |
1991 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1991 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1992 | 1992 | /** |
1993 | 1993 | * Show table for lines |
1994 | 1994 | * |
@@ -2056,7 +2056,7 @@ discard block |
||
2056 | 2056 | } |
2057 | 2057 | } |
2058 | 2058 | |
2059 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
2059 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
2060 | 2060 | /** |
2061 | 2061 | * Show top header of page. This include the logo, ref and address blocks |
2062 | 2062 | * |
@@ -2069,7 +2069,7 @@ discard block |
||
2069 | 2069 | */ |
2070 | 2070 | protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null) |
2071 | 2071 | { |
2072 | - // phpcs:enable |
|
2072 | + // phpcs:enable |
|
2073 | 2073 | global $conf, $langs; |
2074 | 2074 | |
2075 | 2075 | $ltrdirection = 'L'; |
@@ -2449,7 +2449,7 @@ discard block |
||
2449 | 2449 | return $pagehead; |
2450 | 2450 | } |
2451 | 2451 | |
2452 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
2452 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
2453 | 2453 | /** |
2454 | 2454 | * Show footer of page. Need this->emetteur object |
2455 | 2455 | * |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | // $pdf->GetY() here can't be used. It is bottom of the second address box but first one may be higher |
454 | 454 | |
455 | 455 | // $this->tab_top is y where we must continue content (90 = 42 + 48: 42 is height of logo and ref, 48 is address blocks) |
456 | - $this->tab_top = 90 + $top_shift + $shipp_shift; // top_shift is an addition for linked objects or addons (0 in most cases) |
|
456 | + $this->tab_top = 90 + $top_shift + $shipp_shift; // top_shift is an addition for linked objects or addons (0 in most cases) |
|
457 | 457 | $this->tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 + $top_shift : 10); |
458 | 458 | |
459 | 459 | // You can add more thing under header here, if you increase $extra_under_address_shift too. |
@@ -690,7 +690,7 @@ discard block |
||
690 | 690 | } |
691 | 691 | |
692 | 692 | $pdf->setTopMargin($this->tab_top_newpage); |
693 | - $page_bottom_margin = $this->heightforfooter + $this->heightforfreetext + $this->heightforinfotot + $this->getHeightForQRInvoice($pdf->getPage(), $object, $langs); |
|
693 | + $page_bottom_margin = $this->heightforfooter + $this->heightforfreetext + $this->heightforinfotot + $this->getHeightForQRInvoice($pdf->getPage(), $object, $langs); |
|
694 | 694 | $pdf->setPageOrientation('', 1, $page_bottom_margin); |
695 | 695 | $pageposbefore = $pdf->getPage(); |
696 | 696 | |
@@ -934,7 +934,7 @@ discard block |
||
934 | 934 | if (!isset($this->tva[$vatrate])) { |
935 | 935 | $this->tva[$vatrate] = 0; |
936 | 936 | } |
937 | - $this->tva[$vatrate] += $tvaligne; // ->tva is abandoned, we use now ->tva_array that is more complete |
|
937 | + $this->tva[$vatrate] += $tvaligne; // ->tva is abandoned, we use now ->tva_array that is more complete |
|
938 | 938 | $vatcode = $object->lines[$i]->vat_src_code; |
939 | 939 | if (empty($this->tva_array[$vatrate . ($vatcode ? ' (' . $vatcode . ')' : '')]['amount'])) { |
940 | 940 | $this->tva_array[$vatrate . ($vatcode ? ' (' . $vatcode . ')' : '')]['amount'] = 0; |
@@ -1228,7 +1228,7 @@ discard block |
||
1228 | 1228 | $posy = $pdf->GetY() + 4; |
1229 | 1229 | } |
1230 | 1230 | |
1231 | - $posxval = 52; // Position of values of properties shown on left side |
|
1231 | + $posxval = 52; // Position of values of properties shown on left side |
|
1232 | 1232 | $posxend = 110; // End of x for text on left side |
1233 | 1233 | if ($this->page_largeur < 210) { // To work with US executive format |
1234 | 1234 | $posxend -= 10; |