@nomalism-com/types 0.9.517 → 0.9.518
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as IShared from '../../../shared/interface';
|
|
2
|
-
import { DocumentLine, DocumentLineVirtuals, DocumentLineFolder, DocumentLinePendingConflict } from '../../../shared/entities';
|
|
2
|
+
import { DocumentLine, DocumentLineBaseVirtuals, DocumentLineVirtuals, DocumentLineFolder, DocumentLinePendingConflict } from '../../../shared/entities';
|
|
3
3
|
import * as IDocumentLineAssoc from '../documentLineAssoc/interfaces';
|
|
4
4
|
import * as IDocumentHeader from '../documentHeader/interfaces';
|
|
5
5
|
import * as IDocumentType from '../documentType/interfaces';
|
|
@@ -9,6 +9,7 @@ export declare const Route = "documentLine";
|
|
|
9
9
|
export declare const UpperName = "DocumentLine";
|
|
10
10
|
export declare const LowerName: string;
|
|
11
11
|
export type IDocumentLineVirtuals = DocumentLineVirtuals;
|
|
12
|
+
export type IDocumentLineBaseVirtuals = DocumentLineBaseVirtuals;
|
|
12
13
|
export declare enum IMetadataPlugins {
|
|
13
14
|
almofada = "almofada",
|
|
14
15
|
atoalhado = "atoalhado",
|
|
@@ -127,7 +128,8 @@ export type IDocumentLineDocuments = Pick<IDocumentHeader.Entity, 'pdf_link' | '
|
|
|
127
128
|
};
|
|
128
129
|
export interface IEntityExtended extends DocumentLine {
|
|
129
130
|
data: IData;
|
|
130
|
-
|
|
131
|
+
extended_virtual: IDocumentLineVirtuals | null;
|
|
132
|
+
virtual: IDocumentLineBaseVirtuals | null;
|
|
131
133
|
document_headers: IDocumentLineDocuments[];
|
|
132
134
|
document_line_folder: DocumentLineFolder | null;
|
|
133
135
|
plot: IPlot.IFindDetailedResponseWithoutCurrentDocumentLine | null;
|
|
@@ -93,6 +93,7 @@ export import ZipCode = User.ZipCode;
|
|
|
93
93
|
export import DocumentSet = Stock.DocumentSet;
|
|
94
94
|
export import ExternalDocumentType = Stock.ExternalDocumentType;
|
|
95
95
|
export import File = Integration.File;
|
|
96
|
+
export import DocumentLineBaseVirtuals = Stock.DocumentLineBaseVirtuals;
|
|
96
97
|
export import DocumentLineVirtuals = Stock.DocumentLineVirtuals;
|
|
97
98
|
export import StartDocumentHeaderVirtuals = Stock.StartDocumentHeaderVirtuals;
|
|
98
99
|
export import DocumentHeaderVirtuals = Stock.DocumentHeaderVirtuals;
|
|
@@ -905,9 +905,8 @@ export type PlotVirtuals = {
|
|
|
905
905
|
available: boolean;
|
|
906
906
|
current_document_line_id: string | null;
|
|
907
907
|
};
|
|
908
|
-
export type
|
|
908
|
+
export type DocumentLineBaseVirtuals = {
|
|
909
909
|
document_line_id: string;
|
|
910
|
-
commission_total: number;
|
|
911
910
|
client_unit_total_without_tax: number;
|
|
912
911
|
client_unit_total_without_discount: number;
|
|
913
912
|
client_unit_total: number;
|
|
@@ -928,35 +927,43 @@ export type DocumentLineVirtuals = {
|
|
|
928
927
|
provider_total: number;
|
|
929
928
|
provider_total_discount: number;
|
|
930
929
|
provider_total_tax: number;
|
|
930
|
+
commission_percentage: number;
|
|
931
|
+
commission_total: number;
|
|
931
932
|
cancelled: boolean;
|
|
933
|
+
phc_closed: boolean;
|
|
932
934
|
closed: boolean;
|
|
933
|
-
|
|
934
|
-
|
|
935
|
+
purchased_from_provider: boolean;
|
|
936
|
+
pending_return_to_provider: boolean;
|
|
937
|
+
available_for_client_order: boolean;
|
|
938
|
+
already_client_order: boolean;
|
|
939
|
+
to_order: boolean;
|
|
940
|
+
already_material_entrance: boolean;
|
|
941
|
+
rejected_return_to_provider: boolean;
|
|
942
|
+
inventory_loss: boolean;
|
|
943
|
+
return_to_provider_without_credit_note: boolean;
|
|
944
|
+
returned_to_provider: boolean;
|
|
945
|
+
awaiting_production: boolean;
|
|
946
|
+
ordered: boolean;
|
|
947
|
+
group_header: boolean;
|
|
935
948
|
waiting_for_bulk_order: boolean;
|
|
936
949
|
waiting_for_order: boolean;
|
|
950
|
+
documents: IDocumentTypeCodeType[];
|
|
937
951
|
invoice_external_id: string | null;
|
|
938
952
|
returned_from_invoice_external_id: string | null;
|
|
939
953
|
invoice_document_header_external_id: string | null;
|
|
940
954
|
returned_from_invoice_document_header_external_id: string | null;
|
|
941
|
-
client_start_id: string | null;
|
|
942
|
-
provider_start_id: string | null;
|
|
943
955
|
invoice_id: string | null;
|
|
944
|
-
invoice_name: string | null;
|
|
945
956
|
returned_from_invoice_id: string | null;
|
|
946
957
|
return_id: string | null;
|
|
947
|
-
available_for_client_order: boolean;
|
|
948
|
-
already_client_order: boolean;
|
|
949
|
-
already_material_entrance: boolean;
|
|
950
|
-
to_order: boolean;
|
|
951
|
-
purchased_from_provider: boolean;
|
|
952
|
-
pending_return_to_provider: boolean;
|
|
953
|
-
rejected_return_to_provider: boolean;
|
|
954
|
-
inventory_loss: boolean;
|
|
955
|
-
return_to_provider_without_credit_note: boolean;
|
|
956
|
-
returned_to_provider: boolean;
|
|
957
958
|
credit_note_id: string | null;
|
|
958
|
-
|
|
959
|
-
|
|
959
|
+
};
|
|
960
|
+
export type DocumentLineVirtuals = {
|
|
961
|
+
document_line_id: string;
|
|
962
|
+
state: string;
|
|
963
|
+
provider_state: string;
|
|
964
|
+
client_start_id: string | null;
|
|
965
|
+
provider_start_id: string | null;
|
|
966
|
+
invoice_name: string | null;
|
|
960
967
|
};
|
|
961
968
|
export type StartDocumentHeaderLastUpdateVirtuals = {
|
|
962
969
|
p_id: string;
|