@seniorsistemas/yms-integration 1.34.0 → 1.35.0-8aa74870-17c9-4899-8712-915a47eb2c89

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.
Files changed (43) hide show
  1. package/bundles/seniorsistemas-yms-integration.umd.js +213 -74
  2. package/bundles/seniorsistemas-yms-integration.umd.js.map +1 -1
  3. package/bundles/seniorsistemas-yms-integration.umd.min.js +1 -1
  4. package/bundles/seniorsistemas-yms-integration.umd.min.js.map +1 -1
  5. package/esm2015/seniorsistemas-yms-integration.js +44 -43
  6. package/esm2015/src/wms/components/document-grid/document-grid.component.js +18 -11
  7. package/esm2015/src/wms/components/document-grid/document-grid.module.js +3 -1
  8. package/esm2015/src/wms/components/document-grid/insert-key/insert-key.component.js +64 -7
  9. package/esm2015/src/wms/components/document-grid/insert-key/insert-key.module.js +4 -2
  10. package/esm2015/src/wms/components/document-grid/register-document/register-document.component.js +3 -9
  11. package/esm2015/src/wms/components/document-list/document-list.component.js +61 -9
  12. package/esm2015/src/wms/components/document-list/document-list.module.js +8 -3
  13. package/esm2015/src/wms/components/utils/invoice-conditions.js +12 -0
  14. package/esm2015/src/wms/entities/external-tenant/external-tenant-dto.js +1 -0
  15. package/esm2015/src/wms/entities/external-tenant/external-tenant.service.js +18 -0
  16. package/esm2015/src/wms/entities/invoice-condition/invoice-condition.js +2 -1
  17. package/esm5/seniorsistemas-yms-integration.js +44 -43
  18. package/esm5/src/wms/components/document-grid/document-grid.component.js +18 -11
  19. package/esm5/src/wms/components/document-grid/document-grid.module.js +3 -1
  20. package/esm5/src/wms/components/document-grid/insert-key/insert-key.component.js +66 -7
  21. package/esm5/src/wms/components/document-grid/insert-key/insert-key.module.js +4 -2
  22. package/esm5/src/wms/components/document-grid/register-document/register-document.component.js +3 -9
  23. package/esm5/src/wms/components/document-list/document-list.component.js +63 -9
  24. package/esm5/src/wms/components/document-list/document-list.module.js +8 -3
  25. package/esm5/src/wms/components/utils/invoice-conditions.js +12 -0
  26. package/esm5/src/wms/entities/external-tenant/external-tenant-dto.js +1 -0
  27. package/esm5/src/wms/entities/external-tenant/external-tenant.service.js +21 -0
  28. package/esm5/src/wms/entities/invoice-condition/invoice-condition.js +2 -1
  29. package/fesm2015/seniorsistemas-yms-integration.js +163 -32
  30. package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
  31. package/fesm5/seniorsistemas-yms-integration.js +170 -32
  32. package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
  33. package/package.json +1 -1
  34. package/seniorsistemas-yms-integration.d.ts +43 -42
  35. package/seniorsistemas-yms-integration.metadata.json +1 -1
  36. package/src/wms/components/document-grid/document-grid.component.d.ts +7 -2
  37. package/src/wms/components/document-grid/insert-key/insert-key.component.d.ts +13 -1
  38. package/src/wms/components/document-grid/register-document/register-document.component.d.ts +1 -1
  39. package/src/wms/components/document-list/document-list.component.d.ts +19 -1
  40. package/src/wms/components/utils/invoice-conditions.d.ts +6 -0
  41. package/src/wms/entities/external-tenant/external-tenant-dto.d.ts +7 -0
  42. package/src/wms/entities/external-tenant/external-tenant.service.d.ts +9 -0
  43. package/src/wms/entities/invoice-condition/invoice-condition.d.ts +2 -1
@@ -3353,8 +3353,20 @@
3353
3353
  InvoiceCondition["PARTIAL_AUTHORIZED"] = "PARTIAL_AUTHORIZED";
3354
3354
  InvoiceCondition["MANUAL_AUTHORIZED"] = "MANUAL_AUTHORIZED";
3355
3355
  InvoiceCondition["DEVOLUTION"] = "DEVOLUTION";
3356
+ InvoiceCondition["REJECTED"] = "REJECTED";
3356
3357
  })(InvoiceCondition || (InvoiceCondition = {}));
3357
3358
 
3359
+ function getInvoiceConditions(translate) {
3360
+ return [
3361
+ { label: translate.instant("yms.int.wms_grid_document_invoice_no_way"), value: null },
3362
+ { label: translate.instant("yms.int.wms_grid_document_invoice_condition_authorized"), value: InvoiceCondition.AUTHORIZED },
3363
+ { label: translate.instant("yms.int.wms_grid_document_invoice_condition_manual_authorized"), value: InvoiceCondition.MANUAL_AUTHORIZED },
3364
+ { label: translate.instant("yms.int.wms_grid_document_invoice_condition_partial_authorized"), value: InvoiceCondition.PARTIAL_AUTHORIZED },
3365
+ { label: translate.instant("yms.int.wms_grid_document_invoice_condition_devolution"), value: InvoiceCondition.DEVOLUTION },
3366
+ { label: translate.instant("yms.int.wms_grid_document_invoice_condition_rejected"), value: InvoiceCondition.REJECTED },
3367
+ ];
3368
+ }
3369
+
3358
3370
  var DocumentGridComponent = /** @class */ (function () {
3359
3371
  function DocumentGridComponent(translate, documentService, confirmationService, integrationService, agendaService, utils) {
3360
3372
  this.translate = translate;
@@ -3366,17 +3378,19 @@
3366
3378
  this.viewDocument = new core.EventEmitter();
3367
3379
  this.gridData = [];
3368
3380
  this.enableButtonIsClienteExterno = true;
3381
+ this.invoiceConditions = getInvoiceConditions(this.translate);
3369
3382
  this.summary = "yms.int.wms_saved_document_message_title";
3370
3383
  this.ngUnsubscribe = new rxjs.Subject();
3371
- this.invoiceCondition = [
3372
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_no_way"), value: null },
3373
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_authorized"), value: InvoiceCondition.AUTHORIZED },
3374
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_manual_authorized"), value: InvoiceCondition.MANUAL_AUTHORIZED },
3375
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_partial_authorized"), value: InvoiceCondition.PARTIAL_AUTHORIZED },
3376
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_devolucion"), value: InvoiceCondition.DEVOLUTION },
3377
- ];
3378
3384
  this.selection = [];
3379
3385
  }
3386
+ DocumentGridComponent.prototype.getFilteredInvoiceConditions = function (invoiceConditions) {
3387
+ if (invoiceConditions === InvoiceCondition.AUTHORIZED) {
3388
+ return this.invoiceConditions.filter(function (cond) { return cond.value === InvoiceCondition.AUTHORIZED; });
3389
+ }
3390
+ else {
3391
+ return this.invoiceConditions.filter(function (cond) { return cond.value !== InvoiceCondition.AUTHORIZED; });
3392
+ }
3393
+ };
3380
3394
  DocumentGridComponent.prototype.ngOnInit = function () {
3381
3395
  this.verifyClienteExterno();
3382
3396
  this.getProcessTypeByScheduling();
@@ -3492,7 +3506,6 @@
3492
3506
  _this.sucessMessage();
3493
3507
  });
3494
3508
  _this.disabled = true;
3495
- _this.listDocuments(false);
3496
3509
  }
