@seniorsistemas/yms-integration 1.32.0 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/seniorsistemas-yms-integration.umd.js +134 -25
- package/bundles/seniorsistemas-yms-integration.umd.js.map +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js.map +1 -1
- package/esm2015/src/wms/components/document-grid/document-grid.component.js +69 -17
- package/esm2015/src/wms/components/document-grid/document-grid.module.js +6 -3
- package/esm2015/src/wms/components/document-grid/insert-key/insert-key.component.js +38 -3
- package/esm2015/src/wms/components/document-grid/register-document/register-document.component.js +20 -7
- package/esm2015/src/wms/components/document-grid/register-document/register-document.module.js +4 -3
- package/esm2015/src/wms/entities/document/document-dto.js +1 -1
- package/esm2015/src/wms/entities/document/document.js +2 -1
- package/esm2015/src/wms/entities/invoice-condition/invoice-condition.js +8 -0
- package/esm5/src/wms/components/document-grid/document-grid.component.js +66 -16
- package/esm5/src/wms/components/document-grid/document-grid.module.js +6 -3
- package/esm5/src/wms/components/document-grid/insert-key/insert-key.component.js +39 -3
- package/esm5/src/wms/components/document-grid/register-document/register-document.component.js +20 -7
- package/esm5/src/wms/components/document-grid/register-document/register-document.module.js +4 -3
- package/esm5/src/wms/entities/document/document-dto.js +1 -1
- package/esm5/src/wms/entities/document/document.js +2 -1
- package/esm5/src/wms/entities/invoice-condition/invoice-condition.js +8 -0
- package/fesm2015/seniorsistemas-yms-integration.js +136 -26
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +134 -25
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/wms/components/document-grid/document-grid.component.d.ts +17 -8
- package/src/wms/components/document-grid/insert-key/insert-key.component.d.ts +4 -0
- package/src/wms/components/document-grid/register-document/register-document.component.d.ts +9 -3
- package/src/wms/entities/document/document-dto.d.ts +1 -0
- package/src/wms/entities/document/document.d.ts +2 -0
- package/src/wms/entities/invoice-condition/invoice-condition.d.ts +6 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventEmitter, OnInit, TemplateRef } from "@angular/core";
|
|
2
2
|
import { TranslateService } from "@ngx-translate/core";
|
|
3
3
|
import { ConfirmationService, MenuItem } from "primeng/api";
|
|
4
4
|
import { Table } from "primeng/table";
|
|
@@ -8,7 +8,8 @@ import { Document } from "../../entities/document/document";
|
|
|
8
8
|
import { DocumentService } from '../../entities/document/document.service';
|
|
9
9
|
import { WmsSystem } from '../../entities/wms-system/wms-system';
|
|
10
10
|
import { IntegrationService, ProcessType } from './../../entities/integration/integration.service';
|
|
11
|
-
|
|
11
|
+
import { InvoiceCondition } from "../../../../src/wms/entities/invoice-condition/invoice-condition";
|
|
12
|
+
export declare class DocumentGridComponent implements OnInit {
|
|
12
13
|
private readonly translate;
|
|
13
14
|
private readonly documentService;
|
|
14
15
|
private readonly confirmationService;
|
|
@@ -29,8 +30,9 @@ export declare class DocumentGridComponent implements OnInit, AfterContentChecke
|
|
|
29
30
|
document: Document;
|
|
30
31
|
edit: boolean;
|
|
31
32
|
processType: ProcessType;
|
|
32
|
-
|
|
33
|
+
isClienteExterno: boolean;
|
|
33
34
|
enableButtonIsClienteExterno: boolean;
|
|
35
|
+
private readonly summary;
|
|
34
36
|
private readonly ngUnsubscribe;
|
|
35
37
|
table: Table;
|
|
36
38
|
customTemplate: TemplateRef<any>;
|
|
@@ -38,9 +40,12 @@ export declare class DocumentGridComponent implements OnInit, AfterContentChecke
|
|
|
38
40
|
customGridColgroup: TemplateRef<any>;
|
|
39
41
|
customGridHeader: TemplateRef<any>;
|
|
40
42
|
customGridBody: TemplateRef<any>;
|
|
43
|
+
invoiceCondition: {
|
|
44
|
+
label: string;
|
|
45
|
+
value: InvoiceCondition;
|
|
46
|
+
}[];
|
|
41
47
|
constructor(translate: TranslateService, documentService: DocumentService, confirmationService: ConfirmationService, integrationService: IntegrationService, agendaService: AgendaService, utils: UtilsMessageService);
|
|
42
48
|
ngOnInit(): void;
|
|
43
|
-
ngAfterContentChecked(): void;
|
|
44
49
|
private verifyClienteExterno;
|
|
45
50
|
private getProcessTypeByScheduling;
|
|
46
51
|
onChangeDocument(document: Document): void;
|
|
@@ -56,12 +61,16 @@ export declare class DocumentGridComponent implements OnInit, AfterContentChecke
|
|
|
56
61
|
onDelete(): void;
|
|
57
62
|
private removeDocumentIfIdUndfined;
|
|
58
63
|
listDocuments(isDelete: boolean): void;
|
|
59
|
-
getGridColumns
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
private getGridColumns;
|
|
65
|
+
private wmsSeniorConnectIntegration;
|
|
66
|
+
private wmsWisIntegration;
|
|
67
|
+
private wmsSiltIntegration;
|
|
68
|
+
private getColumninvoiceCondition;
|
|
63
69
|
private getColumnInvoiceAndlogistcUnit;
|
|
64
70
|
private getColumnPartner;
|
|
71
|
+
private addInvoiceSituationIfNotClienteExterno;
|
|
65
72
|
isWmsSeniorConnect(): boolean;
|
|
66
73
|
isWmsWIS(): boolean;
|
|
74
|
+
isWmsSilt(): boolean;
|
|
75
|
+
private sucessMessage;
|
|
67
76
|
}
|
|
@@ -12,6 +12,7 @@ export declare class InsertKeyComponent implements OnInit {
|
|
|
12
12
|
wmsSystem: WmsSystem;
|
|
13
13
|
visibleChange: EventEmitter<{}>;
|
|
14
14
|
key: string;
|
|
15
|
+
keyErrorMessage: string;
|
|
15
16
|
formGroup: FormGroup;
|
|
16
17
|
isLoading: boolean;
|
|
17
18
|
constructor(formBuilder: FormBuilder, documentService: DocumentService, utils: UtilsMessageService);
|
|
@@ -20,6 +21,9 @@ export declare class InsertKeyComponent implements OnInit {
|
|
|
20
21
|
isWmsSeniorConnect(): boolean;
|
|
21
22
|
add(): void;
|
|
22
23
|
private searchKey;
|
|
24
|
+
private validateKeyDetails;
|
|
25
|
+
private extractKeyDetails;
|
|
26
|
+
private setValuesOfKey;
|
|
23
27
|
cancel(): void;
|
|
24
28
|
onDialogShow(): void;
|
|
25
29
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnInit } from "@angular/core";
|
|
2
2
|
import { FormBuilder, FormGroup } from "@angular/forms";
|
|
3
3
|
import { Agenda } from '../../../../erp-senior/core/entities/agenda/agenda';
|
|
4
|
-
import { UtilsMessageService } from "../../../../utils/utils-message";
|
|
5
4
|
import { Document } from '../../../entities/document/document';
|
|
6
5
|
import { WmsSystem } from "../../../entities/wms-system/wms-system";
|
|
6
|
+
import { InvoiceCondition } from "../../../entities/invoice-condition/invoice-condition";
|
|
7
|
+
import { TranslateService } from "@ngx-translate/core";
|
|
7
8
|
export declare class RegisterDocumentComponent implements OnInit, OnChanges {
|
|
8
9
|
private readonly fb;
|
|
9
|
-
private readonly
|
|
10
|
+
private readonly translate;
|
|
10
11
|
viewDocument: Document[];
|
|
11
12
|
edit: boolean;
|
|
12
13
|
agenda: Agenda;
|
|
14
|
+
isClienteExterno: boolean;
|
|
13
15
|
document: EventEmitter<Document>;
|
|
14
16
|
wmsSystem: WmsSystem;
|
|
15
17
|
visible: EventEmitter<boolean>;
|
|
@@ -17,7 +19,11 @@ export declare class RegisterDocumentComponent implements OnInit, OnChanges {
|
|
|
17
19
|
formGroup: FormGroup;
|
|
18
20
|
hideSaveButton: boolean;
|
|
19
21
|
isSaveFormValid: boolean;
|
|
20
|
-
constructor(fb: FormBuilder,
|
|
22
|
+
constructor(fb: FormBuilder, translate: TranslateService);
|
|
23
|
+
invoiceCondition: {
|
|
24
|
+
label: string;
|
|
25
|
+
value: InvoiceCondition;
|
|
26
|
+
}[];
|
|
21
27
|
ngOnInit(): void;
|
|
22
28
|
ngOnChanges(): void;
|
|
23
29
|
visibilityConfig(): EventEmitter<boolean>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { WmsSystem } from "../wms-system/wms-system";
|
|
2
|
+
import { InvoiceCondition } from "../invoice-condition/invoice-condition";
|
|
2
3
|
import { DocumentDto } from "./document-dto";
|
|
3
4
|
export declare class Document {
|
|
4
5
|
id?: string;
|
|
@@ -17,6 +18,7 @@ export declare class Document {
|
|
|
17
18
|
partnerDocument?: string;
|
|
18
19
|
notes?: string;
|
|
19
20
|
code?: string;
|
|
21
|
+
invoiceCondition?: InvoiceCondition;
|
|
20
22
|
static fromDto(documentDto: DocumentDto, originEntity?: string): Document;
|
|
21
23
|
static toDto(document: Document, originEntity?: string): DocumentDto;
|
|
22
24
|
}
|