@senior-agronegocio/angular-components 0.0.85 → 0.0.87
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 +17 -5
- package/bundles/senior-agronegocio-angular-components.umd.js.map +1 -1
- package/bundles/senior-agronegocio-angular-components.umd.min.js +1 -1
- package/bundles/senior-agronegocio-angular-components.umd.min.js.map +1 -1
- package/components/event-control-board/event-control-board.component.d.ts +3 -2
- package/esm2015/components/event-control-board/common/event-control-constants.js +3 -3
- package/esm2015/components/event-control-board/event-control-board.component.js +16 -4
- package/esm5/components/event-control-board/common/event-control-constants.js +3 -3
- package/esm5/components/event-control-board/event-control-board.component.js +16 -4
- package/fesm2015/senior-agronegocio-angular-components.js +17 -5
- package/fesm2015/senior-agronegocio-angular-components.js.map +1 -1
- package/fesm5/senior-agronegocio-angular-components.js +17 -5
- package/fesm5/senior-agronegocio-angular-components.js.map +1 -1
- package/package.json +2 -3
|
@@ -4727,8 +4727,8 @@
|
|
|
4727
4727
|
{ path: null, field: InputFields.INVOICE_TYPE, operation: EventOperation.ORIGINATION_CREATE_INVOICE },
|
|
4728
4728
|
{ path: "invoiceCreateRecordIn.0", field: InputFields.INVOICE_TYPE, operation: EventOperation.CREATE_INVOICE_FIXATION },
|
|
4729
4729
|
{ path: "invoiceCancelRecordIn.0", field: InputFields.INVOICE_TYPE, operation: EventOperation.CANCEL_INVOICE_FIXATION },
|
|
4730
|
-
{ path:
|
|
4731
|
-
{ path:
|
|
4730
|
+
{ path: null, field: InputFields.INVOICE_NUMBER, operation: EventOperation.CLOSE_INVOICE_FIXATION },
|
|
4731
|
+
{ path: null, field: InputFields.INVOICE_NUMBER, operation: EventOperation.REOPEN_INVOICE_FIXATION },
|
|
4732
4732
|
];
|
|
4733
4733
|
|
|
4734
4734
|
var EventOrigin;
|
|
@@ -5540,6 +5540,10 @@
|
|
|
5540
5540
|
}
|
|
5541
5541
|
return null;
|
|
5542
5542
|
};
|
|
5543
|
+
EventControlBoardComponent.prototype.getProducerBalanceEntryControlIdFromParams = function (param) {
|
|
5544
|
+
var producerBalanceEntryControlId = param.producerBalanceEntryControlId;
|
|
5545
|
+
return producerBalanceEntryControlId ? producerBalanceEntryControlId : null;
|
|
5546
|
+
};
|
|
5543
5547
|
EventControlBoardComponent.prototype.stepSelected = function (event) {
|
|
5544
5548
|
var _this = this;
|
|
5545
5549
|
this.selectedStep = event.step;
|
|
@@ -5553,14 +5557,22 @@
|
|
|
5553
5557
|
{
|
|
5554
5558
|
var param = JSON.parse(this.selectedStep.item.input);
|
|
5555
5559
|
var producerInvoiceId = this.getProducerInvoiceIdFromParams(param);
|
|
5560
|
+
var filterQuery = "";
|
|
5556
5561
|
if (!producerInvoiceId) {
|
|
5557
|
-
|
|
5558
|
-
|
|
5562
|
+
var producerBalanceEntryControlId = this.getProducerBalanceEntryControlIdFromParams(param);
|
|
5563
|
+
if (!producerBalanceEntryControlId) {
|
|
5564
|
+
this.sidebarLoading = false;
|
|
5565
|
+
return;
|
|
5566
|
+
}
|
|
5567
|
+
filterQuery = "producerBalanceEntryControl.id eq '" + producerBalanceEntryControlId + "'";
|
|
5568
|
+
}
|
|
5569
|
+
else {
|
|
5570
|
+
filterQuery = "id eq '" + producerInvoiceId + "'";
|
|
5559
5571
|
}
|
|
5560
5572
|
this.eventControlBoardService.producerInvoiceService
|
|
5561
5573
|
.list({
|
|
5562
5574
|
displayFields: ["*", "producerBalanceEntryControl.*", "producerBalanceEntryControl.producer.*"],
|
|
5563
|
-
filterQuery:
|
|
5575
|
+
filterQuery: filterQuery,
|
|
5564
5576
|
page: 0,
|
|
5565
5577
|
size: 1,
|
|
5566
5578
|
})
|