@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
@@ -3294,8 +3294,20 @@ var InvoiceCondition;
3294
3294
  InvoiceCondition["PARTIAL_AUTHORIZED"] = "PARTIAL_AUTHORIZED";
3295
3295
  InvoiceCondition["MANUAL_AUTHORIZED"] = "MANUAL_AUTHORIZED";
3296
3296
  InvoiceCondition["DEVOLUTION"] = "DEVOLUTION";
3297
+ InvoiceCondition["REJECTED"] = "REJECTED";
3297
3298
  })(InvoiceCondition || (InvoiceCondition = {}));
3298
3299
 
3300
+ function getInvoiceConditions(translate) {
3301
+ return [
3302
+ { label: translate.instant("yms.int.wms_grid_document_invoice_no_way"), value: null },
3303
+ { label: translate.instant("yms.int.wms_grid_document_invoice_condition_authorized"), value: InvoiceCondition.AUTHORIZED },
3304
+ { label: translate.instant("yms.int.wms_grid_document_invoice_condition_manual_authorized"), value: InvoiceCondition.MANUAL_AUTHORIZED },
3305
+ { label: translate.instant("yms.int.wms_grid_document_invoice_condition_partial_authorized"), value: InvoiceCondition.PARTIAL_AUTHORIZED },
3306
+ { label: translate.instant("yms.int.wms_grid_document_invoice_condition_devolution"), value: InvoiceCondition.DEVOLUTION },
3307
+ { label: translate.instant("yms.int.wms_grid_document_invoice_condition_rejected"), value: InvoiceCondition.REJECTED },
3308
+ ];
3309
+ }
3310
+
3299
3311
  var DocumentGridComponent = /** @class */ (function () {
3300
3312
  function DocumentGridComponent(translate, documentService, confirmationService, integrationService, agendaService, utils) {
3301
3313
  this.translate = translate;
@@ -3307,17 +3319,19 @@ var DocumentGridComponent = /** @class */ (function () {
3307
3319
  this.viewDocument = new EventEmitter();
3308
3320
  this.gridData = [];
3309
3321
  this.enableButtonIsClienteExterno = true;
3322
+ this.invoiceConditions = getInvoiceConditions(this.translate);
3310
3323
  this.summary = "yms.int.wms_saved_document_message_title";
3311
3324
  this.ngUnsubscribe = new Subject();
3312
- this.invoiceCondition = [
3313
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_no_way"), value: null },
3314
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_authorized"), value: InvoiceCondition.AUTHORIZED },
3315
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_manual_authorized"), value: InvoiceCondition.MANUAL_AUTHORIZED },
3316
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_partial_authorized"), value: InvoiceCondition.PARTIAL_AUTHORIZED },
3317
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_devolucion"), value: InvoiceCondition.DEVOLUTION },
3318
- ];
3319
3325
  this.selection = [];
3320
3326
  }
3327
+ DocumentGridComponent.prototype.getFilteredInvoiceConditions = function (invoiceConditions) {
3328
+ if (invoiceConditions === InvoiceCondition.AUTHORIZED) {
3329
+ return this.invoiceConditions.filter(function (cond) { return cond.value === InvoiceCondition.AUTHORIZED; });
3330
+ }
3331
+ else {
3332
+ return this.invoiceConditions.filter(function (cond) { return cond.value !== InvoiceCondition.AUTHORIZED; });
3333
+ }
3334
+ };
3321
3335
  DocumentGridComponent.prototype.ngOnInit = function () {
3322
3336
  this.verifyClienteExterno();
3323
3337
  this.getProcessTypeByScheduling();
@@ -3433,7 +3447,6 @@ var DocumentGridComponent = /** @class */ (function () {
3433
3447
  _this.sucessMessage();
3434
3448
  });
3435
3449
  _this.disabled = true;
3436
- _this.listDocuments(false);
3437
3450
  }
3438
3451
  else {
3439
3452
  _this.documentService.update(data.id, data).subscribe(function () {
@@ -3442,6 +3455,7 @@ var DocumentGridComponent = /** @class */ (function () {
3442
3455
  });
3443
3456
  }
3444
3457
  });
3458
+ this.listDocuments(false);
3445
3459
  }
3446
3460
  };
3447
3461
  DocumentGridComponent.prototype.updateKeyByWms = function (data) {
@@ -3482,10 +3496,14 @@ var DocumentGridComponent = /** @class */ (function () {
3482
3496
  }
3483
3497
  });
3484
3498
  };
3499
+ DocumentGridComponent.prototype.notSavedDocuments = function () {
3500
+ return this.gridData.some(function (document) { return !document.id; });
3501
+ };
3485
3502
  DocumentGridComponent.prototype.listDocuments = function (isDelete) {
3486
3503
  var _this = this;
3487
3504
  this.documentService.list({
3488
- filterQuery: "schedulingId eq '" + this.agenda.id + "'"
3505
+ filterQuery: "schedulingId eq '" + this.agenda.id + "'",
3506
+ size: 100
3489
3507
  })
3490
3508
  .subscribe(function (contents) {
3491
3509
  var _a;
@@ -3624,7 +3642,7 @@ var DocumentGridComponent = /** @class */ (function () {
3624
3642
  DocumentGridComponent = __decorate([
3625
3643
  Component({
3626
3644
  selector: 'document-grid',
3627
- 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>",
3645
+ 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>",
3628
3646
  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}"]
3629
3647
  }),
3630
3648
  __metadata("design:paramtypes", [TranslateService,
@@ -3687,13 +3705,7 @@ var RegisterDocumentComponent = /** @class */ (function () {
3687
3705
  this.visible = new EventEmitter();
3688
3706
  this.visibleChange = new EventEmitter();
3689
3707
  this.isSaveFormValid = false;
3690
- this.invoiceCondition = [
3691
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_no_way"), value: null },
3692
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_authorized"), value: InvoiceCondition.AUTHORIZED },
3693
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_manual_authorized"), value: InvoiceCondition.MANUAL_AUTHORIZED },
3694
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_partial_authorized"), value: InvoiceCondition.PARTIAL_AUTHORIZED },
3695
- { label: this.translate.instant("yms.int.wms_grid_document_invoice_condition_devolucion"), value: InvoiceCondition.DEVOLUTION },
3696
- ];
3708
+ this.invoiceCondition = getInvoiceConditions(this.translate);
3697
3709
  }
3698
3710
  RegisterDocumentComponent.prototype.ngOnInit = function () {
3699
3711
  this.getFormGroup();
@@ -3836,15 +3848,35 @@ var RegisterDocumentModule = /** @class */ (function () {
3836
3848
  return RegisterDocumentModule;
3837
3849
  }());
3838
3850
 
3851
+ var ExternalTenantService = /** @class */ (function (_super) {
3852
+ __extends(ExternalTenantService, _super);
3853
+ function ExternalTenantService(http, messageService) {
3854
+ var _this = _super.call(this, http, messageService, 'yms/agenda/entities/externalTenant', '') || this;
3855
+ _this.http = http;
3856
+ _this.messageService = messageService;
3857
+ return _this;
3858
+ }
3859
+ ExternalTenantService = __decorate([
3860
+ Injectable(),
3861
+ __metadata("design:paramtypes", [HttpClient, MessageService])
3862
+ ], ExternalTenantService);
3863
+ return ExternalTenantService;
3864
+ }(EntityService));
3865
+
3839
3866
  var InsertKeyComponent = /** @class */ (function () {
3840
- function InsertKeyComponent(formBuilder, documentService, utils) {
3867
+ function InsertKeyComponent(formBuilder, documentService, utils, confirmationService, translate, externalTenantService) {
3841
3868
  this.formBuilder = formBuilder;
3842
3869
  this.documentService = documentService;
3843
3870
  this.utils = utils;
3871
+ this.confirmationService = confirmationService;
3872
+ this.translate = translate;
3873
+ this.externalTenantService = externalTenantService;
3844
3874
  this.document = new EventEmitter();
3845
3875
  this.visible = new EventEmitter();
3846
3876
  this.visibleChange = new EventEmitter();
3847
3877
  this.isLoading = false;
3878
+ this.isPartnerloading = false;
3879
+ this.ngUnsubscribe = new Subject();
3848
3880
  }
3849
3881
  InsertKeyComponent.prototype.ngOnInit = function () {
3850
3882
  var _this = this;
@@ -3890,6 +3922,7 @@ var InsertKeyComponent = /** @class */ (function () {
3890
3922
  else {
3891
3923
  _this.utils.translateMessage("error", "yms.int.wms_error_search_document_message_header", "yms.int.wms_error_unknown_search_document_message_content" + err.error.message);
3892
3924
  }
3925
+ _this.confirmInvoiceDialog();
3893
3926
  return throwError(err);
3894
3927
  }), finalize(function () {
3895
3928
  _this.isLoading = false;
@@ -3899,10 +3932,56 @@ var InsertKeyComponent = /** @class */ (function () {
3899
3932
  _this.utils.message("warn", "yms.int.wms_insert_key_warning_message_header", "yms.int.wms_insert_key_warning_message_description");
3900
3933
  return;
3901
3934
  }
3902
- _this.document.emit(content.contents[0]);
3935
+ var document = content.contents[0];
3936
+ document.invoiceKey = _this.formGroup.get('key').value;
3937
+ document.invoiceCondition = InvoiceCondition.AUTHORIZED;
3938
+ _this.document.emit(document);
3903
3939
  _this.formGroup.reset();
3904
3940
  });
3905
3941
  };
3942
+ InsertKeyComponent.prototype.confirmInvoiceDialog = function () {
3943
+ var _this = this;
3944
+ this.confirmationService.confirm({
3945
+ message: this.translate.instant("yms.int.wms_message_confirm_invoice_dialog"),
3946
+ acceptLabel: this.translate.instant("yms.int.wms_accept_confirm_invoice_dialog"),
3947
+ rejectLabel: this.translate.instant("yms.int.wms_reject_confirm_invoice_dialog"),
3948
+ header: this.translate.instant("yms.int.wms_header_content_confirm_invoice_dialog"),
3949
+ accept: function () { return _this.buildInvoice(); }
3950
+ });
3951
+ };
3952
+ InsertKeyComponent.prototype.buildInvoice = function () {
3953
+ var _this = this;
3954
+ this.isPartnerloading = true;
3955
+ var partnerDocument = this.formGroup.get('partnerDocument').value;
3956
+ this.externalTenantService.list({
3957
+ filterQuery: "cnpj eq '" + partnerDocument + "'"
3958
+ })
3959
+ .pipe(takeUntil(this.ngUnsubscribe), finalize(function () {
3960
+ _this.isPartnerloading = false;
3961
+ }))
3962
+ .subscribe(function (contents) {
3963
+ var documentInvoice = _this.createDocumentInvoice(contents);
3964
+ _this.document.emit(documentInvoice);
3965
+ _this.formGroup.reset();
3966
+ });
3967
+ };
3968
+ InsertKeyComponent.prototype.createDocumentInvoice = function (partners) {
3969
+ var documentInvoice = {
3970
+ invoiceKey: this.formGroup.get('key').value,
3971
+ invoiceNumber: this.formGroup.get('invoiceNumber').value,
3972
+ invoiceSerialNumber: this.formGroup.get('invoiceSerie').value,
3973
+ partnerDocument: this.formGroup.get('partnerDocument').value,
3974
+ partnerName: null,
3975
+ type: null,
3976
+ key: null,
3977
+ schedulingId: null
3978
+ };
3979
+ if (partners.totalElements > 0) {
3980
+ var partner = partners.contents[0];
3981
+ documentInvoice.partnerName = partner.descricao;
3982
+ }
3983
+ return documentInvoice;
3984
+ };
3906
3985
  InsertKeyComponent.prototype.validateKeyDetails = function (nf) {
3907
3986
  if (!nf) {
3908
3987
  this.keyErrorMessage = null;
@@ -3960,12 +4039,15 @@ var InsertKeyComponent = /** @class */ (function () {
3960
4039
  InsertKeyComponent = __decorate([
3961
4040
  Component({
3962
4041
  selector: "insert-key",
3963
- 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",
4042
+ 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",
3964
4043
  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}"]
3965
4044
  }),
3966
4045
  __metadata("design:paramtypes", [FormBuilder,
3967
4046
  DocumentService,
3968
- UtilsMessageService])
4047
+ UtilsMessageService,
4048
+ ConfirmationService,
4049
+ TranslateService,
4050
+ ExternalTenantService])
3969
4051
  ], InsertKeyComponent);
3970
4052
  return InsertKeyComponent;
3971
4053
  }());
@@ -3985,7 +4067,8 @@ var InsertKeyModule = /** @class */ (function () {
3985
4067
  LoadingStateModule
3986
4068
  ],
3987
4069
  exports: [InsertKeyComponent],
3988
- declarations: [InsertKeyComponent]
4070
+ declarations: [InsertKeyComponent],
4071
+ providers: [ExternalTenantService]
3989
4072
  })
3990
4073
  ], InsertKeyModule);
3991
4074
  return InsertKeyModule;
@@ -3999,6 +4082,7 @@ var DocumentGridModule = /** @class */ (function () {
3999
4082
  declarations: [DocumentGridComponent],
4000
4083
  entryComponents: [DocumentGridComponent],
4001
4084
  exports: [DocumentGridComponent],
4085
+ providers: [ExternalTenantService],
4002
4086
  imports: [
4003
4087
  CommonModule,
4004
4088
  TranslateModule,
@@ -4084,22 +4168,35 @@ var DocumentListDescritor = /** @class */ (function () {
4084
4168
  }());
4085
4169
  var DocumentListComponent = /** @class */ (function (_super) {
4086
4170
  __extends(DocumentListComponent, _super);
4087
- function DocumentListComponent(documentService) {
4171
+ function DocumentListComponent(documentService, translate, utils) {
4088
4172
  var _this = _super.call(this) || this;
4089
4173
  _this.documentService = documentService;
4174
+ _this.translate = translate;
4175
+ _this.utils = utils;
4090
4176
  _this.getColumns = [];
4091
4177
  _this.documents = [];
4178
+ _this.amendedDocuments = [];
4092
4179
  _this.labels = [];
4093
4180
  _this.selected = [];
4094
4181
  _this.gridLoading = true;
4095
4182
  _this.ngUnsubscribe = new Subject();
4183
+ _this.invoiceConditions = [
4184
+ { label: _this.translate.instant("yms.int.wms_grid_document_invoice_no_way"), value: null },
4185
+ { label: _this.translate.instant("yms.int.wms_grid_document_invoice_condition_authorized"), value: InvoiceCondition.AUTHORIZED },
4186
+ { label: _this.translate.instant("yms.int.wms_grid_document_invoice_condition_manual_authorized"), value: InvoiceCondition.MANUAL_AUTHORIZED },
4187
+ { label: _this.translate.instant("yms.int.wms_grid_document_invoice_condition_partial_authorized"), value: InvoiceCondition.PARTIAL_AUTHORIZED },
4188
+ { label: _this.translate.instant("yms.int.wms_grid_document_invoice_condition_devolution"), value: InvoiceCondition.DEVOLUTION },
4189
+ { label: _this.translate.instant("yms.int.wms_grid_document_invoice_condition_rejected"), value: InvoiceCondition.REJECTED },
4190
+ ];
4191
+ _this.isAuthorized = function (condition) { return (condition === InvoiceCondition.AUTHORIZED); };
4096
4192
  return _this;
4097
4193
  }
4098
4194
  DocumentListComponent.prototype.getColumnLabels = function () {
4099
4195
  if (this.isWmsWIS()) {
4100
4196
  return __spread(this.getLabelsInvoice(), [
4101
- { field: "partnerName", label: 'yms.int.wms_register_document_invoice_partnerName' },
4102
- { field: "partnerDocument", label: 'yms.int.wms_register_document_invoice_partnerDocument' },
4197
+ { field: "invoiceKey", label: 'yms.int.wms_register_document_invoice_invoice_key' },
4198
+ { field: "partnerName", label: 'yms.int.wms_register_document_invoice_partner_name' },
4199
+ { field: "partnerDocument", label: 'yms.int.wms_register_document_invoice_partner_document' },
4103
4200
  { field: "code", label: 'yms.int.wms_register_document_invoice_code' },
4104
4201
  { field: "invoiceCondition", label: 'yms.int.wms_register_document_invoice_condition' },
4105
4202
  { field: "notes", label: 'yms.int.wms_register_document_invoice_notes' },
@@ -4108,8 +4205,8 @@ var DocumentListComponent = /** @class */ (function (_super) {
4108
4205
  if (this.isWmsSeniorConnect()) {
4109
4206
  return [
4110
4207
  { field: "key", label: 'yms.int.wms_purchaseOrder' },
4111
- { field: "partnerName", label: 'yms.int.wms_register_document_invoice_partnerName' },
4112
- { field: "partnerDocument", label: 'yms.int.wms_register_document_invoice_partnerDocument' },
4208
+ { field: "partnerName", label: 'yms.int.wms_register_document_invoice_partner_name' },
4209
+ { field: "partnerDocument", label: 'yms.int.wms_register_document_invoice_partner_document' },
4113
4210
  ];
4114
4211
  }
4115
4212
  return __spread([
@@ -4138,6 +4235,42 @@ var DocumentListComponent = /** @class */ (function (_super) {
4138
4235
  _this.searchDocument(event);
4139
4236
  });
4140
4237
  };
4238
+ DocumentListComponent.prototype.getFilteredInvoiceConditions = function (invoiceConditions) {
4239
+ if (invoiceConditions === InvoiceCondition.AUTHORIZED) {
4240
+ return this.invoiceConditions.filter(function (cond) { return cond.value === InvoiceCondition.AUTHORIZED; });
4241
+ }
4242
+ else {
4243
+ return this.invoiceConditions.filter(function (cond) { return cond.value !== InvoiceCondition.AUTHORIZED; });
4244
+ }
4245
+ };
4246
+ DocumentListComponent.prototype.onInvoiceConditionChange = function (event, document) {
4247
+ var _this = this;
4248
+ this.disabled = true;
4249
+ document.invoiceCondition = event.value;
4250
+ if (this.amendedDocuments.length > 0) {
4251
+ this.amendedDocuments.forEach(function (doc) {
4252
+ if (doc.id === document.id) {
4253
+ doc.invoiceCondition = event.value;
4254
+ }
4255
+ else {
4256
+ _this.amendedDocuments.push(document);
4257
+ }
4258
+ });
4259
+ }
4260
+ else {
4261
+ this.amendedDocuments.push(document);
4262
+ }
4263
+ };
4264
+ DocumentListComponent.prototype.save = function () {
4265
+ var _this = this;
4266
+ this.amendedDocuments.forEach(function (document) {
4267
+ _this.documentService.update(document.id, document).subscribe(function () {
4268
+ _this.utils.message("success", "yms.int.wms_saved_document_message_title", "saved_message_content");
4269
+ _this.disabled = false;
4270
+ });
4271
+ });
4272
+ this.amendedDocuments = [];
4273
+ };
4141
4274
  DocumentListComponent.prototype.searchDocument = function (event) {
4142
4275
  var _this = this;
4143
4276
  var size = event.rows;
@@ -4168,10 +4301,12 @@ var DocumentListComponent = /** @class */ (function (_super) {
4168
4301
  ], DocumentListComponent.prototype, "wmsSystem", void 0);
4169
4302
  DocumentListComponent = __decorate([
4170
4303
  Component({
4171
- 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>",
4172
- styles: [".table-col-width{width:250px}"]
4304
+ 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>",
4305
+ styles: [".table-col-width{width:250px}.button-save{margin:5px 0}"]
4173
4306
  }),
4174
- __metadata("design:paramtypes", [DocumentService])
4307
+ __metadata("design:paramtypes", [DocumentService,
4308
+ TranslateService,
4309
+ UtilsMessageService])
4175
4310
  ], DocumentListComponent);
4176
4311
  return DocumentListComponent;
4177
4312
  }(DocumentListDescritor));
@@ -4187,7 +4322,10 @@ var DocumentListModule = /** @class */ (function () {
4187
4322
  CommonModule,
4188
4323
  TranslateModule,
4189
4324
  LoadingStateModule,
4190
- TableModule
4325
+ TableModule,
4326
+ DropdownModule,
4327
+ ButtonModule,
4328
+ FormsModule
4191
4329
  ],
4192
4330
  declarations: [DocumentListComponent],
4193
4331
  entryComponents: [DocumentListComponent],
@@ -14304,5 +14442,5 @@ var DockModule = /** @class */ (function () {
14304
14442
  return DockModule;
14305
14443
  }());
14306
14444
 
14307
- export { AgendaModule, AgendaService$1 as AgendaService, BalancaModule, BalancasService, CamerasModule, CamerasService, CancelasModule, CidadeModule, CidadeService, ContratoCompraItemModule, ContratoCompraItemService, ContratoCompraModule, ContratoCompraService, ControladorCancelaComponent, ControladorCancelaDescritor, ControladorCancelasService, CoreModule, DockModule, DockService, DocumentListComponent, DocumentListModule, ERP_ENVIRONMENT, ERP_SENIOR_HEADER, EmpresaModule, EmpresaService, ErpFormConfigService, ErpProcessData, ErpProcessService, ErpSeniorModule, EstadoModule, EstadoService, ExpedicaoChegadaVeiculoOverride, ExpedicaoModule, ExpedicaoService, FamiliaProdutoModule, FamiliaProdutoService, FieldCustomizationService, FilialModule, FilialService, FormComponent, FormDescritor, FormSamComponent, FormSamDescritor, FormWmsComponent, FormWmsDescritor, HasChangeService, INFORMACAOES_ADICIONAIS_HEADER, InfoComponent, InfoDescritor, IntegrationWebSocket, LogsModule, LogsService, LprModule, LprService, PaisModule, PaisService, PedidoVendaItemModule, PedidoVendaItemService, PedidoVendaModule, PedidoVendaService, PessoaEnderecoModule, PessoaEnderecoService, PessoaFisicaModule, PessoaFisicaService, PessoaJuridicaModule, PessoaJuridicaService, PessoaModule, PessoaService, PortariasComponent, PortariasDescritor, PortariasModule, ProdutoModule, ProdutoService, RecebimentoChegadaVeiculoOverride, RecebimentoContratoModule, RecebimentoContratoService, RoyaltyModule, RoyaltyService, SAM_SENIOR_HEADER, SafraModule, SafraService, SamSeniorModule, SnapshotComponent, SnapshotDescritor, TransportadoraModule, TransportadoraService, UnidadeMedidaModule, UnidadeMedidaService, VisitorListComponent, VisitorListModule, VisitorListService, VisualizarBalancaComponent, VisualizarBalancaDescritor, WmsModule, highlightLanguages, Service as ɵa, CustomStompConfig as ɵb, EntityService$2 as ɵba, EntityService$1 as ɵbb, UtilsMessageService as ɵbc, RegisterDocumentModule as ɵbd, RegisterDocumentComponent as ɵbe, InsertKeyModule as ɵbf, InsertKeyComponent as ɵbg, IntegrationService$1 as ɵbh, RecebimentoFormComponent as ɵbi, DerivacaoService as ɵbj, NotaValidatorService as ɵbk, TransgeniaService as ɵbl, VerificaNotafiscal as ɵbm, BuildFormField as ɵbn, ExpedicaoFormComponent as ɵbo, ExpedicaoInfoComponent as ɵbp, RecebimentoInfoComponent as ɵbq, DevolucaoFormComponent as ɵbr, DevolucaoService as ɵbs, DevolucaoChegadaVeiculoOverride as ɵbt, RecebimentoOrdemCompraFormComponent as ɵbu, OrdemCompraService as ɵbv, RecebimentoOrdemCompraService as ɵbw, RecebimentoOrdemCompraChegadaVeiculoOverride as ɵbx, RecebimentoOrdemCompraInfoComponent as ɵby, DevolucaoInfoComponent as ɵbz, ViewImageComponent as ɵc, ContratoFormComponent as ɵca, OrdemCompraFormComponent as ɵcb, ProcessoAvulsoFormComponent as ɵcc, ProcessoAvulsoService as ɵcd, ProcessoAvulsoChegadaVeiculoOverride as ɵce, ProcessoAvulsoInfoComponent as ɵcf, LogIntegracaoDescritor as ɵcg, LogIntegracaoComponent as ɵch, LogIntegracaoService as ɵci, DerivacaoModule as ɵcj, DevolucaoModule as ɵck, OrdemCompraModule as ɵcl, RecebimentoOrdemCompraModule as ɵcm, TransgeniaModule as ɵcn, ProcessoAvulsoModule as ɵco, LogIntegracaoModule as ɵcp, NotaFormModule as ɵcq, DirectivesModule as ɵcr, TrimDirective as ɵcs, NotaFormComponent as ɵct, LogDescritor as ɵd, LogsComponent as ɵe, PortariasService as ɵf, EntradaComponent as ɵg, AgendasComponent as ɵh, ConfirmacaoComponent as ɵi, VisitedInfoDescritor as ɵj, VisitedInfoComponent as ɵk, VisitedInfoService as ɵl, SchedulingComponent as ɵm, LobbyService as ɵn, EntityService as ɵo, SchedulingService as ɵp, VisitanteComponent as ɵq, VisitanteFormComponent as ɵr, CredencialFormComponent as ɵs, FocusService as ɵt, FormWmsService as ɵu, DocumentGridModule as ɵv, DocumentGridComponent as ɵw, DocumentService as ɵx, IntegrationService as ɵy, AgendaService as ɵz };
14445
+ export { AgendaModule, AgendaService$1 as AgendaService, BalancaModule, BalancasService, CamerasModule, CamerasService, CancelasModule, CidadeModule, CidadeService, ContratoCompraItemModule, ContratoCompraItemService, ContratoCompraModule, ContratoCompraService, ControladorCancelaComponent, ControladorCancelaDescritor, ControladorCancelasService, CoreModule, DockModule, DockService, DocumentListComponent, DocumentListModule, ERP_ENVIRONMENT, ERP_SENIOR_HEADER, EmpresaModule, EmpresaService, ErpFormConfigService, ErpProcessData, ErpProcessService, ErpSeniorModule, EstadoModule, EstadoService, ExpedicaoChegadaVeiculoOverride, ExpedicaoModule, ExpedicaoService, FamiliaProdutoModule, FamiliaProdutoService, FieldCustomizationService, FilialModule, FilialService, FormComponent, FormDescritor, FormSamComponent, FormSamDescritor, FormWmsComponent, FormWmsDescritor, HasChangeService, INFORMACAOES_ADICIONAIS_HEADER, InfoComponent, InfoDescritor, IntegrationWebSocket, LogsModule, LogsService, LprModule, LprService, PaisModule, PaisService, PedidoVendaItemModule, PedidoVendaItemService, PedidoVendaModule, PedidoVendaService, PessoaEnderecoModule, PessoaEnderecoService, PessoaFisicaModule, PessoaFisicaService, PessoaJuridicaModule, PessoaJuridicaService, PessoaModule, PessoaService, PortariasComponent, PortariasDescritor, PortariasModule, ProdutoModule, ProdutoService, RecebimentoChegadaVeiculoOverride, RecebimentoContratoModule, RecebimentoContratoService, RoyaltyModule, RoyaltyService, SAM_SENIOR_HEADER, SafraModule, SafraService, SamSeniorModule, SnapshotComponent, SnapshotDescritor, TransportadoraModule, TransportadoraService, UnidadeMedidaModule, UnidadeMedidaService, VisitorListComponent, VisitorListModule, VisitorListService, VisualizarBalancaComponent, VisualizarBalancaDescritor, WmsModule, highlightLanguages, Service as ɵa, CustomStompConfig as ɵb, EntityService$2 as ɵba, EntityService$1 as ɵbb, UtilsMessageService as ɵbc, ExternalTenantService as ɵbd, RegisterDocumentModule as ɵbe, RegisterDocumentComponent as ɵbf, InsertKeyModule as ɵbg, InsertKeyComponent as ɵbh, IntegrationService$1 as ɵbi, RecebimentoFormComponent as ɵbj, DerivacaoService as ɵbk, NotaValidatorService as ɵbl, TransgeniaService as ɵbm, VerificaNotafiscal as ɵbn, BuildFormField as ɵbo, ExpedicaoFormComponent as ɵbp, ExpedicaoInfoComponent as ɵbq, RecebimentoInfoComponent as ɵbr, DevolucaoFormComponent as ɵbs, DevolucaoService as ɵbt, DevolucaoChegadaVeiculoOverride as ɵbu, RecebimentoOrdemCompraFormComponent as ɵbv, OrdemCompraService as ɵbw, RecebimentoOrdemCompraService as ɵbx, RecebimentoOrdemCompraChegadaVeiculoOverride as ɵby, RecebimentoOrdemCompraInfoComponent as ɵbz, ViewImageComponent as ɵc, DevolucaoInfoComponent as ɵca, ContratoFormComponent as ɵcb, OrdemCompraFormComponent as ɵcc, ProcessoAvulsoFormComponent as ɵcd, ProcessoAvulsoService as ɵce, ProcessoAvulsoChegadaVeiculoOverride as ɵcf, ProcessoAvulsoInfoComponent as ɵcg, LogIntegracaoDescritor as ɵch, LogIntegracaoComponent as ɵci, LogIntegracaoService as ɵcj, DerivacaoModule as ɵck, DevolucaoModule as ɵcl, OrdemCompraModule as ɵcm, RecebimentoOrdemCompraModule as ɵcn, TransgeniaModule as ɵco, ProcessoAvulsoModule as ɵcp, LogIntegracaoModule as ɵcq, NotaFormModule as ɵcr, DirectivesModule as ɵcs, TrimDirective as ɵct, NotaFormComponent as ɵcu, LogDescritor as ɵd, LogsComponent as ɵe, PortariasService as ɵf, EntradaComponent as ɵg, AgendasComponent as ɵh, ConfirmacaoComponent as ɵi, VisitedInfoDescritor as ɵj, VisitedInfoComponent as ɵk, VisitedInfoService as ɵl, SchedulingComponent as ɵm, LobbyService as ɵn, EntityService as ɵo, SchedulingService as ɵp, VisitanteComponent as ɵq, VisitanteFormComponent as ɵr, CredencialFormComponent as ɵs, FocusService as ɵt, FormWmsService as ɵu, DocumentGridModule as ɵv, DocumentGridComponent as ɵw, DocumentService as ɵx, IntegrationService as ɵy, AgendaService as ɵz };
14308
14446
  //# sourceMappingURL=seniorsistemas-yms-integration.js.map