@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
@@ -32,6 +32,10 @@ export declare class DocumentGridComponent implements OnInit {
32
32
  processType: ProcessType;
33
33
  isClienteExterno: boolean;
34
34
  enableButtonIsClienteExterno: boolean;
35
+ invoiceConditions: {
36
+ label: string;
37
+ value: InvoiceCondition;
38
+ }[];
35
39
  private readonly summary;
36
40
  private readonly ngUnsubscribe;
37
41
  table: Table;
@@ -40,9 +44,9 @@ export declare class DocumentGridComponent implements OnInit {
40
44
  customGridColgroup: TemplateRef<any>;
41
45
  customGridHeader: TemplateRef<any>;
42
46
  customGridBody: TemplateRef<any>;
43
- invoiceCondition: {
47
+ getFilteredInvoiceConditions(invoiceConditions: any): {
44
48
  label: string;
45
- value: InvoiceCondition;
49
+ value: InvoiceCondition | null;
46
50
  }[];
47
51
  constructor(translate: TranslateService, documentService: DocumentService, confirmationService: ConfirmationService, integrationService: IntegrationService, agendaService: AgendaService, utils: UtilsMessageService);
48
52
  ngOnInit(): void;
@@ -60,6 +64,7 @@ export declare class DocumentGridComponent implements OnInit {
60
64
  private updateKeyByWms;
61
65
  onDelete(): void;
62
66
  private removeDocumentIfIdUndfined;
67
+ notSavedDocuments(): boolean;
63
68
  listDocuments(isDelete: boolean): void;
64
69
  private getGridColumns;
65
70
  private wmsSeniorConnectIntegration;
@@ -3,10 +3,17 @@ import { FormBuilder, FormGroup } from "@angular/forms";
3
3
  import { UtilsMessageService } from "../../../../utils/utils-message";
4
4
  import { WmsSystem } from '../../../entities/wms-system/wms-system';
5
5
  import { DocumentService } from './../../../entities/document/document.service';
6
+ import { ConfirmationService } from "primeng/api";
7
+ import { TranslateService } from "@ngx-translate/core";
8
+ import { ExternalTenantService } from "./../../../entities/external-tenant/external-tenant.service";
9
+ import { Document } from "./../../../entities/document/document";
6
10
  export declare class InsertKeyComponent implements OnInit {
7
11
  private readonly formBuilder;
8
12
  private readonly documentService;
9
13
  private readonly utils;
14
+ private readonly confirmationService;
15
+ private readonly translate;
16
+ private readonly externalTenantService;
10
17
  document: EventEmitter<Document>;
11
18
  visible: EventEmitter<boolean>;
12
19
  wmsSystem: WmsSystem;
@@ -15,12 +22,17 @@ export declare class InsertKeyComponent implements OnInit {
15
22
  keyErrorMessage: string;
16
23
  formGroup: FormGroup;
17
24
  isLoading: boolean;
18
- constructor(formBuilder: FormBuilder, documentService: DocumentService, utils: UtilsMessageService);
25
+ isPartnerloading: boolean;
26
+ private readonly ngUnsubscribe;
27
+ constructor(formBuilder: FormBuilder, documentService: DocumentService, utils: UtilsMessageService, confirmationService: ConfirmationService, translate: TranslateService, externalTenantService: ExternalTenantService);
19
28
  ngOnInit(): void;
20
29
  isWmsWis(): boolean;
21
30
  isWmsSeniorConnect(): boolean;
22
31
  add(): void;
23
32
  private searchKey;
33
+ confirmInvoiceDialog(): void;
34
+ private buildInvoice;
35
+ private createDocumentInvoice;
24
36
  private validateKeyDetails;
25
37
  private extractKeyDetails;
26
38
  private setValuesOfKey;
@@ -19,11 +19,11 @@ export declare class RegisterDocumentComponent implements OnInit, OnChanges {
19
19
  formGroup: FormGroup;
20
20
  hideSaveButton: boolean;
21
21
  isSaveFormValid: boolean;
22
- constructor(fb: FormBuilder, translate: TranslateService);
23
22
  invoiceCondition: {
24
23
  label: string;
25
24
  value: InvoiceCondition;
26
25
  }[];
26
+ constructor(fb: FormBuilder, translate: TranslateService);
27
27
  ngOnInit(): void;
28
28
  ngOnChanges(): void;
29
29
  visibilityConfig(): EventEmitter<boolean>;
@@ -3,20 +3,31 @@ import { Document } from "../../entities/document/document";
3
3
  import { WmsSystem } from "../../entities/wms-system/wms-system";
4
4
  import { AgendaDto } from "../../entities/agenda/agenda-dto";
5
5
  import { LazyLoadEvent } from "primeng/api";
6
+ import { TranslateService } from "@ngx-translate/core";
7
+ import { UtilsMessageService } from "../../../../src/utils/utils-message";
8
+ import { InvoiceCondition } from "../../../wms/entities/invoice-condition/invoice-condition";
6
9
  declare class DocumentListDescritor {
7
10
  }
8
11
  export declare class DocumentListComponent extends DocumentListDescritor {
9
12
  private readonly documentService;
13
+ private readonly translate;
14
+ private readonly utils;
10
15
  agenda: AgendaDto;
11
16
  wmsSystem: WmsSystem;
12
17
  getColumns: any;
13
18
  documents: Document[];
19
+ amendedDocuments: Document[];
14
20
  labels: string[];
15
21
  gridTotalRecords: number;
16
22
  selected: any[];
23
+ disabled: boolean;
17
24
  gridLoading: boolean;
18
25
  private readonly ngUnsubscribe;
19
- constructor(documentService: DocumentService);
26
+ invoiceConditions: {
27
+ label: string;
28
+ value: InvoiceCondition;
29
+ }[];
30
+ constructor(documentService: DocumentService, translate: TranslateService, utils: UtilsMessageService);
20
31
  getColumnLabels(): {
21
32
  field: string;
22
33
  label: string;
@@ -26,6 +37,13 @@ export declare class DocumentListComponent extends DocumentListDescritor {
26
37
  private getLabelsInvoice;
27
38
  getInvoiceConditionTranslation(invoiceCondition: string | null): string;
28
39
  updateGridData(event: LazyLoadEvent): void;
40
+ getFilteredInvoiceConditions(invoiceConditions: any): {
41
+ label: string;
42
+ value: InvoiceCondition | null;
43
+ }[];
44
+ onInvoiceConditionChange(event: any, document: Document): void;
45
+ isAuthorized: (condition: InvoiceCondition) => boolean;
46
+ save(): void;
29
47
  private searchDocument;
30
48
  }
31
49
  export {};
@@ -0,0 +1,6 @@
1
+ import { TranslateService } from '@ngx-translate/core';
2
+ import { InvoiceCondition } from "../../../wms/entities/invoice-condition/invoice-condition";
3
+ export declare function getInvoiceConditions(translate: TranslateService): {
4
+ label: string;
5
+ value: InvoiceCondition;
6
+ }[];
@@ -0,0 +1,7 @@
1
+ export interface ExternalTenantDto {
2
+ id?: string;
3
+ descricao: string;
4
+ cnpj: string;
5
+ tenantDomain?: string;
6
+ ativo: boolean;
7
+ }
@@ -0,0 +1,9 @@
1
+ import { EntityService } from './../../../sam-senior/core/entity-service';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { MessageService } from 'primeng/api';
4
+ import { ExternalTenantDto } from './external-tenant-dto';
5
+ export declare class ExternalTenantService extends EntityService<ExternalTenantDto> {
6
+ protected http: HttpClient;
7
+ protected messageService: MessageService;
8
+ constructor(http: HttpClient, messageService: MessageService);
9
+ }
@@ -2,5 +2,6 @@ export declare enum InvoiceCondition {
2
2
  AUTHORIZED = "AUTHORIZED",
3
3
  PARTIAL_AUTHORIZED = "PARTIAL_AUTHORIZED",
4
4
  MANUAL_AUTHORIZED = "MANUAL_AUTHORIZED",
5
- DEVOLUTION = "DEVOLUTION"
5
+ DEVOLUTION = "DEVOLUTION",
6
+ REJECTED = "REJECTED"
6
7
  }