3497
3510
  else {
3498
3511
  _this.documentService.update(data.id, data).subscribe(function () {
@@ -3501,6 +3514,7 @@
3501
3514
  });
3502
3515
  }
3503
3516
  });
3517
+ this.listDocuments(false);
3504
3518
  }
3505
3519
  };
3506
3520
  DocumentGridComponent.prototype.updateKeyByWms = function (data) {
@@ -3541,10 +3555,14 @@
3541
3555
  }
3542
3556
  });
3543
3557
  };
3558
+ DocumentGridComponent.prototype.notSavedDocuments = function () {
3559
+ return this.gridData.some(function (document) { return !document.id; });
3560
+ };
3544
3561
  DocumentGridComponent.prototype.listDocuments = function (isDelete) {
3545
3562
  var _this = this;
3546
3563
  this.documentService.list({
3547
- filterQuery: "schedulingId eq '" + this.agenda.id + "'"
3564
+ filterQuery: "schedulingId eq '" + this.agenda.id + "'",
3565
+ size: 100
3548
3566
  })
3549
3567
  .subscribe(function (contents) {
3550
3568
  var _a;
@@ -3683,7 +3701,7 @@
3683
3701
  DocumentGridComponent = __decorate([
3684
3702
  core.Component({
3685
3703
  selector: 'document-grid',
3686
- template: "<div *ngIf=\"this.processType === 'RECEBIMENTO_WMS'; else processNotConfigured\">\n <p-panel>\n <p-header>\n <div class=\"buttons\">\n <div>\n <s-button\n label=\"{{'yms.int.wms_add_document' | translate}}\"\n priority=\"primary\"\n [model]=\"getActions()\"\n [auxiliary]=\"false\"\n [disabled]=\"!enableButtonIsClienteExterno\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_view_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection || selection.length !== 1\"\n (onClick)=\"view()\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_delete_button' | translate}}\"\n priority=\"secondary\"\n [disabled]=\"!selection || !selection.length || !enableButtonIsClienteExterno\"\n (click)=\"onDelete()\">\n </s-button>\n </div>\n <s-button\n id=\"refresh-button\"\n priority=\"default\"\n iconClass=\"fa fa-refresh\"\n (onClick)=\"listDocuments(false)\"\n >\n </s-button>\n </div>\n </p-header>\n <div class=\"ui-g\">\n <div class=\"ui-g-12\" *ngIf=\"gridData && gridData.length; else emptyList\">\n <p-table #documentTable [value]=\"gridData\"\n [columns]=\"gridColumns\" dataKey=\"key\" [lazy]=\"true\" [scrollable]=\"true\" [resizableColumns]=\"true\"\n sortMode=\"multiple\" [paginator]=\"true\" [totalRecords]=\"documentTotalRecords\" rows=\"10\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\" [(selection)]=\"selection\"\n [loading]=\"loading\">\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\"/>\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th id=\"checkbox\" class=\"table-checkbox\">\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </th>\n <th id=\"col\" *ngFor=\"let col of columns\" [pSortableColumn]=\"col.field\" pResizableColumn>\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns let-expanded=\"expanded\">\n <tr [pSelectableRow]=\"rowData\">\n <td class=\"table-checkbox\">\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\n </td>\n <td *ngIf=\"isWmsSeniorConnect()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"key\"]}}</span>\n </td>\n <td *ngIf=\"isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"invoiceKey\"]}}</span>\n </td>\n <td *ngIf=\"isWmsWIS() || isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"invoiceNumber\"]}}</span>\n </td>\n <td *ngIf=\"isWmsWIS() || isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"invoiceSerialNumber\"]}}</span>\n </td>\n <td *ngIf=\"isWmsWIS() || isWmsSeniorConnect() || isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"partnerName\"]}}</span>\n </td>\n <td *ngIf=\"isWmsWIS() || isWmsSeniorConnect() || isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"partnerDocument\"]}}</span>\n </td>\n <td *ngIf=\"isWmsWIS() || isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"logistcUnitName\"]}}</span>\n </td>\n <td *ngIf=\"isWmsWIS() || isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"logistcUnitDocument\"]}}</span>\n </td>\n <td *ngIf=\"isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"ownerName\"]}}</span>\n </td>\n <td *ngIf=\"isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"ownerDocument\"]}}</span>\n </td>\n <td *ngIf=\"!isClienteExterno\" (click)=\"selection = [rowData]\">\n <p-dropdown\n inputId=\"invoiceCondition\"\n name=\"invoiceCondition\"\n [autoWidth]=\"false\"\n [options]=\"invoiceCondition\"\n appendTo=\"body\"\n [(ngModel)]=\"rowData.invoiceCondition\"\n (onChange)=\"disabled = false\">\n </p-dropdown>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span [translate]=\"'total_records'\" [translateParams]=\"{ value: documentTotalRecords }\"></span>\n </ng-template>\n </p-table> \n </div>\n </div>\n <register-document\n [wmsSystem]=\"wmsSystem\"\n [edit]=\"edit\"\n [viewDocument]=\"selection\"\n (document)=\"onChangeDocument($event)\"\n [(visible)]=\"visibleDocumentRegister\"\n [agenda]=\"agenda\"\n [isClienteExterno]=\"isClienteExterno\">\n </register-document> \n <insert-key\n [wmsSystem]=\"wmsSystem\" \n (document)=\"onChangeDocument($event)\"\n [(visible)]=\"visibleInvoiceKey\">\n </insert-key>\n </p-panel>\n</div>\n <div class=\"button-save\">\n <s-button \n priority=\"primary\" [label]=\"'save' | translate\"\n [disabled]=\"disabled || !this.gridData || !enableButtonIsClienteExterno\"\n (click)=\"save()\">\n </s-button>\n </div>\n\n<ng-template #emptyList>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\" [title]=\"'detail_empty_state_title' | translate\"\n [description]=\"'detail_empty_state_description' | translate\">\n </s-empty-state>\n </div>\n</ng-template>\n\n<ng-template #processNotConfigured>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\"\n [title]=\"'yms.int.wms_there_no_process_type_configured_for_this_type_scheduling' | translate\">\n </s-empty-state>\n </div>\n</ng-template>",
3704
+ template: "<div *ngIf=\"this.processType === 'RECEBIMENTO_WMS'; else processNotConfigured\">\n <p-panel>\n <p-header>\n <div class=\"buttons\">\n <div>\n <s-button\n label=\"{{'yms.int.wms_add_document' | translate}}\"\n priority=\"primary\"\n [model]=\"getActions()\"\n [auxiliary]=\"false\"\n [disabled]=\"!enableButtonIsClienteExterno\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_view_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection || selection.length !== 1\"\n (onClick)=\"view()\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_delete_button' | translate}}\"\n priority=\"secondary\"\n [disabled]=\"!selection || !selection.length || !enableButtonIsClienteExterno\"\n (click)=\"onDelete()\">\n </s-button>\n </div>\n <s-button\n id=\"refresh-button\"\n priority=\"default\"\n iconClass=\"fa fa-refresh\"\n (onClick)=\"listDocuments(false)\"\n [disabled]=\"notSavedDocuments()\"\n >\n </s-button>\n </div>\n </p-header>\n <div class=\"ui-g\">\n <div class=\"ui-g-12\" *ngIf=\"gridData && gridData.length; else emptyList\">\n <p-table #documentTable [value]=\"gridData\"\n [columns]=\"gridColumns\" dataKey=\"key\" [scrollable]=\"true\" [resizableColumns]=\"true\"\n [paginator]=\"true\" [totalRecords]=\"documentTotalRecords\" rows=\"10\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\" [(selection)]=\"selection\"\n [loading]=\"loading\">\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\"/>\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th id=\"checkbox\" class=\"table-checkbox\">\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </th>\n <th id=\"col\" *ngFor=\"let col of columns\" pResizableColumn>\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns let-expanded=\"expanded\">\n <tr [pSelectableRow]=\"rowData\">\n <td class=\"table-checkbox\">\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\n </td>\n <td *ngIf=\"isWmsSeniorConnect()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"key\"]}}</span>\n </td>\n <td *ngIf=\"isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"invoiceKey\"]}}</span>\n </td>\n <td *ngIf=\"isWmsWIS() || isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"invoiceNumber\"]}}</span>\n </td>\n <td *ngIf=\"isWmsWIS() || isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"invoiceSerialNumber\"]}}</span>\n </td>\n <td *ngIf=\"isWmsWIS() || isWmsSeniorConnect() || isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"partnerName\"]}}</span>\n </td>\n <td *ngIf=\"isWmsWIS() || isWmsSeniorConnect() || isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"partnerDocument\"]}}</span>\n </td>\n <td *ngIf=\"isWmsWIS() || isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"logistcUnitName\"]}}</span>\n </td>\n <td *ngIf=\"isWmsWIS() || isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"logistcUnitDocument\"]}}</span>\n </td>\n <td *ngIf=\"isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"ownerName\"]}}</span>\n </td>\n <td *ngIf=\"isWmsSilt()\" (click)=\"selection = [rowData]\">\n <span>{{rowData[\"ownerDocument\"]}}</span>\n </td>\n <td *ngIf=\"!isClienteExterno\" (click)=\"selection = [rowData]\">\n <p-dropdown\n inputId=\"invoiceCondition\"\n name=\"invoiceCondition\"\n [autoWidth]=\"false\"\n [options]=\"getFilteredInvoiceConditions(rowData?.invoiceCondition)\"\n appendTo=\"body\"\n [(ngModel)]=\"rowData.invoiceCondition\"\n (onChange)=\"disabled = false\">\n </p-dropdown>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span [translate]=\"'yms.main.total_records'\" \n [translateParams]=\"{ value: documentTotalRecords }\">\n </span>\n </ng-template>\n </p-table> \n </div>\n </div>\n <register-document\n [wmsSystem]=\"wmsSystem\"\n [edit]=\"edit\"\n [viewDocument]=\"selection\"\n (document)=\"onChangeDocument($event)\"\n [(visible)]=\"visibleDocumentRegister\"\n [agenda]=\"agenda\"\n [isClienteExterno]=\"isClienteExterno\">\n </register-document> \n <insert-key\n [wmsSystem]=\"wmsSystem\" \n (document)=\"onChangeDocument($event)\"\n [(visible)]=\"visibleInvoiceKey\">\n </insert-key>\n </p-panel>\n</div>\n <div class=\"button-save\">\n <s-button \n priority=\"primary\" [label]=\"'save' | translate\"\n [disabled]=\"disabled || !this.gridData || !enableButtonIsClienteExterno\"\n (click)=\"save()\">\n </s-button>\n </div>\n\n<ng-template #emptyList>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\" [title]=\"'detail_empty_state_title' | translate\"\n [description]=\"'detail_empty_state_description' | translate\">\n </s-empty-state>\n </div>\n</ng-template>\n\n<ng-template #processNotConfigured>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\"\n [title]=\"'yms.int.wms_there_no_process_type_configured_for_this_type_scheduling' | translate\">\n </s-empty-state>\n </div>\n</ng-template>",
3687
3705
  styles: [".buttons{display:flex;justify-content:space-between}.center{flex-direction:column;text-align:center}.ui-g{display:block}.button-save{margin:5px 0}#refresh-button{color:#fff}.table-checkbox{width:50px}.invoice-condition .p-dropdown{position:relative;z-index:1000}"]
3688
3706
  }),
3689
3707
  __metadata("design:paramtypes", [core$1.TranslateService,
@@ -3746,13 +3764,7 @@
3746
3764
  this.visible = new core.EventEmitter();
3747
3765
  this.visibleChange = new core.EventEmitter();
3748
3766
  this.isSaveFormValid = false;
3749
- this.invoiceCondition = [
3750
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_no_way"), value: null },
3751
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_authorized"), value: InvoiceCondition.AUTHORIZED },
3752
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_manual_authorized"), value: InvoiceCondition.MANUAL_AUTHORIZED },
3753
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_partial_authorized"), value: InvoiceCondition.PARTIAL_AUTHORIZED },
3754
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_devolucion"), value: InvoiceCondition.DEVOLUTION },
3755
- ];
3767
+ this.invoiceCondition = getInvoiceConditions(this.translate);
3756
3768
  }
3757
3769
  RegisterDocumentComponent.prototype.ngOnInit = function () {
3758
3770
  this.getFormGroup();
@@ -3895,15 +3907,35 @@
3895
3907
  return RegisterDocumentModule;
3896
3908
  }());
3897
3909
 
3910
+ var ExternalTenantService = /** @class */ (function (_super) {
3911
+ __extends(ExternalTenantService, _super);
3912
+ function ExternalTenantService(http, messageService) {
3913
+ var _this = _super.call(this, http, messageService, 'yms/agenda/entities/externalTenant', '') || this;
3914
+ _this.http = http;
3915
+ _this.messageService = messageService;
3916
+ return _this;
3917
+ }
3918
+ ExternalTenantService = __decorate([
3919
+ core.Injectable(),
3920
+ __metadata("design:paramtypes", [http.HttpClient, api.MessageService])
3921
+ ], ExternalTenantService);
3922
+ return ExternalTenantService;
3923
+ }(EntityService));
3924
+
3898
3925
  var InsertKeyComponent = /** @class */ (function () {
3899
- function InsertKeyComponent(formBuilder, documentService, utils) {
3926
+ function InsertKeyComponent(formBuilder, documentService, utils, confirmationService, translate, externalTenantService) {
3900
3927
  this.formBuilder = formBuilder;
3901
3928
  this.documentService = documentService;
3902
3929
  this.utils = utils;
3930
+ this.confirmationService = confirmationService;
3931
+ this.translate = translate;
3932
+ this.externalTenantService = externalTenantService;
3903
3933
  this.document = new core.EventEmitter();
3904
3934
  this.visible = new core.EventEmitter();
3905
3935
  this.visibleChange = new core.EventEmitter();
3906
3936
  this.isLoading = false;
3937
+ this.isPartnerloading = false;
3938
+ this.ngUnsubscribe = new rxjs.Subject();
3907
3939
  }
3908
3940
  InsertKeyComponent.prototype.ngOnInit = function () {
3909
3941
  var _this = this;
@@ -3949,6 +3981,7 @@
3949
3981
  else {
3950
3982
  _this.utils.translateMessage("error", "yms.int.wms_error_search_document_message_header", "yms.int.wms_error_unknown_search_document_message_content" + err.error.message);
3951
3983
  }
3984
+ _this.confirmInvoiceDialog();
3952
3985
  return rxjs.throwError(err);
3953
3986
  }), operators.finalize(function () {
3954
3987
  _this.isLoading = false;
@@ -3958,10 +3991,56 @@
3958
3991
  _this.utils.message("warn", "yms.int.wms_insert_key_warning_message_header", "yms.int.wms_insert_key_warning_message_description");
3959
3992
  return;
3960
3993
  }
3961
- _this.document.emit(content.contents[0]);
3994
+ var document = content.contents[0];
3995
+ document.invoiceKey = _this.formGroup.get('key').value;
3996
+ document.invoiceCondition = InvoiceCondition.AUTHORIZED;
3997
+ _this.document.emit(document);
3962
3998
  _this.formGroup.reset();
3963
3999
  });
3964
4000
  };
4001
+ InsertKeyComponent.prototype.confirmInvoiceDialog = function () {
4002
+ var _this = this;
4003
+ this.confirmationService.confirm({
4004
+ message: this.translate.instant("yms.int.wms_message_confirm_invoice_dialog"),
4005
+ acceptLabel: this.translate.instant("yms.int.wms_accept_confirm_invoice_dialog"),
4006
+ rejectLabel: this.translate.instant("yms.int.wms_reject_confirm_invoice_dialog"),
4007
+ header: this.translate.instant("yms.int.wms_header_content_confirm_invoice_dialog"),
4008
+ accept: function () { return _this.buildInvoice(); }
4009
+ });
4010
+ };
4011
+ InsertKeyComponent.prototype.buildInvoice = function () {
4012
+ var _this = this;
4013
+ this.isPartnerloading = true;
4014
+ var partnerDocument = this.formGroup.get('partnerDocument').value;
4015
+ this.externalTenantService.list({
4016
+ filterQuery: "cnpj eq '" + partnerDocument + "'"
4017
+ })
4018
+ .pipe(operators.takeUntil(this.ngUnsubscribe), operators.finalize(function () {
4019
+ _this.isPartnerloading = false;
4020
+ }))
4021
+ .subscribe(function (contents) {
4022
+ var documentInvoice = _this.createDocumentInvoice(contents);
4023
+ _this.document.emit(documentInvoice);
4024
+ _this.formGroup.reset();
4025
+ });
4026
+ };
4027
+ InsertKeyComponent.prototype.createDocumentInvoice = function (partners) {
4028
+ var documentInvoice = {
4029
+ invoiceKey: this.formGroup.get('key').value,
4030
+ invoiceNumber: this.formGroup.get('invoiceNumber').value,
4031
+ invoiceSerialNumber: this.formGroup.get('invoiceSerie').value,
4032
+ partnerDocument: this.formGroup.get('partnerDocument').value,
4033
+ partnerName: null,
4034
+ type: null,
4035
+ key: null,
4036
+ schedulingId: null
4037
+ };
4038
+ if (partners.totalElements > 0) {
4039
+ var partner = partners.contents[0];
4040
+ documentInvoice.partnerName = partner.descricao;
4041
+ }
4042
+ return documentInvoice;
4043
+ };
3965
4044
  InsertKeyComponent.prototype.validateKeyDetails = function (nf) {
3966
4045
  if (!nf) {
3967
4046
  this.keyErrorMessage = null;
@@ -4019,12 +4098,15 @@
4019
4098
  InsertKeyComponent = __decorate([
4020
4099
  core.Component({
4021
4100
  selector: "insert-key",
4022
- template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\" [modal]=\"true\" \n [draggable]=\"false\" (visibleChange)=\"cancel()\" (onShow)=\"onDialogShow()\">\n <p-header>{{'yms.int.wms_search_document' | translate}} {{ wmsSystem }}</p-header>\n <s-loading-state [loading]=\"isLoading\">\n <div class=\"flex py-2 justify-content-center spacing-bottom\"\n *ngIf=\"!isWmsSeniorConnect()\">\n <label for=\"key\">{{'yms.int.wms_insert_key_label' | translate}}</label>\n <input id=\"key\" class=\"size-input\" pInputText type=\"text\" formControlName=\"key\">\n <span class=\"error-message\">{{keyErrorMessage | translate}}</span>\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsSeniorConnect()\">\n <label for=\"purchaseOrder\">{{'yms.int.wms_purchaseOrder' | translate}} </label>\n <input id=\"purchaseOrder\" class=\"size-input\" pInputText type=\"text\" formControlName=\"purchaseOrder\">\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsWis()\">\n <label for=\"invoiceNumber\">{{'yms.int.wms_invoice_number' | translate}}</label>\n <input id=\"invoiceNumber\" class=\"size-input\" pInputText type=\"text\" formControlName=\"invoiceNumber\">\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsWis()\">\n <label for=\"invoiceSerie\">{{'yms.int.wms_invoice_serie' | translate}}</label>\n <input id=\"invoiceSerie\" class=\"size-input\" pInputText type=\"text\" formControlName=\"invoiceSerie\">\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsWis()\">\n <label for=\"partnerDocument\">{{'yms.int.wms_partner_document' | translate}}</label>\n <input id=\"partnerDocument\" class=\"size-input\" pInputText type=\"text\" formControlName=\"partnerDocument\">\n </div>\n <div class=\"separator\"></div>\n <div class=\"spacing-top\">\n <s-button pButton label=\"{{'yms.int.wms_search' | translate}}\" (click)=\"add()\"></s-button>\n <s-button\n type=\"button\"\n class=\"ui-button-link\"\n pButton label=\"{{'cancel' | translate}}\"\n (click)=\"cancel()\">\n </s-button>\n </div>\n </s-loading-state>\n </p-dialog>\n\n</form>\n",
4101
+ template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\" [modal]=\"true\" \n [draggable]=\"false\" (visibleChange)=\"cancel()\" (onShow)=\"onDialogShow()\">\n <p-header>{{'yms.int.wms_search_document' | translate}} {{ wmsSystem }}</p-header>\n <s-loading-state [loading]=\"isLoading || isPartnerloading\">\n <div class=\"flex py-2 justify-content-center spacing-bottom\"\n *ngIf=\"!isWmsSeniorConnect()\">\n <label for=\"key\">{{'yms.int.wms_insert_key_label' | translate}}</label>\n <input id=\"key\" class=\"size-input\" pInputText type=\"text\" formControlName=\"key\">\n <span class=\"error-message\">{{keyErrorMessage | translate}}</span>\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsSeniorConnect()\">\n <label for=\"purchaseOrder\">{{'yms.int.wms_purchaseOrder' | translate}} </label>\n <input id=\"purchaseOrder\" class=\"size-input\" pInputText type=\"text\" formControlName=\"purchaseOrder\">\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsWis()\">\n <label for=\"invoiceNumber\">{{'yms.int.wms_invoice_number' | translate}}</label>\n <input id=\"invoiceNumber\" class=\"size-input\" pInputText type=\"text\" formControlName=\"invoiceNumber\">\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsWis()\">\n <label for=\"invoiceSerie\">{{'yms.int.wms_invoice_serie' | translate}}</label>\n <input id=\"invoiceSerie\" class=\"size-input\" pInputText type=\"text\" formControlName=\"invoiceSerie\">\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsWis()\">\n <label for=\"partnerDocument\">{{'yms.int.wms_partner_document' | translate}}</label>\n <input id=\"partnerDocument\" class=\"size-input\" pInputText type=\"text\" formControlName=\"partnerDocument\">\n </div>\n <div class=\"separator\"></div>\n <div class=\"spacing-top\">\n <s-button pButton label=\"{{'yms.int.wms_search' | translate}}\" (click)=\"add()\"></s-button>\n <s-button\n type=\"button\"\n class=\"ui-button-link\"\n pButton label=\"{{'cancel' | translate}}\"\n (click)=\"cancel()\">\n </s-button>\n </div>\n </s-loading-state>\n </p-dialog>\n\n</form>\n",
4023
4102
  styles: [".spacing-top{margin-top:10px}.spacing-bottom{margin-bottom:10px}.separator{width:100%;margin:5px 0;height:1px;background-color:#ccc}.size-input{width:480px}.error-message{color:#c13018;display:flex}"]
4024
4103
  }),
4025
4104
  __metadata("design:paramtypes", [forms.FormBuilder,
4026
4105
  DocumentService,
4027
- UtilsMessageService])
4106
+ UtilsMessageService,
4107
+ api.ConfirmationService,
4108
+ core$1.TranslateService,
4109
+ ExternalTenantService])
4028
4110
  ], InsertKeyComponent);
4029
4111
  return InsertKeyComponent;
4030
4112
  }());
@@ -4044,7 +4126,8 @@
4044
4126
  angularComponents.LoadingStateModule
4045
4127
  ],
4046
4128
  exports: [InsertKeyComponent],
4047
- declarations: [InsertKeyComponent]
4129
+ declarations: [InsertKeyComponent],
4130
+ providers: [ExternalTenantService]
4048
4131
  })
