@@ -112,17 +112,17 @@ |
||
112 | 112 | // Menus |
113 | 113 | //------- |
114 | 114 | $this->menu[$r] = array('fk_menu' => 0, |
115 | - 'type' => 'top', |
|
116 | - 'titre' => 'FTP', |
|
117 | - 'prefix' => img_picto('', $this->picto, 'class="pictofixedwidth em092"'), |
|
118 | - 'mainmenu' => 'ftp', |
|
119 | - 'url' => '/ftp/index.php', |
|
120 | - 'langs' => 'ftp', |
|
121 | - 'position' => 100, |
|
122 | - 'enabled' => '$conf->ftp->enabled', |
|
123 | - 'perms' => '$user->rights->ftp->read || $user->rights->ftp->write || $user->rights->ftp->setup', |
|
124 | - 'target' => '', |
|
125 | - 'user' => 2); // 0=Menu for internal users, 1=external users, 2=both |
|
115 | + 'type' => 'top', |
|
116 | + 'titre' => 'FTP', |
|
117 | + 'prefix' => img_picto('', $this->picto, 'class="pictofixedwidth em092"'), |
|
118 | + 'mainmenu' => 'ftp', |
|
119 | + 'url' => '/ftp/index.php', |
|
120 | + 'langs' => 'ftp', |
|
121 | + 'position' => 100, |
|
122 | + 'enabled' => '$conf->ftp->enabled', |
|
123 | + 'perms' => '$user->rights->ftp->read || $user->rights->ftp->write || $user->rights->ftp->setup', |
|
124 | + 'target' => '', |
|
125 | + 'user' => 2); // 0=Menu for internal users, 1=external users, 2=both |
|
126 | 126 | $r++; |
127 | 127 | } |
128 | 128 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | abstract class ModelePDFSuppliersInvoices 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 models |
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 = 'invoice_supplier'; |
52 | 52 | $list = array(); |
53 | 53 |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | } |
146 | 146 | |
147 | 147 | |
148 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
148 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
149 | 149 | /** |
150 | 150 | * Function to build pdf onto disk |
151 | 151 | * |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | */ |
160 | 160 | public function write_file($object, $outputlangs = null, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
161 | 161 | { |
162 | - // phpcs:enable |
|
162 | + // phpcs:enable |
|
163 | 163 | global $user, $langs, $conf, $mysoc, $hookmanager, $nblines; |
164 | 164 | |
165 | 165 | // Get source company |
@@ -603,8 +603,8 @@ discard block |
||
603 | 603 | } |
604 | 604 | } |
605 | 605 | |
606 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
607 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
606 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
607 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
608 | 608 | /** |
609 | 609 | * Show total to pay |
610 | 610 | * |
@@ -617,7 +617,7 @@ discard block |
||
617 | 617 | */ |
618 | 618 | protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs) |
619 | 619 | { |
620 | - // phpcs:enable |
|
620 | + // phpcs:enable |
|
621 | 621 | global $conf, $mysoc, $hookmanager; |
622 | 622 | |
623 | 623 | $sign = 1; |
@@ -829,7 +829,7 @@ discard block |
||
829 | 829 | return ($tab2_top + ($tab2_hl * $index)); |
830 | 830 | } |
831 | 831 | |
832 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
832 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
833 | 833 | /** |
834 | 834 | * Show table for lines |
835 | 835 | * |
@@ -933,8 +933,8 @@ discard block |
||
933 | 933 | } |
934 | 934 | } |
935 | 935 | |
936 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
937 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
936 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
937 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
938 | 938 | /** |
939 | 939 | * Show payments table |
940 | 940 | * |
@@ -947,7 +947,7 @@ discard block |
||
947 | 947 | */ |
948 | 948 | protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs, $heightforfooter = 0) |
949 | 949 | { |
950 | - // phpcs:enable |
|
950 | + // phpcs:enable |
|
951 | 951 | global $conf; |
952 | 952 | |
953 | 953 | $sign = 1; |
@@ -1027,7 +1027,7 @@ discard block |
||
1027 | 1027 | return -1; |
1028 | 1028 | } |
1029 | 1029 | |
1030 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1030 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1031 | 1031 | /** |
1032 | 1032 | * Show top header of page. |
1033 | 1033 | * |
@@ -1265,7 +1265,7 @@ discard block |
||
1265 | 1265 | return $top_shift; |
1266 | 1266 | } |
1267 | 1267 | |
1268 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1268 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1269 | 1269 | /** |
1270 | 1270 | * Show footer of page. Need this->emetteur object |
1271 | 1271 | * |
@@ -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)) { |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | public $atleastoneratenotnull = 0; |
60 | 60 | |
61 | 61 | |
62 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
62 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
63 | 63 | /** |
64 | 64 | * Return list of active generation modules |
65 | 65 | * |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | */ |
70 | 70 | public static function liste_modeles($db, $maxfilenamelength = 0) |
71 | 71 | { |
72 | - // phpcs:enable |
|
72 | + // phpcs:enable |
|
73 | 73 | $type = 'invoice'; |
74 | 74 | $list = array(); |
75 | 75 |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | } |
181 | 181 | |
182 | 182 | |
183 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
183 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
184 | 184 | /** |
185 | 185 | * Function to build pdf onto disk |
186 | 186 | * |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | */ |
195 | 195 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
196 | 196 | { |
197 | - // phpcs:enable |
|
197 | + // phpcs:enable |
|
198 | 198 | global $user, $langs, $conf, $mysoc, $hookmanager, $nblines; |
199 | 199 | |
200 | 200 | dol_syslog("write_file outputlangs->defaultlang=" . (is_object($outputlangs) ? $outputlangs->defaultlang : 'null')); |
@@ -900,8 +900,8 @@ discard block |
||
900 | 900 | } |
901 | 901 | |
902 | 902 | |
903 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
904 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
903 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
904 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
905 | 905 | /** |
906 | 906 | * Show payments table |
907 | 907 | * |
@@ -914,7 +914,7 @@ discard block |
||
914 | 914 | */ |
915 | 915 | protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs, $heightforfooter = 0) |
916 | 916 | { |
917 | - // phpcs:enable |
|
917 | + // phpcs:enable |
|
918 | 918 | global $conf; |
919 | 919 | |
920 | 920 | $sign = 1; |
@@ -1058,8 +1058,8 @@ discard block |
||
1058 | 1058 | } |
1059 | 1059 | } |
1060 | 1060 | |
1061 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1062 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1061 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1062 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1063 | 1063 | /** |
1064 | 1064 | * Function _tableau_versements_header |
1065 | 1065 | * |
@@ -1075,7 +1075,7 @@ discard block |
||
1075 | 1075 | */ |
1076 | 1076 | protected function _tableau_versements_header($pdf, $object, $outputlangs, $default_font_size, $tab3_posx, $tab3_top, $tab3_width, $tab3_height) |
1077 | 1077 | { |
1078 | - // phpcs:enable |
|
1078 | + // phpcs:enable |
|
1079 | 1079 | $title = $outputlangs->transnoentities("PaymentsAlreadyDone"); |
1080 | 1080 | if ($object->type == 2) { |
1081 | 1081 | $title = $outputlangs->transnoentities("PaymentsBackAlreadyDone"); |
@@ -1100,8 +1100,8 @@ discard block |
||
1100 | 1100 | $pdf->line($tab3_posx, $tab3_top - 1 + $tab3_height, $tab3_posx + $tab3_width, $tab3_top - 1 + $tab3_height); |
1101 | 1101 | } |
1102 | 1102 | |
1103 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1104 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1103 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1104 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1105 | 1105 | /** |
1106 | 1106 | * Show miscellaneous information (payment mode, payment term, ...) |
1107 | 1107 | * |
@@ -1114,7 +1114,7 @@ discard block |
||
1114 | 1114 | */ |
1115 | 1115 | protected function _tableau_info(&$pdf, $object, $posy, $outputlangs, $outputlangsbis) |
1116 | 1116 | { |
1117 | - // phpcs:enable |
|
1117 | + // phpcs:enable |
|
1118 | 1118 | global $conf, $mysoc, $hookmanager; |
1119 | 1119 | |
1120 | 1120 | $default_font_size = pdf_getPDFFontSize($outputlangs); |
@@ -1337,8 +1337,8 @@ discard block |
||
1337 | 1337 | } |
1338 | 1338 | |
1339 | 1339 | |
1340 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1341 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1340 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
1341 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1342 | 1342 | /** |
1343 | 1343 | * Show total to pay |
1344 | 1344 | * |
@@ -1352,7 +1352,7 @@ discard block |
||
1352 | 1352 | */ |
1353 | 1353 | protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs, $outputlangsbis) |
1354 | 1354 | { |
1355 | - // phpcs:enable |
|
1355 | + // phpcs:enable |
|
1356 | 1356 | global $conf, $mysoc, $hookmanager; |
1357 | 1357 | |
1358 | 1358 | $sign = 1; |
@@ -1683,7 +1683,7 @@ discard block |
||
1683 | 1683 | return ($tab2_top + ($tab2_hl * $index)); |
1684 | 1684 | } |
1685 | 1685 | |
1686 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1686 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1687 | 1687 | /** |
1688 | 1688 | * Show table for lines |
1689 | 1689 | * |
@@ -1804,7 +1804,7 @@ discard block |
||
1804 | 1804 | } |
1805 | 1805 | } |
1806 | 1806 | |
1807 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1807 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
1808 | 1808 | /** |
1809 | 1809 | * Show top header of page. |
1810 | 1810 | * |
@@ -1817,7 +1817,7 @@ discard block |
||
1817 | 1817 | */ |
1818 | 1818 | protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null) |
1819 | 1819 | { |
1820 | - // phpcs:enable |
|
1820 | + // phpcs:enable |
|
1821 | 1821 | global $conf, $langs; |
1822 | 1822 | |
1823 | 1823 | $ltrdirection = 'L'; |
@@ -2195,7 +2195,7 @@ discard block |
||
2195 | 2195 | return $top_shift; |
2196 | 2196 | } |
2197 | 2197 | |
2198 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
2198 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
2199 | 2199 | /** |
2200 | 2200 | * Show footer of page. Need this->emetteur object |
2201 | 2201 | * |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | // $pdf->GetY() here can't be used. It is bottom of the second address box but first one may be higher |
445 | 445 | |
446 | 446 | // $tab_top is y where we must continue content (90 = 42 + 48: 42 is height of logo and ref, 48 is address blocks) |
447 | - $tab_top = 90 + $top_shift; // top_shift is an addition for linked objects or addons (0 in most cases) |
|
447 | + $tab_top = 90 + $top_shift; // top_shift is an addition for linked objects or addons (0 in most cases) |
|
448 | 448 | $tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 + $top_shift : 10); |
449 | 449 | |
450 | 450 | // You can add more thing under header here, if you increase $extra_under_address_shift too. |
@@ -774,7 +774,7 @@ discard block |
||
774 | 774 | if (!isset($this->tva[$vatrate])) { |
775 | 775 | $this->tva[$vatrate] = 0; |
776 | 776 | } |
777 | - $this->tva[$vatrate] += $tvaligne; // ->tva is abandoned, we use now ->tva_array that is more complete |
|
777 | + $this->tva[$vatrate] += $tvaligne; // ->tva is abandoned, we use now ->tva_array that is more complete |
|
778 | 778 | $vatcode = $object->lines[$i]->vat_src_code; |
779 | 779 | if (empty($this->tva_array[$vatrate . ($vatcode ? ' (' . $vatcode . ')' : '')]['amount'])) { |
780 | 780 | $this->tva_array[$vatrate . ($vatcode ? ' (' . $vatcode . ')' : '')]['amount'] = 0; |
@@ -1153,7 +1153,7 @@ discard block |
||
1153 | 1153 | $lib_condition_paiement = str_replace('\n', "\n", $lib_condition_paiement); |
1154 | 1154 | $pdf->MultiCell(67, 4, $lib_condition_paiement, 0, 'L'); |
1155 | 1155 | |
1156 | - $posy = $pdf->GetY() + 3; // We need spaces for 2 lines payment conditions |
|
1156 | + $posy = $pdf->GetY() + 3; // We need spaces for 2 lines payment conditions |
|
1157 | 1157 | } |
1158 | 1158 | |
1159 | 1159 | // Show category of operations |
@@ -2113,7 +2113,7 @@ discard block |
||
2113 | 2113 | |
2114 | 2114 | $carac_client_name = pdfBuildThirdpartyName($thirdparty, $outputlangs); |
2115 | 2115 | |
2116 | - $mode = 'target'; |
|
2116 | + $mode = 'target'; |
|
2117 | 2117 | $carac_client = pdf_build_address($outputlangs, $this->emetteur, $object->thirdparty, ($usecontact ? $object->contact : ''), $usecontact, $mode, $object); |
2118 | 2118 | |
2119 | 2119 | // Show recipient |
@@ -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; |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | abstract class ModelePDFHoliday extends CommonDocGenerator |
42 | 42 | { |
43 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
43 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
44 | 44 | /** |
45 | 45 | * Return list of active generation modules |
46 | 46 | * |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | public static function liste_modeles($db, $maxfilenamelength = 0) |
52 | 52 | { |
53 | - // phpcs:enable |
|
53 | + // phpcs:enable |
|
54 | 54 | $type = 'holiday'; |
55 | 55 | $list = array(); |
56 | 56 |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | abstract class ModelePDFProduct extends CommonDocGenerator |
40 | 40 | { |
41 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
41 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
42 | 42 | /** |
43 | 43 | * Return list of active generation modules |
44 | 44 | * |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public static function liste_modeles($dbs, $maxfilenamelength = 0) |
50 | 50 | { |
51 | - // phpcs:enable |
|
51 | + // phpcs:enable |
|
52 | 52 | $type = 'product'; |
53 | 53 | $list = array(); |
54 | 54 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | return $langs->trans("Function_getNextValue_InModuleNotWorking"); |
77 | 77 | } |
78 | 78 | |
79 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
79 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
80 | 80 | /** |
81 | 81 | * Renvoi la liste des modeles de numérotation |
82 | 82 | * |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | */ |
87 | 87 | public static function liste_modeles($dbs, $maxfilenamelength = 0) |
88 | 88 | { |
89 | - // phpcs:enable |
|
89 | + // phpcs:enable |
|
90 | 90 | $list = array(); |
91 | 91 | $sql = ""; |
92 | 92 | |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | return $s; |
176 | 176 | } |
177 | 177 | |
178 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
178 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
179 | 179 | /** |
180 | 180 | * Check if mask/numbering use prefix |
181 | 181 | * |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | */ |
184 | 184 | public function verif_prefixIsUsed() |
185 | 185 | { |
186 | - // phpcs:enable |
|
186 | + // phpcs:enable |
|
187 | 187 | return 0; |
188 | 188 | } |
189 | 189 | } |