first commit

This commit is contained in:
Claudecio Martins
2026-06-16 10:04:10 -03:00
commit a951944997
4463 changed files with 419677 additions and 0 deletions
@@ -0,0 +1,22 @@
<?php
namespace WorkbloomERP\Module\v0\Contato\Constants;
class ContribuinteICMSConst {
public const CONTATO_CONTRIBUINTE_ICMS = [
1 => 'Contribuinte ICMS',
2 => 'Contribuinte Isento de Inscrição no Cadastro de Contribuintes',
9 => 'Não Contribuinte, que pode ou não possuir Inscrição Estadual no Cadastro de Contribuintes'
];
public static function getAll(): array {
return self::CONTATO_CONTRIBUINTE_ICMS;
}
public static function isValid(string $value): bool {
return array_key_exists(key: $value, array: self::CONTATO_CONTRIBUINTE_ICMS);
}
public static function getDescription(string $key): ?string {
return self::CONTATO_CONTRIBUINTE_ICMS[$key] ?? null;
}
}
@@ -0,0 +1,23 @@
<?php
namespace WorkbloomERP\Module\v0\Contato\Constants;
class NFSeConsumoIbsCbsConst {
public const CONTATO_USO_CONSUMO_IBS_CBS = [
'1' => 'Sim (Consumidor Final)',
'2' => 'Não informar',
'0' => 'Não (Operação B2B)',
];
public static function getAll(): array {
return self::CONTATO_USO_CONSUMO_IBS_CBS;
}
public static function getDescription(string|int|null $key): string {
return self::CONTATO_USO_CONSUMO_IBS_CBS[$key] ?? 'Valor desconhecido';
}
public static function isValid(string|int|null $key): bool {
return array_key_exists(key: $key, array: self::CONTATO_USO_CONSUMO_IBS_CBS);
}
}
@@ -0,0 +1,23 @@
<?php
namespace WorkbloomERP\Module\v0\Contato\Constants;
class OrgaoPublicoConst {
public const CONTATO_ORGAO_PUBLICO = [
'NAO' => 'Não',
'FEDERAL' => 'Órgão Público Federal',
'ESTADUAL' => 'Órgão Público Estadual',
'MUNICIPAL' => 'Órgão Público Municipal'
];
public static function getAll(): array {
return self::CONTATO_ORGAO_PUBLICO;
}
public static function isValid(string $value): bool {
return array_key_exists(key: $value, array: self::CONTATO_ORGAO_PUBLICO);
}
public static function getDescription(string $key): ?string {
return self::CONTATO_ORGAO_PUBLICO[$key] ?? null;
}
}
@@ -0,0 +1,22 @@
<?php
namespace WorkbloomERP\Module\v0\Contato\Constants;
class PersonalidadeConst {
public const CONTATO_PERSONALIDADE = [
'PF' => 'Pessoa Física',
'PJ' => 'Pessoa Jurídica',
'EX' => 'Estrangeiro'
];
public static function getAll(): array {
return self::CONTATO_PERSONALIDADE;
}
public static function isValid(string $value): bool {
return array_key_exists(key: $value, array: self::CONTATO_PERSONALIDADE);
}
public static function getDescription(string $key): ?string {
return self::CONTATO_PERSONALIDADE[$key] ?? null;
}
}
@@ -0,0 +1,21 @@
<?php
namespace WorkbloomERP\Module\v0\Contato\Constants;
class TipoConst {
public const CONTATO_TIPO = [
'CLIENTE' => 'Cliente',
'FORNECEDOR' => 'Fornecedor'
];
public static function getAll(): array {
return self::CONTATO_TIPO;
}
public static function isValid(string $value): bool {
return array_key_exists(key: $value, array: self::CONTATO_TIPO);
}
public static function getDescription(string $key): ?string {
return self::CONTATO_TIPO[$key] ?? null;
}
}