4049
4132
  ], InsertKeyModule);
4050
4133
  return InsertKeyModule;
@@ -4058,6 +4141,7 @@
4058
4141
  declarations: [DocumentGridComponent],
4059
4142
  entryComponents: [DocumentGridComponent],
4060
4143
  exports: [DocumentGridComponent],
4144
+ providers: [ExternalTenantService],
4061
4145
  imports: [
4062
4146
  common.CommonModule,
4063
4147
  core$1.TranslateModule,
@@ -4143,22 +4227,35 @@
4143
4227
  }());
4144
4228
  var DocumentListComponent = /** @class */ (function (_super) {
4145
4229
  __extends(DocumentListComponent, _super);
4146
- function DocumentListComponent(documentService) {
4230
+ function DocumentListComponent(documentService, translate, utils) {
4147
4231
  var _this = _super.call(this) || this;
4148
4232
  _this.documentService = documentService;
4233
+ _this.translate = translate;
4234
+ _this.utils = utils;
4149
4235
  _this.getColumns = [];
4150
4236
  _this.documents = [];
4237
+ _this.amendedDocuments = [];
4151
4238
  _this.labels = [];
4152
4239
  _this.selected = [];
4153
4240
  _this.gridLoading = true;
4154
4241
  _this.ngUnsubscribe = new rxjs.Subject();
4242
+ _this.invoiceConditions = [
4243
+ { label: _this.translate.instant("yms.int.wms_grid_document_invoice_no_way"), value: null },
4244
+ { label: _this.translate.instant("yms.int.wms_grid_document_invoice_condition_authorized"), value: InvoiceCondition.AUTHORIZED },
4245
+ { label: _this.translate.instant("yms.int.wms_grid_document_invoice_condition_manual_authorized"), value: InvoiceCondition.MANUAL_AUTHORIZED },
4246
+ { label: _this.translate.instant("yms.int.wms_grid_document_invoice_condition_partial_authorized"), value: InvoiceCondition.PARTIAL_AUTHORIZED },
4247
+ { label: _this.translate.instant("yms.int.wms_grid_document_invoice_condition_devolution"), value: InvoiceCondition.DEVOLUTION },
4248
+ { label: _this.translate.instant("yms.int.wms_grid_document_invoice_condition_rejected"), value: InvoiceCondition.REJECTED },
4249
+ ];
4250
+ _this.isAuthorized = function (condition) { return (condition === InvoiceCondition.AUTHORIZED); };
4155
4251
  return _this;
4156
4252
  }
4157
4253
  DocumentListComponent.prototype.getColumnLabels = function () {
4158
4254
  if (this.isWmsWIS()) {
4159
4255
  return __spread(this.getLabelsInvoice(), [
4160
- { field: "partnerName", label: 'yms.int.wms_register_document_invoice_partnerName' },
4161
- { field: "partnerDocument", label: 'yms.int.wms_register_document_invoice_partnerDocument' },
4256
+ { field: "invoiceKey", label: 'yms.int.wms_register_document_invoice_invoice_key' },
4257
+ { field: "partnerName", label: 'yms.int.wms_register_document_invoice_partner_name' },
4258
+ { field: "partnerDocument", label: 'yms.int.wms_register_document_invoice_partner_document' },
4162
4259
  { field: "code", label: 'yms.int.wms_register_document_invoice_code' },
4163
4260
  { field: "invoiceCondition", label: 'yms.int.wms_register_document_invoice_condition' },
4164
4261
  { field: "notes", label: 'yms.int.wms_register_document_invoice_notes' },
@@ -4167,8 +4264,8 @@
4167
4264
  if (this.isWmsSeniorConnect()) {
4168
4265
  return [
4169
4266
  { field: "key", label: 'yms.int.wms_purchaseOrder' },
4170
- { field: "partnerName", label: 'yms.int.wms_register_document_invoice_partnerName' },
4171
- { field: "partnerDocument", label: 'yms.int.wms_register_document_invoice_partnerDocument' },
4267
+ { field: "partnerName", label: 'yms.int.wms_register_document_invoice_partner_name' },
4268
+ { field: "partnerDocument", label: 'yms.int.wms_register_document_invoice_partner_document' },
4172
4269
  ];
4173
4270
  }
4174
4271
  return __spread([
@@ -4197,6 +4294,42 @@
4197
4294
  _this.searchDocument(event);
4198
4295
  });
4199
4296
  };
4297
+ DocumentListComponent.prototype.getFilteredInvoiceConditions = function (invoiceConditions) {
4298
+ if (invoiceConditions === InvoiceCondition.AUTHORIZED) {
4299
+ return this.invoiceConditions.filter(function (cond) { return cond.value === InvoiceCondition.AUTHORIZED; });
4300
+ }
4301
+ else {
4302
+ return this.invoiceConditions.filter(function (cond) { return cond.value !== InvoiceCondition.AUTHORIZED; });
4303
+ }
4304
+ };
4305
+ DocumentListComponent.prototype.onInvoiceConditionChange = function (event, document) {
4306
+ var _this = this;
4307
+ this.disabled = true;
4308
+ document.invoiceCondition = event.value;
4309
+ if (this.amendedDocuments.length > 0) {
4310
+ this.amendedDocuments.forEach(function (doc) {
4311
+ if (doc.id === document.id) {
4312
+ doc.invoiceCondition = event.value;
4313
+ }
4314
+ else {
4315
+ _this.amendedDocuments.push(document);
4316
+ }
4317
+ });
4318
+ }
4319
+ else {
4320
+ this.amendedDocuments.push(document);
4321
+ }
4322
+ };
4323
+ DocumentListComponent.prototype.save = function () {
4324
+ var _this = this;
4325
+ this.amendedDocuments.forEach(function (document) {
4326
+ _this.documentService.update(document.id, document).subscribe(function () {
4327
+ _this.utils.message("success", "yms.int.wms_saved_document_message_title", "saved_message_content");
4328
+ _this.disabled = false;
4329
+ });
4330
+ });
4331
+ this.amendedDocuments = [];
4332
+ };
4200
4333
  DocumentListComponent.prototype.searchDocument = function (event) {
4201
4334
  var _this = this;
4202
4335
  var size = event.rows;
@@ -4227,10 +4360,12 @@
4227
4360
  ], DocumentListComponent.prototype, "wmsSystem", void 0);
4228
4361
  DocumentListComponent = __decorate([
4229
4362
  core.Component({
4230
- template: "<div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <p-table\n selectionMode=\"single\"\n [(selection)]=\"selected\"\n [value]=\"documents\"\n [columns]=\"getColumns\"\n dataKey=\"id\"\n rows=\"10\"\n [paginator]=\"true\"\n [totalRecords]=\"gridTotalRecords\"\n [lazy]=\"true\"\n [resizableColumns]=\"true\"\n (onLazyLoad)=\"updateGridData($event)\"\n *sLoadingState=\"gridLoading\"\n sortMode=\"multiple\"\n styleClass=\"sds-table-scrollable\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100, 200]\"\n paginatorDropdownScrollHeight=\"250px\"\n [scrollable]=\"true\"\n >\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" class=\"table-col-width\">\n </colgroup>\n </ng-template>\n\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngFor=\"let col of columns\" pResizableColumn [pSortableColumn]=\"col.field\" scope=\"col\">\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.label | translate }}</span>\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\">\n <tr *ngIf=\"isWmsWIS()\">\n <td>{{ rowData?.invoiceNumber || 'N/A' }}</td>\n <td>{{ rowData?.invoiceSerialNumber || 'N/A' }}</td>\n <td>{{ rowData?.partnerName || 'N/A' }}</td>\n <td>{{ rowData?.partnerDocument || 'N/A' }}</td>\n <td>{{ rowData?.code || 'N/A' }}</td>\n <td>\n {{ getInvoiceConditionTranslation(rowData?.invoiceCondition) | translate }}\n </td>\n <td>{{ rowData?.notes || 'N/A' }}</td>\n </tr>\n <tr *ngIf=\"isWmsSeniorConnect()\">\n <td>{{rowData?.key}}</td>\n <td>{{rowData?.partnerName}}</td>\n <td>{{rowData?.partnerDocument}}</td>\n </tr>\n <tr *ngIf=\"!isWmsWIS() && !isWmsSeniorConnect()\">\n <td>{{rowData?.invoiceKey}}</td>\n <td>{{rowData?.invoiceNumber}}</td>\n <td>{{rowData?.invoiceSerialNumber}}</td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"paginatorright\">\n <span>\n {{ gridTotalRecords + \" \" + \n ('yms.int.wms_register_document_total_elements' | translate:{value: gridTotalRecords}) }}\n </span>\n </ng-template>\n </p-table>\n </div>\n</div>",
4231
- styles: [".table-col-width{width:250px}"]
4363
+ template: "<div class=\"ui-g\">\n <div class=\"ui-g-12\">\n <p-table\n selectionMode=\"single\"\n [(selection)]=\"selected\"\n [value]=\"documents\"\n [columns]=\"getColumns\"\n dataKey=\"id\"\n rows=\"10\"\n [paginator]=\"true\"\n [totalRecords]=\"gridTotalRecords\"\n [lazy]=\"true\"\n [resizableColumns]=\"true\"\n (onLazyLoad)=\"updateGridData($event)\"\n *sLoadingState=\"gridLoading\"\n sortMode=\"multiple\"\n styleClass=\"sds-table-scrollable\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100, 200]\"\n paginatorDropdownScrollHeight=\"250px\"\n [scrollable]=\"true\"\n >\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" class=\"table-col-width\">\n </colgroup>\n </ng-template>\n\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th *ngFor=\"let col of columns\" pResizableColumn [pSortableColumn]=\"col.field\" scope=\"col\">\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.label | translate }}</span>\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-rowData let-columns=\"columns\">\n <tr *ngIf=\"isWmsWIS()\">\n <td>{{ rowData?.invoiceNumber || 'N/A' }}</td>\n <td>{{ rowData?.invoiceSerialNumber || 'N/A' }}</td>\n <td>{{ rowData?.invoiceKey || 'N/A' }}</td>\n <td>{{ rowData?.partnerName || 'N/A' }}</td>\n <td>{{ rowData?.partnerDocument || 'N/A' }}</td>\n <td>{{ rowData?.code || 'N/A' }}</td>\n <td>\n <p-dropdown\n inputId=\"invoiceCondition\"\n name=\"invoiceCondition\"\n [autoWidth]=\"false\"\n [options]=\"getFilteredInvoiceConditions(rowData?.invoiceCondition)\"\n appendTo=\"body\"\n [(ngModel)]=\"rowData.invoiceCondition\"\n [disabled]=\"isAuthorized(rowData.invoiceCondition)\"\n (onChange)=\"onInvoiceConditionChange($event, rowData)\">\n </p-dropdown>\n </td>\n <td>{{ rowData?.notes || 'N/A' }}</td>\n </tr>\n <tr *ngIf=\"isWmsSeniorConnect()\">\n <td>{{rowData?.key}}</td>\n <td>{{rowData?.partnerName}}</td>\n <td>{{rowData?.partnerDocument}}</td>\n </tr>\n <tr *ngIf=\"!isWmsWIS() && !isWmsSeniorConnect()\">\n <td>{{rowData?.invoiceKey}}</td>\n <td>{{rowData?.invoiceNumber}}</td>\n <td>{{rowData?.invoiceSerialNumber}}</td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"paginatorright\">\n <span>\n {{ gridTotalRecords + \" \" + \n ('yms.int.wms_register_document_total_elements' | translate:{value: gridTotalRecords}) }}\n </span>\n </ng-template>\n </p-table>\n <div class=\"button-save\">\n <s-button priority=\"primary\" [label]=\"'save' | translate\"\n [disabled]=\"!disabled || !this.documents\"\n (click)=\"save()\">\n </s-button>\n </div>\n </div>\n</div>",
4364
+ styles: [".table-col-width{width:250px}.button-save{margin:5px 0}"]
4232
4365
  }),
4233
- __metadata("design:paramtypes", [DocumentService])
4366
+ __metadata("design:paramtypes", [DocumentService,
4367
+ core$1.TranslateService,
4368
+ UtilsMessageService])
4234
4369
  ], DocumentListComponent);
4235
4370
  return DocumentListComponent;
4236
4371
  }(DocumentListDescritor));
@@ -4246,7 +4381,10 @@
4246
4381
  common.CommonModule,
4247
4382
  core$1.TranslateModule,
4248
4383
  angularComponents.LoadingStateModule,
4249
- table.TableModule
4384
+ table.TableModule,
4385
+ primeng.DropdownModule,
4386
+ angularComponents.ButtonModule,
4387
+ forms.FormsModule
4250
4388
  ],
4251
4389
  declarations: [DocumentListComponent],
4252
4390
  entryComponents: [DocumentListComponent],
@@ -14463,50 +14601,51 @@
14463
14601
  exports.ɵba = EntityService$2;
14464
14602
  exports.ɵbb = EntityService$1;
14465
14603
  exports.ɵbc = UtilsMessageService;
14466
- exports.ɵbd = RegisterDocumentModule;
14467
- exports.ɵbe = RegisterDocumentComponent;
14468
- exports.ɵbf = InsertKeyModule;
14469
- exports.ɵbg = InsertKeyComponent;
14470
- exports.ɵbh = IntegrationService$1;
14471
- exports.ɵbi = RecebimentoFormComponent;
14472
- exports.ɵbj = DerivacaoService;
14473
- exports.ɵbk = NotaValidatorService;
14474
- exports.ɵbl = TransgeniaService;
14475
- exports.ɵbm = VerificaNotafiscal;
14476
- exports.ɵbn = BuildFormField;
14477
- exports.ɵbo = ExpedicaoFormComponent;
14478
- exports.ɵbp = ExpedicaoInfoComponent;
14479
- exports.ɵbq = RecebimentoInfoComponent;
14480
- exports.ɵbr = DevolucaoFormComponent;
14481
- exports.ɵbs = DevolucaoService;
14482
- exports.ɵbt = DevolucaoChegadaVeiculoOverride;
14483
- exports.ɵbu = RecebimentoOrdemCompraFormComponent;
14484
- exports.ɵbv = OrdemCompraService;
14485
- exports.ɵbw = RecebimentoOrdemCompraService;
14486
- exports.ɵbx = RecebimentoOrdemCompraChegadaVeiculoOverride;
14487
- exports.ɵby = RecebimentoOrdemCompraInfoComponent;
14488
- exports.ɵbz = DevolucaoInfoComponent;
14604
+ exports.ɵbd = ExternalTenantService;
14605
+ exports.ɵbe = RegisterDocumentModule;
14606
+ exports.ɵbf = RegisterDocumentComponent;
14607
+ exports.ɵbg = InsertKeyModule;
14608
+ exports.ɵbh = InsertKeyComponent;
14609
+ exports.ɵbi = IntegrationService$1;
14610
+ exports.ɵbj = RecebimentoFormComponent;
14611
+ exports.ɵbk = DerivacaoService;
14612
+ exports.ɵbl = NotaValidatorService;
14613
+ exports.ɵbm = TransgeniaService;
14614
+ exports.ɵbn = VerificaNotafiscal;
14615
+ exports.ɵbo = BuildFormField;
14616
+ exports.ɵbp = ExpedicaoFormComponent;
14617
+ exports.ɵbq = ExpedicaoInfoComponent;
14618
+ exports.ɵbr = RecebimentoInfoComponent;
14619
+ exports.ɵbs = DevolucaoFormComponent;
14620
+ exports.ɵbt = DevolucaoService;
14621
+ exports.ɵbu = DevolucaoChegadaVeiculoOverride;
14622
+ exports.ɵbv = RecebimentoOrdemCompraFormComponent;
14623
+ exports.ɵbw = OrdemCompraService;
14624
+ exports.ɵbx = RecebimentoOrdemCompraService;
14625
+ exports.ɵby = RecebimentoOrdemCompraChegadaVeiculoOverride;
14626
+ exports.ɵbz = RecebimentoOrdemCompraInfoComponent;
14489
14627
  exports.ɵc = ViewImageComponent;
14490
- exports.ɵca = ContratoFormComponent;
14491
- exports.ɵcb = OrdemCompraFormComponent;
14492
- exports.ɵcc = ProcessoAvulsoFormComponent;
14493
- exports.ɵcd = ProcessoAvulsoService;
14494
- exports.ɵce = ProcessoAvulsoChegadaVeiculoOverride;
14495
- exports.ɵcf = ProcessoAvulsoInfoComponent;
14496
- exports.ɵcg = LogIntegracaoDescritor;
14497
- exports.ɵch = LogIntegracaoComponent;
14498
- exports.ɵci = LogIntegracaoService;
14499
- exports.ɵcj = DerivacaoModule;
14500
- exports.ɵck = DevolucaoModule;
14501
- exports.ɵcl = OrdemCompraModule;
14502
- exports.ɵcm = RecebimentoOrdemCompraModule;
14503
- exports.ɵcn = TransgeniaModule;
14504
- exports.ɵco = ProcessoAvulsoModule;
14505
- exports.ɵcp = LogIntegracaoModule;
14506
- exports.ɵcq = NotaFormModule;
14507
- exports.ɵcr = DirectivesModule;
14508
- exports.ɵcs = TrimDirective;
14509
- exports.ɵct = NotaFormComponent;
14628
+ exports.ɵca = DevolucaoInfoComponent;
14629
+ exports.ɵcb = ContratoFormComponent;
14630
+ exports.ɵcc = OrdemCompraFormComponent;
14631
+ exports.ɵcd = ProcessoAvulsoFormComponent;
14632
+ exports.ɵce = ProcessoAvulsoService;
14633
+ exports.ɵcf = ProcessoAvulsoChegadaVeiculoOverride;
14634
+ exports.ɵcg = ProcessoAvulsoInfoComponent;
14635
+ exports.ɵch = LogIntegracaoDescritor;
14636
+ exports.ɵci = LogIntegracaoComponent;
14637
+ exports.ɵcj = LogIntegracaoService;
14638
+ exports.ɵck = DerivacaoModule;
14639
+ exports.ɵcl = DevolucaoModule;
14640
+ exports.ɵcm = OrdemCompraModule;
14641
+ exports.ɵcn = RecebimentoOrdemCompraModule;
14642
+ exports.ɵco = TransgeniaModule;
14643
+ exports.ɵcp = ProcessoAvulsoModule;
14644
+ exports.ɵcq = LogIntegracaoModule;
14645
+ exports.ɵcr = NotaFormModule;
14646
+ exports.ɵcs = DirectivesModule;
14647
+ exports.ɵct = TrimDirective;
14648
+ exports.ɵcu = NotaFormComponent;
14510
14649
  exports.ɵd = LogDescritor;
14511
14650
  exports.ɵe = LogsComponent;
14512
14651
  exports.ɵf = PortariasService;