@senior-agronegocio/angular-components 0.0.9872 → 0.0.9874
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-agronegocio-angular-components.umd.js +123 -71
- package/bundles/senior-agronegocio-angular-components.umd.js.map +1 -1
- package/bundles/senior-agronegocio-angular-components.umd.min.js +2 -2
- package/bundles/senior-agronegocio-angular-components.umd.min.js.map +1 -1
- package/components/event-control-board/common/event-control-constants.d.ts +0 -5
- package/components/event-control-board/common/event-operation.d.ts +11 -1
- package/components/event-control-board/event-control-board.component.d.ts +2 -5
- package/components/event-control-board/service/event-control-item/event-control-item.d.ts +1 -0
- package/components/modal-invoice-pj/modal-shared-imports.d.ts +7 -4
- package/esm2015/components/event-control-board/common/event-control-constants.js +5 -15
- package/esm2015/components/event-control-board/common/event-operation.js +11 -1
- package/esm2015/components/event-control-board/event-control-board.component.js +38 -37
- package/esm2015/components/event-control-board/service/event-control-item/event-control-item.js +2 -1
- package/esm2015/services/i18n/en-US.js +21 -2
- package/esm2015/services/i18n/es-CO.js +13 -2
- package/esm2015/services/i18n/pt-BR.js +24 -3
- package/esm5/components/event-control-board/common/event-control-constants.js +5 -15
- package/esm5/components/event-control-board/common/event-operation.js +11 -1
- package/esm5/components/event-control-board/event-control-board.component.js +38 -37
- package/esm5/components/event-control-board/service/event-control-item/event-control-item.js +2 -1
- package/esm5/services/i18n/en-US.js +21 -2
- package/esm5/services/i18n/es-CO.js +13 -2
- package/esm5/services/i18n/pt-BR.js +24 -3
- package/fesm2015/senior-agronegocio-angular-components.js +120 -68
- package/fesm2015/senior-agronegocio-angular-components.js.map +1 -1
- package/fesm5/senior-agronegocio-angular-components.js +123 -71
- package/fesm5/senior-agronegocio-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/services/i18n/en-US.d.ts +20 -1
- package/services/i18n/es-CO.d.ts +11 -0
- package/services/i18n/pt-BR.d.ts +22 -1
|
@@ -940,7 +940,6 @@
|
|
|
940
940
|
"agro.angular_components.remove_provisional_event": "Remover Saldo Provisório",
|
|
941
941
|
"agro.angular_components.canceled": "Cancelado",
|
|
942
942
|
"agro.angular_components.label_number": "Ticket",
|
|
943
|
-
"agro.grain_classification.label_number": "Ticket",
|
|
944
943
|
"agro.angular_components.cnpj": "CNPJ",
|
|
945
944
|
"agro.angular_components.label_city": "Cidade",
|
|
946
945
|
"agro.angular_components.menu_event_control": "Consulta de eventos/integrações",
|
|
@@ -1011,6 +1010,28 @@
|
|
|
1011
1010
|
"agro.angular_components.CIDASC_DATA_LOAD_COMPOSED_MEASURE_UNIT": "Carga Cidasc - Medida por hectare",
|
|
1012
1011
|
"agro.angular_components.PRESCRIPTION_DATA_LOAD": "Carga de dados do NovoReceituário",
|
|
1013
1012
|
"agro.angular_components.agronomic_prescription_origin_event": "Receituário Agronômico",
|
|
1013
|
+
'agro.angular_components.PRESCRIPTION_DATA_LOAD_PRODUCT_TYPE': 'Carga de dados do NovoReceituário - Tipo de Produto',
|
|
1014
|
+
'agro.angular_components.PRESCRIPTION_DATA_LOAD_ACTIVE_PRINCIPLE': 'Carga de dados do NovoReceituário - Princípio Ativo',
|
|
1015
|
+
'agro.angular_components.PRESCRIPTION_DATA_LOAD_FORMULATION': 'Carga de dados do NovoReceituário - Formulação',
|
|
1016
|
+
'agro.angular_components.PRESCRIPTION_DATA_LOAD_BULLETIN': 'Carga de dados do NovoReceituário - Bula',
|
|
1017
|
+
'agro.angular_components.PRESCRIPTION_DATA_LOAD_APPLICATION_UNIT': 'Carga de dados do NovoReceituário - Unidade de aplicação',
|
|
1018
|
+
'agro.angular_components.PRESCRIPTION_DATA_LOAD_SPECIE': 'Carga de dados do NovoReceituário - Espécie',
|
|
1019
|
+
'agro.angular_components.PRESCRIPTION_DATA_LOAD_APPLICATION_TYPE': 'Carga de dados do NovoReceituário - Tipo de aplicação',
|
|
1020
|
+
'agro.angular_components.PRESCRIPTION_DATA_LOAD_PROBLEMS': 'Carga de dados do NovoReceituário - Pragas e problemas',
|
|
1021
|
+
'agro.angular_components.PRESCRIPTION_DATA_LOAD_APPLICATION': 'Carga de dados do NovoReceituário - Aplicação',
|
|
1022
|
+
'agro.angular_components.PRESCRIPTION_DATA_LOAD_END': 'Carga de dados do NovoReceituário - Finalizar integração',
|
|
1023
|
+
'agro.angular_components.new_prescription_page': 'Parte {count}',
|
|
1024
|
+
'agro.angular_components.number_or_series': 'Número',
|
|
1025
|
+
'agro.angular_components.panel_title_external_invoice_add_external_invoice': 'Adicionar nota fiscal',
|
|
1026
|
+
'agro.angular_components.add_pj_invoice_modal_no_invoices_found': 'Nenhuma nota fiscal disponível para este produtor',
|
|
1027
|
+
'agro.angular_components.number': 'Número',
|
|
1028
|
+
'agro.angular_components.series': 'Série',
|
|
1029
|
+
'agro.angular_components.itens': 'Itens',
|
|
1030
|
+
'agro.angular_components.quantity': 'Quantidade',
|
|
1031
|
+
'agro.angular_components.issuance_date': 'Data de emissão',
|
|
1032
|
+
'agro.angular_components.no_register_found_for_external_invoices_summary': 'Nenhuma nota encontrada',
|
|
1033
|
+
'agro.angular_components.total_value': 'Valor total',
|
|
1034
|
+
'agro.angular_components.value_linked': 'Valor vinculado',
|
|
1014
1035
|
"agro.angular_components.no_accounts_found_title": "Nenhuma conta encontrada",
|
|
1015
1036
|
"agro.angular_components.no_accounts_found_description": "Não foram encontradas contas para o produtor selecionado.",
|
|
1016
1037
|
"agro.angular_components.details": "Detalhes",
|
|
@@ -1040,7 +1061,7 @@
|
|
|
1040
1061
|
"agro.angular_components.error_loading_accounts_description": "Ocorreu um erro ao carregar as contas do produtor. Tente novamente mais tarde.",
|
|
1041
1062
|
"agro.angular_components.close": "Fechar",
|
|
1042
1063
|
"agro.angular_components.value_paid": "Valor a pagar",
|
|
1043
|
-
"agro.angular_components.timeout_request_error": "Tempo de requisição excedida. Tente novamente mais tarde."
|
|
1064
|
+
"agro.angular_components.timeout_request_error": "Tempo de requisição excedida. Tente novamente mais tarde."
|
|
1044
1065
|
};
|
|
1045
1066
|
|
|
1046
1067
|
var enUS = {
|
|
@@ -1296,8 +1317,27 @@
|
|
|
1296
1317
|
"agro.angular_components.CIDASC_DATA_LOAD_PRODUCT": "Cidasc Load - Product",
|
|
1297
1318
|
"agro.angular_components.CIDASC_DATA_LOAD_MEASURE_UNIT": "Cidasc Load - Unit of measure",
|
|
1298
1319
|
"agro.angular_components.CIDASC_DATA_LOAD_COMPOSED_MEASURE_UNIT": "Cidasc Load - Measure per hectare",
|
|
1299
|
-
"agro.angular_components.PRESCRIPTION_DATA_LOAD": "Prescription data load",
|
|
1300
1320
|
"agro.angular_components.agronomic_prescription_origin_event": "Agronomic Prescription",
|
|
1321
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD": "NewPrescription data load",
|
|
1322
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_PRODUCT_TYPE": "NewPrescription data load - Product Type",
|
|
1323
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_ACTIVE_PRINCIPLE": "NewPrescription data load - Active Principle",
|
|
1324
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_FORMULATION": "NewPrescription data load - Formulation",
|
|
1325
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_BULLETIN": "NewPrescription data load - Bulletin",
|
|
1326
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_APPLICATION_UNIT": "NewPrescription data load - Application Unit",
|
|
1327
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_SPECIE": "NewPrescription data load - Species",
|
|
1328
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_APPLICATION_TYPE": "NewPrescription data load - Application Type",
|
|
1329
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_PROBLEMS": "NewPrescription data load - Pests and Problems",
|
|
1330
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_APPLICATION": "NewPrescription data load - Application",
|
|
1331
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_END": "NewPrescription data load - End Integration",
|
|
1332
|
+
'agro.angular_components.new_prescription_page': 'Part {count}',
|
|
1333
|
+
"agro.angular_components.number_or_series": "Número ou série",
|
|
1334
|
+
"agro.angular_components.panel_title_external_invoice_add_external_invoice": "Adicionar nota fiscal",
|
|
1335
|
+
"agro.angular_components.add_pj_invoice_modal_no_invoices_found": "Nenhuma nota fiscal disponível para este produtor",
|
|
1336
|
+
"agro.angular_components.number": "Número",
|
|
1337
|
+
"agro.angular_components.series": "Série",
|
|
1338
|
+
"agro.angular_components.itens": "Itens",
|
|
1339
|
+
"agro.angular_components.quantity": "Quantidade",
|
|
1340
|
+
"agro.angular_components.issuance_date": "Data de emissão",
|
|
1301
1341
|
"agro.angular_components.no_accounts_found_title": "No accounts found",
|
|
1302
1342
|
"agro.angular_components.no_accounts_found_description": "No accounts were found for the selected producer.",
|
|
1303
1343
|
"agro.angular_components.details": "Details",
|
|
@@ -1584,6 +1624,17 @@
|
|
|
1584
1624
|
"agro.angular_components.CIDASC_DATA_LOAD_MEASURE_UNIT": "Carga Cidasc - Unidad de medida",
|
|
1585
1625
|
"agro.angular_components.CIDASC_DATA_LOAD_COMPOSED_MEASURE_UNIT": "Carga Cidasc - Medida por hectárea",
|
|
1586
1626
|
"agro.angular_components.PRESCRIPTION_DATA_LOAD": "Carga de datos de la Nueva Receta",
|
|
1627
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_PRODUCT_TYPE": "Carga de datos de la Nueva Receta - Tipo de Producto",
|
|
1628
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_ACTIVE_PRINCIPLE": "Carga de datos de la Nueva Receta - Principio Activo",
|
|
1629
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_FORMULATION": "Carga de datos de la Nueva Receta - Formulación",
|
|
1630
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_BULLETIN": "Carga de datos de la Nueva Receta - Bula",
|
|
1631
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_APPLICATION_UNIT": "Carga de datos de la Nueva Receta - Unidad de aplicación",
|
|
1632
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_SPECIE": "Carga de datos de la Nueva Receta - Especie",
|
|
1633
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_APPLICATION_TYPE": "Carga de datos de la Nueva Receta - Tipo de aplicación",
|
|
1634
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_PROBLEMS": "Carga de datos de la Nueva Receta - Plagas y problemas",
|
|
1635
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_APPLICATION": "Carga de datos de la Nueva Receta - Aplicación",
|
|
1636
|
+
"agro.angular_components.PRESCRIPTION_DATA_LOAD_END": "Carga de datos de la Nueva Receta - Finalizar integración",
|
|
1637
|
+
'agro.angular_components.new_prescription_page': 'Parte {count}',
|
|
1587
1638
|
"agro.angular_components.agronomic_prescription_origin_event": "Recetario Agronómico",
|
|
1588
1639
|
"agro.angular_components.no_accounts_found_title": "Ninguna cuenta encontrada",
|
|
1589
1640
|
"agro.angular_components.no_accounts_found_description": "No se encontraron cuentas para el productor seleccionado.",
|
|
@@ -1614,7 +1665,7 @@
|
|
|
1614
1665
|
"agro.angular_components.error_loading_accounts_description": "Ocurrió un error al cargar las cuentas del productor. Intente nuevamente más tarde.",
|
|
1615
1666
|
"agro.angular_components.close": "Cerrar",
|
|
1616
1667
|
"agro.angular_components.value_paid": "Valor a pagar",
|
|
1617
|
-
"agro.angular_components.timeout_request_error": "Tiempo de solicitud excedido. Intente nuevamente más tarde."
|
|
1668
|
+
"agro.angular_components.timeout_request_error": "Tiempo de solicitud excedido. Intente nuevamente más tarde."
|
|
1618
1669
|
};
|
|
1619
1670
|
|
|
1620
1671
|
|
|
@@ -5651,6 +5702,16 @@
|
|
|
5651
5702
|
EventOperation["TRANSFER_CREATE_SERVICE_INVOICE"] = "TRANSFER_CREATE_SERVICE_INVOICE";
|
|
5652
5703
|
EventOperation["TRANSFER_CANCEL_SERVICE_INVOICE"] = "TRANSFER_CANCEL_SERVICE_INVOICE";
|
|
5653
5704
|
EventOperation["REOPEN_INVOICE_FIXATION"] = "REOPEN_INVOICE_FIXATION";
|
|
5705
|
+
EventOperation["PRESCRIPTION_DATA_LOAD_PRODUCT_TYPE"] = "PRESCRIPTION_DATA_LOAD_PRODUCT_TYPE";
|
|
5706
|
+
EventOperation["PRESCRIPTION_DATA_LOAD_ACTIVE_PRINCIPLE"] = "PRESCRIPTION_DATA_LOAD_ACTIVE_PRINCIPLE";
|
|
5707
|
+
EventOperation["PRESCRIPTION_DATA_LOAD_FORMULATION"] = "PRESCRIPTION_DATA_LOAD_FORMULATION";
|
|
5708
|
+
EventOperation["PRESCRIPTION_DATA_LOAD_BULLETIN"] = "PRESCRIPTION_DATA_LOAD_BULLETIN";
|
|
5709
|
+
EventOperation["PRESCRIPTION_DATA_LOAD_APPLICATION_UNIT"] = "PRESCRIPTION_DATA_LOAD_APPLICATION_UNIT";
|
|
5710
|
+
EventOperation["PRESCRIPTION_DATA_LOAD_SPECIE"] = "PRESCRIPTION_DATA_LOAD_SPECIE";
|
|
5711
|
+
EventOperation["PRESCRIPTION_DATA_LOAD_APPLICATION_TYPE"] = "PRESCRIPTION_DATA_LOAD_APPLICATION_TYPE";
|
|
5712
|
+
EventOperation["PRESCRIPTION_DATA_LOAD_PROBLEMS"] = "PRESCRIPTION_DATA_LOAD_PROBLEMS";
|
|
5713
|
+
EventOperation["PRESCRIPTION_DATA_LOAD_APPLICATION"] = "PRESCRIPTION_DATA_LOAD_APPLICATION";
|
|
5714
|
+
EventOperation["PRESCRIPTION_DATA_LOAD_END"] = "PRESCRIPTION_DATA_LOAD_END";
|
|
5654
5715
|
})(EventOperation || (EventOperation = {}));
|
|
5655
5716
|
|
|
5656
5717
|
var InputFields;
|
|
@@ -5666,7 +5727,6 @@
|
|
|
5666
5727
|
{
|
|
5667
5728
|
label: "agro.angular_components.CREATE_INVOICE_FIXATION",
|
|
5668
5729
|
value: EventOperation.CREATE_INVOICE,
|
|
5669
|
-
subLabelField: InputFields.AGRO_INVOICE_TYPE,
|
|
5670
5730
|
},
|
|
5671
5731
|
{ label: "agro.angular_components.remove_provisional_event", value: EventOperation.REMOVE_PROVISIONAL },
|
|
5672
5732
|
{ label: "agro.angular_components.effective_event", value: EventOperation.EFFECTIVE },
|
|
@@ -5677,7 +5737,10 @@
|
|
|
5677
5737
|
{
|
|
5678
5738
|
label: "agro.angular_components." + EventOperation.CANCEL_INVOICE,
|
|
5679
5739
|
value: EventOperation.CANCEL_INVOICE,
|
|
5680
|
-
|
|
5740
|
+
},
|
|
5741
|
+
{
|
|
5742
|
+
label: "agro.angular_components." + EventOperation.INVOICE_CLOSE_INVOICE,
|
|
5743
|
+
value: EventOperation.INVOICE_CLOSE_INVOICE,
|
|
5681
5744
|
},
|
|
5682
5745
|
{
|
|
5683
5746
|
label: "agro.angular_components." + EventOperation.INVOICE_CLOSE_INVOICE,
|
|
@@ -5726,17 +5789,14 @@
|
|
|
5726
5789
|
{
|
|
5727
5790
|
label: "agro.angular_components." + EventOperation.CREATE_INVOICE_FIXATION,
|
|
5728
5791
|
value: EventOperation.CREATE_INVOICE_FIXATION,
|
|
5729
|
-
subLabelField: InputFields.INVOICE_TYPE,
|
|
5730
5792
|
},
|
|
5731
5793
|
{
|
|
5732
5794
|
label: "agro.angular_components." + EventOperation.CANCEL_INVOICE_FIXATION,
|
|
5733
5795
|
value: EventOperation.CANCEL_INVOICE_FIXATION,
|
|
5734
|
-
subLabelField: InputFields.INVOICE_TYPE,
|
|
5735
5796
|
},
|
|
5736
5797
|
{
|
|
5737
5798
|
label: "agro.angular_components." + EventOperation.CLOSE_INVOICE_FIXATION,
|
|
5738
5799
|
value: EventOperation.CLOSE_INVOICE_FIXATION,
|
|
5739
|
-
subLabelField: InputFields.INVOICE_NUMBER,
|
|
5740
5800
|
},
|
|
5741
5801
|
{
|
|
5742
5802
|
label: "agro.angular_components." + EventOperation.CLOSE_INVOICE_TRANSFER,
|
|
@@ -5749,7 +5809,6 @@
|
|
|
5749
5809
|
{
|
|
5750
5810
|
label: "agro.angular_components." + EventOperation.ORIGINATION_CREATE_INVOICE,
|
|
5751
5811
|
value: EventOperation.ORIGINATION_CREATE_INVOICE,
|
|
5752
|
-
subLabelField: InputFields.INVOICE_TYPE,
|
|
5753
5812
|
},
|
|
5754
5813
|
{
|
|
5755
5814
|
label: "agro.angular_components." + EventOperation.TRANSFER_CREATE_FINANCIAL_TITLE,
|
|
@@ -5770,15 +5829,7 @@
|
|
|
5770
5829
|
{
|
|
5771
5830
|
label: "agro.angular_components." + EventOperation.REOPEN_INVOICE_FIXATION,
|
|
5772
5831
|
value: EventOperation.REOPEN_INVOICE_FIXATION,
|
|
5773
|
-
subLabelField: InputFields.INVOICE_NUMBER,
|
|
5774
5832
|
},
|
|
5775
|
-
];
|
|
5776
|
-
var inputFieldsPath = [
|
|
5777
|
-
{ path: null, field: InputFields.INVOICE_TYPE, operation: EventOperation.ORIGINATION_CREATE_INVOICE },
|
|
5778
|
-
{ path: "invoiceCreateRecordIn.0", field: InputFields.INVOICE_TYPE, operation: EventOperation.CREATE_INVOICE_FIXATION },
|
|
5779
|
-
{ path: "invoiceCancelRecordIn.0", field: InputFields.INVOICE_TYPE, operation: EventOperation.CANCEL_INVOICE_FIXATION },
|
|
5780
|
-
{ path: null, field: InputFields.INVOICE_NUMBER, operation: EventOperation.CLOSE_INVOICE_FIXATION },
|
|
5781
|
-
{ path: null, field: InputFields.INVOICE_NUMBER, operation: EventOperation.REOPEN_INVOICE_FIXATION },
|
|
5782
5833
|
];
|
|
5783
5834
|
|
|
5784
5835
|
var EventOrigin;
|
|
@@ -5999,6 +6050,26 @@
|
|
|
5999
6050
|
return EventControlItemService;
|
|
6000
6051
|
}(AgroEntityService));
|
|
6001
6052
|
|
|
6053
|
+
var EventControlService = /** @class */ (function (_super) {
|
|
6054
|
+
__extends(EventControlService, _super);
|
|
6055
|
+
function EventControlService(http, messageService, translate) {
|
|
6056
|
+
var _this = _super.call(this, http, messageService, "agro/agro_events/entities/eventControl", "agro/agro_events/actions", "agro/agro_events/queries", translate) || this;
|
|
6057
|
+
_this.http = http;
|
|
6058
|
+
_this.messageService = messageService;
|
|
6059
|
+
_this.translate = translate;
|
|
6060
|
+
return _this;
|
|
6061
|
+
}
|
|
6062
|
+
EventControlService.ctorParameters = function () { return [
|
|
6063
|
+
{ type: http.HttpClient },
|
|
6064
|
+
{ type: api.MessageService },
|
|
6065
|
+
{ type: LibTranslationService }
|
|
6066
|
+
]; };
|
|
6067
|
+
EventControlService = __decorate([
|
|
6068
|
+
core.Injectable()
|
|
6069
|
+
], EventControlService);
|
|
6070
|
+
return EventControlService;
|
|
6071
|
+
}(AgroEntityService));
|
|
6072
|
+
|
|
6002
6073
|
var PaginatorStorageService = /** @class */ (function () {
|
|
6003
6074
|
function PaginatorStorageService() {
|
|
6004
6075
|
this.GET_USER_ID = seniorPlatformData.user.getUserData().then(function (user) { return user.id; });
|
|
@@ -6067,26 +6138,6 @@
|
|
|
6067
6138
|
return PaginatorStorageService;
|
|
6068
6139
|
}());
|
|
6069
6140
|
|
|
6070
|
-
var EventControlService = /** @class */ (function (_super) {
|
|
6071
|
-
__extends(EventControlService, _super);
|
|
6072
|
-
function EventControlService(http, messageService, translate) {
|
|
6073
|
-
var _this = _super.call(this, http, messageService, "agro/agro_events/entities/eventControl", "agro/agro_events/actions", "agro/agro_events/queries", translate) || this;
|
|
6074
|
-
_this.http = http;
|
|
6075
|
-
_this.messageService = messageService;
|
|
6076
|
-
_this.translate = translate;
|
|
6077
|
-
return _this;
|
|
6078
|
-
}
|
|
6079
|
-
EventControlService.ctorParameters = function () { return [
|
|
6080
|
-
{ type: http.HttpClient },
|
|
6081
|
-
{ type: api.MessageService },
|
|
6082
|
-
{ type: LibTranslationService }
|
|
6083
|
-
]; };
|
|
6084
|
-
EventControlService = __decorate([
|
|
6085
|
-
core.Injectable()
|
|
6086
|
-
], EventControlService);
|
|
6087
|
-
return EventControlService;
|
|
6088
|
-
}(AgroEntityService));
|
|
6089
|
-
|
|
6090
6141
|
var ProducerInvoice = /** @class */ (function () {
|
|
6091
6142
|
function ProducerInvoice() {
|
|
6092
6143
|
}
|
|
@@ -6212,7 +6263,6 @@
|
|
|
6212
6263
|
};
|
|
6213
6264
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
6214
6265
|
this.eventItem = eventItem;
|
|
6215
|
-
this.inputFieldsPath = inputFieldsPath;
|
|
6216
6266
|
this.invoiceTypeTranslate = invoiceTypeTranslate;
|
|
6217
6267
|
common.registerLocaleData(localePt);
|
|
6218
6268
|
}
|
|
@@ -6442,6 +6492,7 @@
|
|
|
6442
6492
|
'eventControlItem.eventOperation',
|
|
6443
6493
|
'eventControlItem.output',
|
|
6444
6494
|
'eventControlItem.status',
|
|
6495
|
+
'eventControlItem.subTitle',
|
|
6445
6496
|
'eventControlItem.message',
|
|
6446
6497
|
'eventControlItem.createdBy',
|
|
6447
6498
|
'eventControlItem.createdDate',
|
|
@@ -6476,7 +6527,7 @@
|
|
|
6476
6527
|
controlCode: item.controlCode,
|
|
6477
6528
|
eventType: item.eventOrigin,
|
|
6478
6529
|
label: this.getEventLabel(detail),
|
|
6479
|
-
subLabel: this.
|
|
6530
|
+
subLabel: this.formatSubtitle(detail),
|
|
6480
6531
|
disabled: detail.status === EventStatus.PENDING && detailIndex !== this.calculateActiveIndex(item.eventControlItem),
|
|
6481
6532
|
tooltip: this.getEventLabel(detail),
|
|
6482
6533
|
state: this.determineStepState(detail),
|
|
@@ -6511,40 +6562,41 @@
|
|
|
6511
6562
|
}
|
|
6512
6563
|
return null;
|
|
6513
6564
|
};
|
|
6514
|
-
EventControlBoardComponent.prototype.
|
|
6515
|
-
var _a
|
|
6516
|
-
var
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
var
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6565
|
+
EventControlBoardComponent.prototype.formatSubtitle = function (detail) {
|
|
6566
|
+
var _a;
|
|
6567
|
+
var eventOperation = detail.eventOperation, subTitle = detail.subTitle;
|
|
6568
|
+
var invoiceOperations = [
|
|
6569
|
+
EventOperation.CREATE_INVOICE_FIXATION,
|
|
6570
|
+
EventOperation.CANCEL_INVOICE_FIXATION,
|
|
6571
|
+
EventOperation.ORIGINATION_CREATE_INVOICE
|
|
6572
|
+
];
|
|
6573
|
+
var numberPrefixOperations = [
|
|
6574
|
+
EventOperation.CLOSE_INVOICE_FIXATION,
|
|
6575
|
+
EventOperation.REOPEN_INVOICE_FIXATION
|
|
6576
|
+
];
|
|
6577
|
+
var prescriptionOperations = [
|
|
6578
|
+
EventOperation.PRESCRIPTION_DATA_LOAD_PRODUCT_TYPE,
|
|
6579
|
+
EventOperation.PRESCRIPTION_DATA_LOAD_ACTIVE_PRINCIPLE,
|
|
6580
|
+
EventOperation.PRESCRIPTION_DATA_LOAD_FORMULATION,
|
|
6581
|
+
EventOperation.PRESCRIPTION_DATA_LOAD_BULLETIN,
|
|
6582
|
+
EventOperation.PRESCRIPTION_DATA_LOAD_APPLICATION_UNIT,
|
|
6583
|
+
EventOperation.PRESCRIPTION_DATA_LOAD_SPECIE,
|
|
6584
|
+
EventOperation.PRESCRIPTION_DATA_LOAD_APPLICATION_TYPE,
|
|
6585
|
+
EventOperation.PRESCRIPTION_DATA_LOAD_PROBLEMS,
|
|
6586
|
+
EventOperation.PRESCRIPTION_DATA_LOAD_APPLICATION
|
|
6587
|
+
];
|
|
6588
|
+
var formattedSubtitle = subTitle;
|
|
6589
|
+
if (invoiceOperations.includes(eventOperation)) {
|
|
6590
|
+
var label = (_a = this.invoiceTypeTranslate.find(function (e) { return e.value === subTitle; })) === null || _a === void 0 ? void 0 : _a.label;
|
|
6591
|
+
formattedSubtitle = label ? this.translate.instant(label) : subTitle;
|
|
6530
6592
|
}
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
return null;
|
|
6593
|
+
if (numberPrefixOperations.includes(eventOperation)) {
|
|
6594
|
+
formattedSubtitle = subTitle ? "n\u00B0 " + subTitle : subTitle;
|
|
6534
6595
|
}
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
var _a;
|
|
6538
|
-
switch (field) {
|
|
6539
|
-
case InputFields.AGRO_INVOICE_TYPE:
|
|
6540
|
-
case InputFields.INVOICE_TYPE:
|
|
6541
|
-
var label = (_a = this.invoiceTypeTranslate.find(function (e) { return e.value === value; })) === null || _a === void 0 ? void 0 : _a.label;
|
|
6542
|
-
return label ? this.translate.instant(label) : value;
|
|
6543
|
-
case InputFields.INVOICE_NUMBER:
|
|
6544
|
-
return value ? "n° " + value : value;
|
|
6545
|
-
default:
|
|
6546
|
-
return value;
|
|
6596
|
+
if (prescriptionOperations.includes(eventOperation)) {
|
|
6597
|
+
formattedSubtitle = this.translate.instant('agro.angular_components.new_prescription_page', { count: subTitle });
|
|
6547
6598
|
}
|
|
6599
|
+
return formattedSubtitle;
|
|
6548
6600
|
};
|
|
6549
6601
|
EventControlBoardComponent.prototype.onGridChange = function (event) {
|
|
6550
6602
|
var size = event === null || event === void 0 ? void 0 : event.rows;
|