@senior-gestao-empresarial/erpx-components 4.2.0 → 4.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/senior-gestao-empresarial-erpx-components.umd.js +34 -17
- package/bundles/senior-gestao-empresarial-erpx-components.umd.js.map +1 -1
- package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js +1 -1
- package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js.map +1 -1
- package/core/enums/erpx-com-processo-faturamento-backend/enum-indicativo-padrao.d.ts +5 -0
- package/esm2015/components/tributos/erp-tributos.component.js +29 -18
- package/esm2015/core/enums/erpx-com-processo-faturamento-backend/enum-indicativo-padrao.js +7 -0
- package/esm5/components/tributos/erp-tributos.component.js +29 -18
- package/esm5/core/enums/erpx-com-processo-faturamento-backend/enum-indicativo-padrao.js +7 -0
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +34 -17
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +34 -17
- package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/package.json +1 -1
- package/senior-gestao-empresarial-erpx-components.metadata.json +1 -1
|
@@ -327,6 +327,13 @@ var EnumTipoCalculoImposto;
|
|
|
327
327
|
EnumTipoCalculoImposto["MANUAL"] = "MANUAL";
|
|
328
328
|
})(EnumTipoCalculoImposto || (EnumTipoCalculoImposto = {}));
|
|
329
329
|
|
|
330
|
+
var EnumIndicativoPadrao;
|
|
331
|
+
(function (EnumIndicativoPadrao) {
|
|
332
|
+
EnumIndicativoPadrao["NAO_PERMITIDO"] = "NAO_PERMITIDO";
|
|
333
|
+
EnumIndicativoPadrao["EXIGE"] = "EXIGE";
|
|
334
|
+
EnumIndicativoPadrao["INDIFERENTE"] = "INDIFERENTE";
|
|
335
|
+
})(EnumIndicativoPadrao || (EnumIndicativoPadrao = {}));
|
|
336
|
+
|
|
330
337
|
var ErpTributosService = /** @class */ (function () {
|
|
331
338
|
function ErpTributosService(http, messageService) {
|
|
332
339
|
this.http = http;
|
|
@@ -28285,16 +28292,16 @@ var ErpTributosComponent = /** @class */ (function () {
|
|
|
28285
28292
|
{ campo: EnumCampoTributo.Valor }
|
|
28286
28293
|
], EnumTipoTributo.IPI_PRESUMIDO)));
|
|
28287
28294
|
break;
|
|
28288
|
-
case this.context.document === 'Outgoing Invoice' &&
|
|
28289
|
-
this.context.invoice.type === 'Product Return':
|
|
28290
|
-
item.unshift(__assign({ name: EnumTipoTributo.IPI_PRESUMIDO, label: 'erpx.tributos.enum_tipo_tributo_ipi_presumido' }, this.montaCampos([
|
|
28291
|
-
{ campo: EnumCampoTributo.BaseCalculo },
|
|
28292
|
-
{ campo: EnumCampoTributo.Aliquota },
|
|
28293
|
-
{ campo: EnumCampoTributo.Valor }
|
|
28294
|
-
], EnumTipoTributo.IPI_PRESUMIDO)));
|
|
28295
|
-
break;
|
|
28296
28295
|
case this.context.document === 'Outgoing Invoice' &&
|
|
28297
28296
|
this.context.invoice.type !== 'Debit':
|
|
28297
|
+
if (this.context.document === 'Outgoing Invoice' &&
|
|
28298
|
+
this.context.invoice.type === 'Product Return') {
|
|
28299
|
+
item.unshift(__assign({ name: EnumTipoTributo.IPI_PRESUMIDO, label: 'erpx.tributos.enum_tipo_tributo_ipi_presumido' }, this.montaCampos([
|
|
28300
|
+
{ campo: EnumCampoTributo.BaseCalculo },
|
|
28301
|
+
{ campo: EnumCampoTributo.Aliquota },
|
|
28302
|
+
{ campo: EnumCampoTributo.Valor }
|
|
28303
|
+
], EnumTipoTributo.IPI_PRESUMIDO)));
|
|
28304
|
+
}
|
|
28298
28305
|
item.unshift(__assign({ name: EnumTipoTributo.IPI, label: 'erpx.tributos.enum_tipo_tributo_ipi' }, this.montaCampos([
|
|
28299
28306
|
{ campo: EnumCampoTributo.BaseCalculo },
|
|
28300
28307
|
{ campo: EnumCampoTributo.Aliquota },
|
|
@@ -29275,7 +29282,7 @@ var ErpTributosComponent = /** @class */ (function () {
|
|
|
29275
29282
|
tributo === EnumTipoTributo.IBS_ESTORNO_CREDITO
|
|
29276
29283
|
? EnumLogicalOperator.Eq
|
|
29277
29284
|
: EnumLogicalOperator.Ne,
|
|
29278
|
-
values: [
|
|
29285
|
+
values: [EnumIndicativoPadrao.EXIGE]
|
|
29279
29286
|
},
|
|
29280
29287
|
{
|
|
29281
29288
|
field: 'indGAjusteCompet',
|
|
@@ -29283,7 +29290,7 @@ var ErpTributosComponent = /** @class */ (function () {
|
|
|
29283
29290
|
tributo === EnumTipoTributo.IBS_AJUSTE
|
|
29284
29291
|
? EnumLogicalOperator.Eq
|
|
29285
29292
|
: EnumLogicalOperator.Ne,
|
|
29286
|
-
values: [
|
|
29293
|
+
values: [EnumIndicativoPadrao.EXIGE]
|
|
29287
29294
|
}
|
|
29288
29295
|
]);
|
|
29289
29296
|
formField.push(new FormField(__assign(__assign({}, _this.e027StrLookup.mountOptions({
|
|
@@ -29308,6 +29315,22 @@ var ErpTributosComponent = /** @class */ (function () {
|
|
|
29308
29315
|
{ value: undefined, disabled: false },
|
|
29309
29316
|
Validators.compose([])
|
|
29310
29317
|
] });
|
|
29318
|
+
var defaultFilter = [
|
|
29319
|
+
{
|
|
29320
|
+
field: 'situacao',
|
|
29321
|
+
operator: EnumLogicalOperator.Eq,
|
|
29322
|
+
values: ['ATIVO']
|
|
29323
|
+
}
|
|
29324
|
+
];
|
|
29325
|
+
if (_this.context.document === 'Outgoing Invoice' &&
|
|
29326
|
+
_this.context.invoice.type === 'Debit' &&
|
|
29327
|
+
(tributo === EnumTipoTributo.CBS_ESTORNO_CREDITO ||
|
|
29328
|
+
tributo === EnumTipoTributo.IBS_ESTORNO_CREDITO))
|
|
29329
|
+
defaultFilter.push({
|
|
29330
|
+
field: 'indGEstornoCred',
|
|
29331
|
+
operator: EnumLogicalOperator.Eq,
|
|
29332
|
+
values: [EnumIndicativoPadrao.EXIGE]
|
|
29333
|
+
});
|
|
29311
29334
|
formField.push(new FormField(__assign(__assign({}, _this.classificacaoTributariaLookup.mountOptions({
|
|
29312
29335
|
multiple: false,
|
|
29313
29336
|
prefix: 'erpx_cpl_imp.impostos',
|
|
@@ -29315,13 +29338,7 @@ var ErpTributosComponent = /** @class */ (function () {
|
|
|
29315
29338
|
service: _this.servico,
|
|
29316
29339
|
entity: 'classificacaoTributaria',
|
|
29317
29340
|
formGroup: 'classificacaoTributaria',
|
|
29318
|
-
defaultFilter:
|
|
29319
|
-
{
|
|
29320
|
-
field: 'situacao',
|
|
29321
|
-
operator: EnumLogicalOperator.Eq,
|
|
29322
|
-
values: ['ATIVO']
|
|
29323
|
-
}
|
|
29324
|
-
],
|
|
29341
|
+
defaultFilter: defaultFilter,
|
|
29325
29342
|
queryFields: ['e027str.id'],
|
|
29326
29343
|
entityDependency: [
|
|
29327
29344
|
{
|