@senior-gestao-empresarial/erpx-components 1.18.7 → 1.18.9
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 -53
- 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/components/lote-serie/erp-lote-serie.component.d.ts +3 -2
- package/components/tributos/erp-tributos.component.d.ts +1 -1
- package/esm2015/components/lote-serie/erp-lote-serie.component.js +34 -53
- package/esm2015/components/tributos/erp-tributos.component.js +3 -3
- package/esm5/components/lote-serie/erp-lote-serie.component.js +34 -53
- package/esm5/components/tributos/erp-tributos.component.js +3 -3
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +34 -53
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +34 -53
- package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -802,7 +802,7 @@
|
|
|
802
802
|
this.erpTributosService.getFrontend(params).subscribe(function (response) {
|
|
803
803
|
window.open("" + response.frontends[0].embeddedURL, '_blank');
|
|
804
804
|
});
|
|
805
|
-
this.gtag.sendButtonClick(
|
|
805
|
+
this.gtag.sendButtonClick('Botão acessar parametrização', { impostos: tributo.tipoTributo });
|
|
806
806
|
};
|
|
807
807
|
ErpTributosComponent.prototype.disabledButton = function (imposto) {
|
|
808
808
|
return this.idsTaxesMemoriaCalculo == undefined || !this.idsTaxesMemoriaCalculo.find(function (element) {
|
|
@@ -4164,50 +4164,28 @@
|
|
|
4164
4164
|
];
|
|
4165
4165
|
}
|
|
4166
4166
|
if (this.isSerie) {
|
|
4167
|
-
dadosFieldsSaida.push(
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
}) :
|
|
4190
|
-
new angularComponents.FormField({
|
|
4191
|
-
name: 'serie',
|
|
4192
|
-
label: this.translate.instant(this.prefix + "lookup_e200ser"),
|
|
4193
|
-
type: angularComponents.FieldType.Lookup,
|
|
4194
|
-
searchTitle: this.translate.instant(this.prefix + "lookup_e200ser_search_title"),
|
|
4195
|
-
searchEmptyTitle: this.translate.instant(this.prefix + "nothing_found"),
|
|
4196
|
-
filterLabel: this.translate.instant(this.prefix + "filter"),
|
|
4197
|
-
clearLabel: this.translate.instant(this.prefix + "clear"),
|
|
4198
|
-
cancelLabel: this.translate.instant(this.prefix + "cancel"),
|
|
4199
|
-
selectLabel: this.translate.instant(this.prefix + "select"),
|
|
4200
|
-
onSelect: function (event) { return _this.validaLoteorSerie(event); },
|
|
4201
|
-
size: { sm: 12, md: 4, lg: 4, xl: 3 },
|
|
4202
|
-
onSearchRequest: function (event) { return _this.onE200SerSearchRequest(event); },
|
|
4203
|
-
onLookupRequest: function (value) { return _this.onE200SerLookupRequest(value); },
|
|
4204
|
-
suggestionsObservable: this.e200serLookupSuggestionsObservable,
|
|
4205
|
-
searchObservable: this.e200serlookupSearchObservable,
|
|
4206
|
-
lookupDisplayField: 'label',
|
|
4207
|
-
searchFields: this.getE200SerSearchFields(),
|
|
4208
|
-
searchGridFields: this.getE200SerSearchGridFields(),
|
|
4209
|
-
required: function () { return true; }
|
|
4210
|
-
}), new angularComponents.FormField({
|
|
4167
|
+
dadosFieldsSaida.push(new angularComponents.FormField({
|
|
4168
|
+
name: 'serie',
|
|
4169
|
+
label: this.translate.instant(this.prefix + "lookup_e200ser"),
|
|
4170
|
+
type: angularComponents.FieldType.Lookup,
|
|
4171
|
+
searchTitle: this.translate.instant(this.prefix + "lookup_e200ser_search_title"),
|
|
4172
|
+
searchEmptyTitle: this.translate.instant(this.prefix + "nothing_found"),
|
|
4173
|
+
filterLabel: this.translate.instant(this.prefix + "filter"),
|
|
4174
|
+
clearLabel: this.translate.instant(this.prefix + "clear"),
|
|
4175
|
+
cancelLabel: this.translate.instant(this.prefix + "cancel"),
|
|
4176
|
+
selectLabel: this.translate.instant(this.prefix + "select"),
|
|
4177
|
+
size: { sm: 12, md: 4, lg: 4, xl: 3 },
|
|
4178
|
+
onSearchRequest: function (event) { return _this.onQuantidadeDisponivelDemandaRequest(event); },
|
|
4179
|
+
onLookupRequest: function (value) { return _this.onQuantidadeDisponivelDemandaRequest(value); },
|
|
4180
|
+
suggestionsObservable: this.quantidadeDisponivelDemandaLookupSuggestionsObservable,
|
|
4181
|
+
searchObservable: this.quantidadeDisponivelDemandalookupSearchObservable,
|
|
4182
|
+
lookupDisplayField: 'label',
|
|
4183
|
+
searchFields: this.getQuantidadeDisponivelDemandaSearchFields(),
|
|
4184
|
+
searchGridFields: this.getQuantidadeDisponivelDemandaSearchGridFields(),
|
|
4185
|
+
multiple: ((_b = (_a = this.loteSerieParams) === null || _a === void 0 ? void 0 : _a.invoiceInformation) === null || _b === void 0 ? void 0 : _b.origin) === exports.EnumInvoiceOrigin.V2,
|
|
4186
|
+
dataKey: 'id',
|
|
4187
|
+
required: function () { return true; }
|
|
4188
|
+
}), new angularComponents.FormField({
|
|
4211
4189
|
name: 'dataFabricacao',
|
|
4212
4190
|
label: this.translate.instant(this.prefix + "data_fabricacao"),
|
|
4213
4191
|
size: { sm: 12, md: 4, lg: 4, xl: 3 },
|
|
@@ -4413,7 +4391,7 @@
|
|
|
4413
4391
|
ErpLoteSerieComponent.prototype.onQuantidadeDisponivelDemandaRequest = function (event) {
|
|
4414
4392
|
var _this = this;
|
|
4415
4393
|
var listParams = {
|
|
4416
|
-
filterQuery: "idExterno eq '" + this.loteSerieParams.orderInformation.
|
|
4394
|
+
filterQuery: "idExterno eq '" + this.loteSerieParams.orderInformation.item.id + "' and qtdDisponivel > 0 and numSep is not null"
|
|
4417
4395
|
};
|
|
4418
4396
|
if (event instanceof String || typeof event === 'string') {
|
|
4419
4397
|
listParams.page = 0;
|
|
@@ -4536,8 +4514,9 @@
|
|
|
4536
4514
|
return;
|
|
4537
4515
|
}
|
|
4538
4516
|
}
|
|
4539
|
-
|
|
4540
|
-
|
|
4517
|
+
var distributedQuantity = this.formGroupBatchOrSeries.get('quantidade').value ? Number(this.formGroupBatchOrSeries.get('quantidade').value) : 0;
|
|
4518
|
+
if (distributedQuantity > 0) {
|
|
4519
|
+
if (this.qtdDistribuida + distributedQuantity > this.qtdAdistribuir) {
|
|
4541
4520
|
this.messageService.add({
|
|
4542
4521
|
severity: 'error',
|
|
4543
4522
|
summary: this.translate.instant(this.prefix + "distribution_error"),
|
|
@@ -4605,7 +4584,7 @@
|
|
|
4605
4584
|
}
|
|
4606
4585
|
var loteOrSerieValues = this.formGroupBatchOrSeries.getRawValue();
|
|
4607
4586
|
loteOrSerieValues = this.formatDates(loteOrSerieValues, ['dataFabricacao', 'dataValidade']);
|
|
4608
|
-
if (((_c = (_b = this.loteSerieParams) === null || _b === void 0 ? void 0 : _b.invoiceInformation) === null || _c === void 0 ? void 0 : _c.origin) === exports.EnumInvoiceOrigin.V2) {
|
|
4587
|
+
if (((_c = (_b = this.loteSerieParams) === null || _b === void 0 ? void 0 : _b.invoiceInformation) === null || _c === void 0 ? void 0 : _c.origin) === exports.EnumInvoiceOrigin.V2 && loteOrSerieValues.serie) {
|
|
4609
4588
|
if (Array.isArray(loteOrSerieValues.serie)) {
|
|
4610
4589
|
try {
|
|
4611
4590
|
for (var _d = __values(loteOrSerieValues.serie), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
@@ -5169,7 +5148,7 @@
|
|
|
5169
5148
|
e070empId: this.loteSerieParams.invoiceInformation.company.id,
|
|
5170
5149
|
e070filId: this.loteSerieParams.invoiceInformation.branch.id,
|
|
5171
5150
|
itensId: [
|
|
5172
|
-
this.loteSerieParams.invoiceInformation.
|
|
5151
|
+
this.loteSerieParams.invoiceInformation.item.product.id
|
|
5173
5152
|
],
|
|
5174
5153
|
tipo: EnumTipoDocumentoParametros.PedidoVenda,
|
|
5175
5154
|
documentoId: null,
|
|
@@ -5190,7 +5169,7 @@
|
|
|
5190
5169
|
.subscribe(function (_a) {
|
|
5191
5170
|
var necessidades = _a.necessidades;
|
|
5192
5171
|
var _b, _c;
|
|
5193
|
-
var itemId = (_c = (_b = _this.loteSerieParams) === null || _b === void 0 ? void 0 : _b.orderInformation) === null || _c === void 0 ? void 0 : _c.
|
|
5172
|
+
var itemId = (_c = (_b = _this.loteSerieParams) === null || _b === void 0 ? void 0 : _b.orderInformation) === null || _c === void 0 ? void 0 : _c.item.id;
|
|
5194
5173
|
var atendimento = necessidades.find(function (necessidade) { var _a; return ((_a = necessidade.documento) === null || _a === void 0 ? void 0 : _a.idExterno) === itemId; });
|
|
5195
5174
|
var getUrlInput = {
|
|
5196
5175
|
identifiers: [
|
|
@@ -5211,8 +5190,10 @@
|
|
|
5211
5190
|
});
|
|
5212
5191
|
};
|
|
5213
5192
|
ErpLoteSerieComponent.prototype.isDistributeSeriesButtonVisible = function () {
|
|
5214
|
-
var _a, _b;
|
|
5215
|
-
return ((_b = (_a = this.loteSerieParams) === null || _a === void 0 ? void 0 : _a.invoiceInformation) === null || _b === void 0 ? void 0 : _b.
|
|
5193
|
+
var _a, _b, _c, _d, _e, _f;
|
|
5194
|
+
return (((_d = (_c = (_b = (_a = this.loteSerieParams) === null || _a === void 0 ? void 0 : _a.invoiceInformation) === null || _b === void 0 ? void 0 : _b.item) === null || _c === void 0 ? void 0 : _c.product) === null || _d === void 0 ? void 0 : _d.isSerialControlled) &&
|
|
5195
|
+
((_f = (_e = this.loteSerieParams) === null || _e === void 0 ? void 0 : _e.invoiceInformation) === null || _f === void 0 ? void 0 : _f.origin) ===
|
|
5196
|
+
exports.EnumInvoiceOrigin.V2);
|
|
5216
5197
|
};
|
|
5217
5198
|
ErpLoteSerieComponent.prototype.onBlurQuantity = function () {
|
|
5218
5199
|
var quantity = this.formGroupBatchOrSeries.controls.quantidade.value;
|