|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/* |
|
4
|
|
|
* Copyright (C) 2020 joenilson. |
|
5
|
|
|
* |
|
6
|
|
|
* This library is free software; you can redistribute it and/or |
|
7
|
|
|
* modify it under the terms of the GNU Lesser General Public |
|
8
|
|
|
* License as published by the Free Software Foundation; either |
|
9
|
|
|
* version 3 of the License, or (at your option) any later version. |
|
10
|
|
|
* |
|
11
|
|
|
* This library is distributed in the hope that it will be useful, |
|
12
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
14
|
|
|
* Lesser General Public License for more details. |
|
15
|
|
|
* |
|
16
|
|
|
* You should have received a copy of the GNU Lesser General Public |
|
17
|
|
|
* License along with this library; if not, write to the Free Software |
|
18
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19
|
|
|
* MA 02110-1301 USA |
|
20
|
|
|
*/ |
|
21
|
|
|
|
|
22
|
|
|
namespace FacturaScripts\Plugins\fsRepublicaDominicana\Lib; |
|
23
|
|
|
|
|
24
|
|
|
use FacturaScripts\Core\Base\Translator; |
|
|
|
|
|
|
25
|
|
|
use FacturaScripts\Core\Lib\BusinessDocSubType as ParentClass; |
|
|
|
|
|
|
26
|
|
|
|
|
27
|
|
|
/** |
|
28
|
|
|
* Description of BusinessDocSubType |
|
29
|
|
|
* |
|
30
|
|
|
* @author joenilson |
|
31
|
|
|
*/ |
|
32
|
|
|
class BusinessDocSubType extends ParentClass |
|
33
|
|
|
{ |
|
34
|
|
|
const SUB_TYPE_DOCUMENT_NCF01 = '01'; |
|
35
|
|
|
const SUB_TYPE_DOCUMENT_NCF02 = '02'; |
|
36
|
|
|
const SUB_TYPE_DOCUMENT_NCF03 = '03'; |
|
37
|
|
|
const SUB_TYPE_DOCUMENT_NCF04 = '04'; |
|
38
|
|
|
/** DON'T EXIST FROM 05 TO 10 **/ |
|
39
|
|
|
const SUB_TYPE_DOCUMENT_NCF11 = '11'; |
|
40
|
|
|
const SUB_TYPE_DOCUMENT_NCF12 = '12'; |
|
41
|
|
|
const SUB_TYPE_DOCUMENT_NCF13 = '13'; |
|
42
|
|
|
const SUB_TYPE_DOCUMENT_NCF14 = '14'; |
|
43
|
|
|
const SUB_TYPE_DOCUMENT_NCF15 = '15'; |
|
44
|
|
|
const SUB_TYPE_DOCUMENT_NCF16 = '16'; |
|
45
|
|
|
const SUB_TYPE_DOCUMENT_NCF17 = '17'; |
|
46
|
|
|
|
|
47
|
|
|
/** |
|
48
|
|
|
* |
|
49
|
|
|
* @var Translator |
|
50
|
|
|
*/ |
|
51
|
|
|
public static $i18n; |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* Returns all the available options |
|
55
|
|
|
* |
|
56
|
|
|
* @return array |
|
57
|
|
|
*/ |
|
58
|
|
|
public static function all() |
|
59
|
|
|
{ |
|
60
|
|
|
if (!isset(self::$i18n)) { |
|
61
|
|
|
self::$i18n = new Translator(); |
|
62
|
|
|
} |
|
63
|
|
|
|
|
64
|
|
|
return [ |
|
65
|
|
|
self::SUB_TYPE_DOCUMENT_NCF01 => self::$i18n->trans('desc-ncf-type-01'), |
|
66
|
|
|
self::SUB_TYPE_DOCUMENT_NCF02 => self::$i18n->trans('desc-ncf-type-02'), |
|
67
|
|
|
self::SUB_TYPE_DOCUMENT_NCF03 => self::$i18n->trans('desc-ncf-type-03'), |
|
68
|
|
|
self::SUB_TYPE_DOCUMENT_NCF04 => self::$i18n->trans('desc-ncf-type-04'), |
|
69
|
|
|
self::SUB_TYPE_DOCUMENT_NCF11 => self::$i18n->trans('desc-ncf-type-11'), |
|
70
|
|
|
self::SUB_TYPE_DOCUMENT_NCF12 => self::$i18n->trans('desc-ncf-type-12'), |
|
71
|
|
|
self::SUB_TYPE_DOCUMENT_NCF13 => self::$i18n->trans('desc-ncf-type-13'), |
|
72
|
|
|
self::SUB_TYPE_DOCUMENT_NCF14 => self::$i18n->trans('desc-ncf-type-14'), |
|
73
|
|
|
self::SUB_TYPE_DOCUMENT_NCF15 => self::$i18n->trans('desc-ncf-type-15'), |
|
74
|
|
|
self::SUB_TYPE_DOCUMENT_NCF16 => self::$i18n->trans('desc-ncf-type-16'), |
|
75
|
|
|
self::SUB_TYPE_DOCUMENT_NCF17 => self::$i18n->trans('desc-ncf-type-17'), |
|
76
|
|
|
]; |
|
77
|
|
|
} |
|
78
|
|
|
} |
|
79
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths