@senior-agronegocio/angular-components 0.0.9868 → 0.0.9870

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 (185) hide show
  1. package/bundles/senior-agronegocio-angular-components.umd.js +5642 -4904
  2. package/bundles/senior-agronegocio-angular-components.umd.js.map +1 -1
  3. package/bundles/senior-agronegocio-angular-components.umd.min.js +2 -2
  4. package/bundles/senior-agronegocio-angular-components.umd.min.js.map +1 -1
  5. package/common/agro-number-utils.class.d.ts +6 -0
  6. package/common/agro-object-stringifier.class.d.ts +1 -1
  7. package/common/agro-string-utils.class.d.ts +0 -5
  8. package/components/event-control-board/common/event-operation.d.ts +1 -0
  9. package/components/event-control-board/common/event-origin.d.ts +1 -0
  10. package/components/event-control-board/event-control-board.component.d.ts +7 -3
  11. package/components/event-control-board/index.d.ts +1 -3
  12. package/components/event-control-board/service/e012fam/e012fam.d.ts +14 -0
  13. package/components/event-control-board/service/e075der/e075der.d.ts +18 -0
  14. package/components/event-control-board/service/e113saf/e113saf.d.ts +14 -0
  15. package/components/event-control-board/service/e205dep/e205dep-dto.d.ts +15 -0
  16. package/components/event-control-board/service/e205dep/e205dep.d.ts +16 -0
  17. package/components/event-control-board/service/entity-service.d.ts +3 -3
  18. package/components/event-control-board/service/external-invoice/external-invoice.d.ts +13 -0
  19. package/components/event-control-board/service/invoice/invoice.d.ts +21 -0
  20. package/components/event-control-board/service/origination/operationType.d.ts +5 -0
  21. package/components/event-control-board/service/origination/origination-dto.d.ts +1 -1
  22. package/components/event-control-board/service/origination/origination.d.ts +51 -0
  23. package/components/event-control-board/service/rural-estate/rural-estate.d.ts +34 -0
  24. package/components/event-control-board/service/ticket/ticket.d.ts +18 -0
  25. package/components/index.d.ts +1 -0
  26. package/components/modal-invoice-pj/for-fixation/modal-fixation-options.interface.d.ts +5 -0
  27. package/components/modal-invoice-pj/for-fixation/modal-invoice-pj-for-fixation.component.d.ts +35 -0
  28. package/components/modal-invoice-pj/for-fixation/modal-invoice-pj-for-fixation.module.d.ts +2 -0
  29. package/components/modal-invoice-pj/for-origination/modal-invoice-pj-for-origination.component.d.ts +26 -0
  30. package/components/modal-invoice-pj/for-origination/modal-invoice-pj-for-origination.module.d.ts +2 -0
  31. package/components/modal-invoice-pj/for-transfer/modal-invoice-pj-for-transfer.component.d.ts +26 -0
  32. package/components/modal-invoice-pj/for-transfer/modal-invoice-pj-for-transfer.module.d.ts +2 -0
  33. package/components/modal-invoice-pj/index.d.ts +9 -0
  34. package/components/modal-invoice-pj/modal-invoice-pj-base.class.d.ts +53 -0
  35. package/components/modal-invoice-pj/modal-invoice-pj-options.interface.d.ts +10 -0
  36. package/components/modal-invoice-pj/modal-shared-imports.d.ts +8 -0
  37. package/components/modal-invoice-pj/services/agro-invoice/agro-invoice.module.d.ts +2 -0
  38. package/components/modal-invoice-pj/services/agro-invoice/agro-invoice.service.d.ts +16 -0
  39. package/components/modal-invoice-pj/services/agro-invoice/index.d.ts +2 -0
  40. package/components/modal-invoice-pj/services/agro-invoice/interfaces.d.ts +75 -0
  41. package/enums/invoice-status.enum.d.ts +12 -0
  42. package/esm2015/common/agro-number-utils.class.js +18 -1
  43. package/esm2015/common/agro-object-stringifier.class.js +4 -1
  44. package/esm2015/common/agro-string-utils.class.js +2 -64
  45. package/esm2015/components/cancel-event-dialog/cancel-event-dialog-config.js +1 -1
  46. package/esm2015/components/event-control-board/common/event-control-constants.js +6 -1
  47. package/esm2015/components/event-control-board/common/event-operation.js +2 -1
  48. package/esm2015/components/event-control-board/common/event-origin.js +2 -1
  49. package/esm2015/components/event-control-board/event-control-board.component.js +14 -8
  50. package/esm2015/components/event-control-board/event-control-board.module.js +2 -5
  51. package/esm2015/components/event-control-board/index.js +2 -4
  52. package/esm2015/components/event-control-board/service/e012fam/e012fam.js +20 -0
  53. package/esm2015/components/event-control-board/service/e075der/e075der.js +31 -0
  54. package/esm2015/components/event-control-board/service/e113saf/e113saf.js +20 -0
  55. package/esm2015/components/event-control-board/service/e205dep/e205dep-dto.js +1 -0
  56. package/esm2015/components/event-control-board/service/e205dep/e205dep.js +20 -0
  57. package/esm2015/components/event-control-board/service/entity-service.js +25 -27
  58. package/esm2015/components/event-control-board/service/external-invoice/external-invoice.js +20 -0
  59. package/esm2015/components/event-control-board/service/invoice/invoice.js +43 -0
  60. package/esm2015/components/event-control-board/service/origination/operationType.js +7 -0
  61. package/esm2015/components/event-control-board/service/origination/origination-dto.js +1 -1
  62. package/esm2015/components/event-control-board/service/origination/origination.js +59 -0
  63. package/esm2015/components/event-control-board/service/rural-estate/rural-estate.js +78 -0
  64. package/esm2015/components/event-control-board/service/ticket/ticket.js +39 -0
  65. package/esm2015/components/financial-title-table/financial-title-table.module.js +7 -5
  66. package/esm2015/components/index.js +2 -1
  67. package/esm2015/components/modal-invoice-pj/for-fixation/modal-fixation-options.interface.js +1 -0
  68. package/esm2015/components/modal-invoice-pj/for-fixation/modal-invoice-pj-for-fixation.component.js +189 -0
  69. package/esm2015/components/modal-invoice-pj/for-fixation/modal-invoice-pj-for-fixation.module.js +16 -0
  70. package/esm2015/components/modal-invoice-pj/for-origination/modal-invoice-pj-for-origination.component.js +60 -0
  71. package/esm2015/components/modal-invoice-pj/for-origination/modal-invoice-pj-for-origination.module.js +16 -0
  72. package/esm2015/components/modal-invoice-pj/for-transfer/modal-invoice-pj-for-transfer.component.js +60 -0
  73. package/esm2015/components/modal-invoice-pj/for-transfer/modal-invoice-pj-for-transfer.module.js +16 -0
  74. package/esm2015/components/modal-invoice-pj/index.js +8 -0
  75. package/esm2015/components/modal-invoice-pj/modal-invoice-pj-base.class.js +193 -0
  76. package/esm2015/components/modal-invoice-pj/modal-invoice-pj-options.interface.js +1 -0
  77. package/esm2015/components/modal-invoice-pj/modal-shared-imports.js +32 -0
  78. package/esm2015/components/modal-invoice-pj/services/agro-invoice/agro-invoice.module.js +28 -0
  79. package/esm2015/components/modal-invoice-pj/services/agro-invoice/agro-invoice.service.js +49 -0
  80. package/esm2015/components/modal-invoice-pj/services/agro-invoice/index.js +3 -0
  81. package/esm2015/components/modal-invoice-pj/services/agro-invoice/interfaces.js +13 -0
  82. package/esm2015/enums/invoice-status.enum.js +14 -0
  83. package/esm2015/lib-translation.module.js +3 -1
  84. package/esm2015/pipe/index.js +2 -1
  85. package/esm2015/pipe/kilogram/index.js +3 -0
  86. package/esm2015/pipe/kilogram/kilogram.module.js +17 -0
  87. package/esm2015/pipe/kilogram/kilogram.pipe.js +38 -0
  88. package/esm2015/public-api.js +5 -5
  89. package/esm2015/services/entity-service.js +14 -12
  90. package/esm2015/services/i18n/en-US.js +10 -1
  91. package/esm2015/services/i18n/es-CO.js +12 -3
  92. package/esm2015/services/i18n/pt-BR.js +272 -261
  93. package/esm2015/services/index.js +1 -1
  94. package/esm2015/services/lib-translation.service.js +2 -2
  95. package/esm2015/services/producer-invoice/index.js +3 -0
  96. package/esm2015/services/producer-invoice/producer-invoice-dto.js +1 -0
  97. package/esm2015/services/producer-invoice/producer-invoice.js +32 -0
  98. package/esm2015/services/producer-invoice/producer-invoice.service.js +64 -0
  99. package/esm5/common/agro-number-utils.class.js +19 -1
  100. package/esm5/common/agro-object-stringifier.class.js +4 -1
  101. package/esm5/common/agro-string-utils.class.js +8 -81
  102. package/esm5/components/cancel-event-dialog/cancel-event-dialog-config.js +1 -1
  103. package/esm5/components/event-control-board/common/event-control-constants.js +6 -1
  104. package/esm5/components/event-control-board/common/event-operation.js +2 -1
  105. package/esm5/components/event-control-board/common/event-origin.js +2 -1
  106. package/esm5/components/event-control-board/event-control-board.component.js +14 -8
  107. package/esm5/components/event-control-board/event-control-board.module.js +2 -5
  108. package/esm5/components/event-control-board/index.js +2 -4
  109. package/esm5/components/event-control-board/service/e012fam/e012fam.js +25 -0
  110. package/esm5/components/event-control-board/service/e075der/e075der.js +36 -0
  111. package/esm5/components/event-control-board/service/e113saf/e113saf.js +25 -0
  112. package/esm5/components/event-control-board/service/e205dep/e205dep-dto.js +1 -0
  113. package/esm5/components/event-control-board/service/e205dep/e205dep.js +25 -0
  114. package/esm5/components/event-control-board/service/entity-service.js +24 -26
  115. package/esm5/components/event-control-board/service/external-invoice/external-invoice.js +25 -0
  116. package/esm5/components/event-control-board/service/invoice/invoice.js +48 -0
  117. package/esm5/components/event-control-board/service/origination/operationType.js +7 -0
  118. package/esm5/components/event-control-board/service/origination/origination-dto.js +1 -1
  119. package/esm5/components/event-control-board/service/origination/origination.js +62 -0
  120. package/esm5/components/event-control-board/service/rural-estate/rural-estate.js +83 -0
  121. package/esm5/components/event-control-board/service/ticket/ticket.js +44 -0
  122. package/esm5/components/financial-title-table/financial-title-table.module.js +7 -5
  123. package/esm5/components/index.js +2 -1
  124. package/esm5/components/modal-invoice-pj/for-fixation/modal-fixation-options.interface.js +1 -0
  125. package/esm5/components/modal-invoice-pj/for-fixation/modal-invoice-pj-for-fixation.component.js +221 -0
  126. package/esm5/components/modal-invoice-pj/for-fixation/modal-invoice-pj-for-fixation.module.js +19 -0
  127. package/esm5/components/modal-invoice-pj/for-origination/modal-invoice-pj-for-origination.component.js +63 -0
  128. package/esm5/components/modal-invoice-pj/for-origination/modal-invoice-pj-for-origination.module.js +19 -0
  129. package/esm5/components/modal-invoice-pj/for-transfer/modal-invoice-pj-for-transfer.component.js +63 -0
  130. package/esm5/components/modal-invoice-pj/for-transfer/modal-invoice-pj-for-transfer.module.js +19 -0
  131. package/esm5/components/modal-invoice-pj/index.js +8 -0
  132. package/esm5/components/modal-invoice-pj/modal-invoice-pj-base.class.js +210 -0
  133. package/esm5/components/modal-invoice-pj/modal-invoice-pj-options.interface.js +1 -0
  134. package/esm5/components/modal-invoice-pj/modal-shared-imports.js +32 -0
  135. package/esm5/components/modal-invoice-pj/services/agro-invoice/agro-invoice.module.js +31 -0
  136. package/esm5/components/modal-invoice-pj/services/agro-invoice/agro-invoice.service.js +56 -0
  137. package/esm5/components/modal-invoice-pj/services/agro-invoice/index.js +3 -0
  138. package/esm5/components/modal-invoice-pj/services/agro-invoice/interfaces.js +13 -0
  139. package/esm5/enums/invoice-status.enum.js +14 -0
  140. package/esm5/lib-translation.module.js +3 -1
  141. package/esm5/pipe/index.js +2 -1
  142. package/esm5/pipe/kilogram/index.js +3 -0
  143. package/esm5/pipe/kilogram/kilogram.module.js +20 -0
  144. package/esm5/pipe/kilogram/kilogram.pipe.js +41 -0
  145. package/esm5/public-api.js +5 -5
  146. package/esm5/services/entity-service.js +13 -11
  147. package/esm5/services/i18n/en-US.js +10 -1
  148. package/esm5/services/i18n/es-CO.js +12 -3
  149. package/esm5/services/i18n/pt-BR.js +272 -261
  150. package/esm5/services/index.js +1 -1
  151. package/esm5/services/lib-translation.service.js +2 -2
  152. package/esm5/services/producer-invoice/index.js +3 -0
  153. package/esm5/services/producer-invoice/producer-invoice-dto.js +1 -0
  154. package/esm5/services/producer-invoice/producer-invoice.js +37 -0
  155. package/esm5/services/producer-invoice/producer-invoice.service.js +72 -0
  156. package/fesm2015/senior-agronegocio-angular-components.js +5095 -4439
  157. package/fesm2015/senior-agronegocio-angular-components.js.map +1 -1
  158. package/fesm5/senior-agronegocio-angular-components.js +5641 -4912
  159. package/fesm5/senior-agronegocio-angular-components.js.map +1 -1
  160. package/package.json +1 -1
  161. package/pipe/index.d.ts +1 -0
  162. package/pipe/kilogram/index.d.ts +2 -0
  163. package/pipe/kilogram/kilogram.module.d.ts +2 -0
  164. package/pipe/kilogram/kilogram.pipe.d.ts +8 -0
  165. package/public-api.d.ts +4 -4
  166. package/senior-agronegocio-angular-components.metadata.json +1 -1
  167. package/services/entity-service.d.ts +2 -1
  168. package/services/i18n/en-US.d.ts +9 -0
  169. package/services/i18n/es-CO.d.ts +10 -1
  170. package/services/i18n/pt-BR.d.ts +270 -259
  171. package/services/producer-invoice/index.d.ts +3 -0
  172. package/{components/event-control-board/service → services}/producer-invoice/producer-invoice-dto.d.ts +4 -4
  173. package/services/producer-invoice/producer-invoice.d.ts +27 -0
  174. package/services/producer-invoice/producer-invoice.service.d.ts +18 -0
  175. package/components/event-control-board/service/event-control-board.service.d.ts +0 -13
  176. package/components/event-control-board/service/producer-invoice/producer-invoice.module.d.ts +0 -2
  177. package/components/event-control-board/service/producer-invoice/producer-invoice.service.d.ts +0 -11
  178. package/esm2015/components/event-control-board/service/event-control-board.service.js +0 -37
  179. package/esm2015/components/event-control-board/service/producer-invoice/producer-invoice-dto.js +0 -1
  180. package/esm2015/components/event-control-board/service/producer-invoice/producer-invoice.module.js +0 -26
  181. package/esm2015/components/event-control-board/service/producer-invoice/producer-invoice.service.js +0 -24
  182. package/esm5/components/event-control-board/service/event-control-board.service.js +0 -38
  183. package/esm5/components/event-control-board/service/producer-invoice/producer-invoice-dto.js +0 -1
  184. package/esm5/components/event-control-board/service/producer-invoice/producer-invoice.module.js +0 -29
  185. package/esm5/components/event-control-board/service/producer-invoice/producer-invoice.service.js +0 -27
@@ -68,4 +68,10 @@ export declare class AgroNumberUtils {
68
68
  * @returns O número arredondado.
69
69
  */
70
70
  static roundTo(value: number, decimals?: number): number;
71
+ /**
72
+ * Pega apenas números, convertendo strings para números e retornarndo apenas o maior inteiro encontrado.
73
+ * @param value - O valor a ser processado.
74
+ * @returns O maior número inteiro encontrado ou 0 se nenhum número for encontrado.
75
+ */
76
+ static getNearInteger(value: any): number;
71
77
  }
@@ -1,6 +1,6 @@
1
1
  import { PipeTransform } from "@angular/core";
2
2
  export declare type UsePipes = {
3
- [key: string]: PipeTransform;
3
+ [key: string]: PipeTransform | string;
4
4
  };
5
5
  export declare class AgroObjectStringifier {
6
6
  /**
@@ -83,11 +83,6 @@ export declare class AgroStringUtils {
83
83
  static uncapitalize(str: string): string;
84
84
  /** Conta o número de ocorrências de uma substring dentro de uma string */
85
85
  static countMatches(str: string, substring: string): number;
86
- /**
87
- * Remove uma máscara simples da string fornecida.O padrão de máscaras é definido pelo enum AgroStringMasks ou
88
- * pode ser uma string personalizada onde '9' representa um dígito a ser mantido da string.
89
- */
90
- static removeMask(value: string, mask: AgroStringMasks | string): string;
91
86
  /**
92
87
  * Aplica uma máscara simples à string fornecida.O padrão de máscaras é definido pelo enum AgroStringMasks ou
93
88
  * pode ser uma string personalizada onde '9' representa um dígito a ser substituído pelo caractere correspondente
@@ -3,6 +3,7 @@ export declare enum EventOperation {
3
3
  EFFECTIVE = "EFFECTIVE",
4
4
  TICKET = "TICKET",
5
5
  CREATE_INVOICE = "CREATE_INVOICE",
6
+ INVOICE_CLOSE_INVOICE = "INVOICE_CLOSE_INVOICE",
6
7
  EFFECTIVE_CONFIRMATION = "EFFECTIVE_CONFIRMATION",
7
8
  REMOVE_PROVISIONAL = "REMOVE_PROVISIONAL",
8
9
  CHANGE_REQUEST = "CHANGE_REQUEST",
@@ -5,6 +5,7 @@ export declare enum EventOrigin {
5
5
  TRANSFER = "TRANSFER",
6
6
  CHANGE_REQUEST = "CHANGE_REQUEST",
7
7
  CREATE_INVOICE = "CREATE_INVOICE",
8
+ CLOSE_INVOICE = "CLOSE_INVOICE",
8
9
  FIXATION = "FIXATION",
9
10
  CANCEL_FIXATION = "CANCEL_FIXATION",
10
11
  TRANSFER_CANCELLATION = "TRANSFER_CANCELLATION"
@@ -10,14 +10,18 @@ import { EventOrigin } from "./common/event-origin";
10
10
  import { EventStatus } from "./common/event-status";
11
11
  import { E070Emp } from "./service/e070emp/e070emp";
12
12
  import { E070Fil } from "./service/e070fil/e070fil";
13
- import { EventControlBoardService } from "./service/event-control-board.service";
13
+ import { EventControlItemService } from "./service/event-control-item/event-control-item.service";
14
14
  import { PaginatorStorageService } from "./service/paginator-storage.service";
15
+ import { EventControlService } from "./service/event-control/event-control.service";
16
+ import { ProducerInvoiceService } from "../../services/producer-invoice";
15
17
  export declare class EventControlBoardComponent implements OnInit, OnDestroy, OnChanges {
16
18
  private readonly translate;
17
19
  private readonly formBuilder;
18
20
  private readonly websocketService;
19
- private readonly eventControlBoardService;
21
+ private readonly eventControlService;
20
22
  private readonly paginatorStorageService;
23
+ private readonly eventControlItemService;
24
+ private readonly producerInvoiceService;
21
25
  private readonly messageService;
22
26
  private readonly dialogService;
23
27
  company: E070Emp;
@@ -56,7 +60,7 @@ export declare class EventControlBoardComponent implements OnInit, OnDestroy, On
56
60
  private readonly eventItem;
57
61
  private readonly inputFieldsPath;
58
62
  private readonly invoiceTypeTranslate;
59
- constructor(translate: LibTranslationService, formBuilder: FormBuilder, websocketService: WebsocketService, eventControlBoardService: EventControlBoardService, paginatorStorageService: PaginatorStorageService, messageService: MessageService, dialogService: DialogService);
63
+ constructor(translate: LibTranslationService, formBuilder: FormBuilder, websocketService: WebsocketService, eventControlService: EventControlService, paginatorStorageService: PaginatorStorageService, eventControlItemService: EventControlItemService, producerInvoiceService: ProducerInvoiceService, messageService: MessageService, dialogService: DialogService);
60
64
  ngOnInit(): Promise<void>;
61
65
  ngOnChanges(changes: SimpleChanges): void;
62
66
  private updateCompanyAndBranchFormFields;
@@ -1,7 +1,6 @@
1
- export { EventControlBoardComponent } from "./event-control-board.component";
2
- export { EventControlBoardService } from "./service/event-control-board.service";
3
1
  export { SharedModule } from "./shared.module";
4
2
  export { EventControlBoardModule } from "./event-control-board.module";
3
+ export { EventControlBoardComponent } from "./event-control-board.component";
5
4
  export { EventStepsModule } from "../event-steps/index";
6
5
  export { FixationModule } from "./service/fixation-entity/fixation.module";
7
6
  export { E001pesModule } from "./service/e001pes/e001pes.module";
@@ -15,7 +14,6 @@ export { EventControlItemModule } from "./service/event-control-item/event-contr
15
14
  export { ExternalInvoiceModule } from "./service/external-invoice/external-invoice.module";
16
15
  export { InvoiceModule } from "./service/invoice/invoice.module";
17
16
  export { OriginationModule } from "./service/origination/origination.module";
18
- export { ProducerInvoiceModule } from "./service/producer-invoice/producer-invoice.module";
19
17
  export { RuralEstateModule } from "./service/rural-estate/rural-estate.module";
20
18
  export { TicketModule } from "./service/ticket/ticket.module";
21
19
  export { PaginatorStorageService } from "./service/paginator-storage.service";
@@ -0,0 +1,14 @@
1
+ import { E012famDto } from "./e012fam-dto";
2
+ export declare class E012fam {
3
+ id?: string;
4
+ codFam: number;
5
+ desFam: string;
6
+ sitFam: string;
7
+ createdBy?: string;
8
+ createdDate?: Date;
9
+ lastModifiedBy?: string;
10
+ lastModifiedDate?: Date;
11
+ custom?: any;
12
+ static fromDto(e012famDto: E012famDto, originEntity?: string): E012fam;
13
+ static toDto(e012fam: E012fam, originEntity?: string): E012famDto;
14
+ }
@@ -0,0 +1,18 @@
1
+ import { E012famDto } from "../e012fam/e012fam-dto";
2
+ import { StatusEntity } from "../../common/status-entity";
3
+ import { E075DerDto } from "./e075der-dto";
4
+ import { E070EmpDto } from "../e070emp/e070emp-dto";
5
+ export declare class E075Der {
6
+ id?: string;
7
+ e070emp: E070EmpDto;
8
+ e012Fam: E012famDto;
9
+ codDer: string;
10
+ desDer: string;
11
+ sitDer: StatusEntity;
12
+ createdBy?: string;
13
+ createdDate?: Date;
14
+ lastModifiedBy?: string;
15
+ lastModifiedDate?: Date;
16
+ static fromDto(e075DerDto: E075DerDto, originEntity?: string): E075Der;
17
+ static toDto(e075Der: E075Der, originEntity?: string): E075DerDto;
18
+ }
@@ -0,0 +1,14 @@
1
+ import { E113SafDto } from "./e113saf-dto";
2
+ export declare class E113Saf {
3
+ id?: string;
4
+ codSaf: number;
5
+ desSaf: string;
6
+ sitSaf: string;
7
+ createdBy?: string;
8
+ createdDate?: Date;
9
+ lastModifiedBy?: string;
10
+ lastModifiedDate?: Date;
11
+ custom?: any;
12
+ static fromDto(e113safDto: E113SafDto, originEntity?: string): E113Saf;
13
+ static toDto(e113saf: E113Saf, originEntity?: string): E113SafDto;
14
+ }
@@ -0,0 +1,15 @@
1
+ import { E070EmpDto } from "../e070emp/e070emp-dto";
2
+ import { E070FilDto } from "../e070fil/e070fil-dto";
3
+ export interface E205depDto {
4
+ id?: string;
5
+ e070emp?: string | E070EmpDto;
6
+ e070fil?: string | E070FilDto;
7
+ codDep: string;
8
+ desDep: string;
9
+ sitDep: string;
10
+ createdBy?: string;
11
+ createdDate?: Date;
12
+ lastModifiedBy?: string;
13
+ lastModifiedDate?: Date;
14
+ custom?: any;
15
+ }
@@ -0,0 +1,16 @@
1
+ import { E205depDto } from "./e205dep-dto";
2
+ export declare class E205dep {
3
+ id?: string;
4
+ e070emp?: string;
5
+ e070fil?: string;
6
+ codDep: string;
7
+ desDep: string;
8
+ sitDep: string;
9
+ createdBy?: string;
10
+ createdDate?: Date;
11
+ lastModifiedBy?: string;
12
+ lastModifiedDate?: Date;
13
+ custom?: any;
14
+ static fromDto(e205depDto: E205depDto, originEntity?: string): E205dep;
15
+ static toDto(e205dep: E205dep, originEntity?: string): E205depDto;
16
+ }
@@ -1,6 +1,6 @@
1
- import { HttpParams, HttpClient } from "@angular/common/http";
2
- import { MessageService, SortMeta } from "primeng";
3
- import { LibTranslationService } from "../../../services/lib-translation.service";
1
+ import { HttpParams, HttpClient } from '@angular/common/http';
2
+ import { MessageService, SortMeta } from 'primeng';
3
+ import { LibTranslationService } from '../../../services/lib-translation.service';
4
4
  export declare class EntityService<T> {
5
5
  protected http: HttpClient;
6
6
  protected messageService: MessageService;
@@ -0,0 +1,13 @@
1
+ import { ExternalInvoiceDto } from "./external-invoice-dto";
2
+ export declare class ExternalInvoice {
3
+ id?: string;
4
+ number: string;
5
+ series: string;
6
+ createdBy?: string;
7
+ createdDate?: Date;
8
+ lastModifiedBy?: string;
9
+ lastModifiedDate?: Date;
10
+ custom?: any;
11
+ static fromDto(externalInvoiceDto: ExternalInvoiceDto, originEntity?: string): ExternalInvoice;
12
+ static toDto(externalInvoice: ExternalInvoice, originEntity?: string): ExternalInvoiceDto;
13
+ }
@@ -0,0 +1,21 @@
1
+ import { InvoiceDto } from '../invoice/invoice-dto';
2
+ import { Ticket } from '../ticket/ticket';
3
+ import { InvoiceType } from '../../common/invoice-type';
4
+ import { InvoiceStatus } from '../../../../enums/invoice-status.enum';
5
+ export declare class Invoice {
6
+ id?: string;
7
+ number?: string;
8
+ series: string;
9
+ issuanceDate?: Date;
10
+ status: InvoiceStatus;
11
+ type: InvoiceType;
12
+ ticket?: Ticket[];
13
+ invoiceErpxId: string;
14
+ createdBy?: string;
15
+ createdDate?: Date;
16
+ lastModifiedBy?: string;
17
+ lastModifiedDate?: Date;
18
+ custom?: any;
19
+ static fromDto(invoiceDto: InvoiceDto, originEntity?: string): Invoice;
20
+ static toDto(invoice: Invoice, originEntity?: string): InvoiceDto;
21
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum OperationType {
2
+ ENTRY = "ENTRY",
3
+ EXIT = "EXIT",
4
+ BOTH = "BOTH"
5
+ }
@@ -11,7 +11,7 @@ import { DocumentsToIssue } from "../../common/documentsToIssue";
11
11
  import { RuralEstateDto } from "../rural-estate/rural-estate-dto";
12
12
  import { TicketDto } from "../ticket/ticket-dto";
13
13
  import { ExternalInvoiceDto } from "../external-invoice/external-invoice-dto";
14
- import { ProducerInvoiceDto } from "../producer-invoice/producer-invoice-dto";
14
+ import { ProducerInvoiceDto } from "../../../../services/producer-invoice/producer-invoice-dto";
15
15
  import { ControlStatus } from "../../common/control-status";
16
16
  export interface OriginationDto {
17
17
  id?: string;
@@ -0,0 +1,51 @@
1
+ import { OriginationDto } from "./origination-dto";
2
+ import { E001pes } from "../e001pes/e001pes";
3
+ import { OperationType } from "./operationType";
4
+ import { Ticket } from "../ticket/ticket";
5
+ import { E075Der } from "../e075der/e075der";
6
+ import { E113Saf } from "../e113saf/e113saf";
7
+ import { E012fam } from "../e012fam/e012fam";
8
+ import { ProducerInvoice } from "../../../../services/producer-invoice/producer-invoice";
9
+ import { E205dep } from "../e205dep/e205dep";
10
+ import { E070Emp } from "../e070emp/e070emp";
11
+ import { E070Fil } from "../e070fil/e070fil";
12
+ import { ControlStatus } from "../../common/control-status";
13
+ import { E001Tns } from "../e001tns/e001tns";
14
+ import { DocumentsToIssue } from "../../common/documentsToIssue";
15
+ export declare class Origination {
16
+ id?: string;
17
+ ticket: Ticket;
18
+ nome?: string;
19
+ operation: string;
20
+ operationType: OperationType;
21
+ licensePlate: string;
22
+ weightEntry: number;
23
+ weightExit: number;
24
+ weightResult: number;
25
+ driver?: E001pes;
26
+ e075der: E075Der;
27
+ e113saf: E113Saf;
28
+ e012fam: E012fam;
29
+ producersInvoices: ProducerInvoice[];
30
+ e205dep: E205dep;
31
+ e070emp: E070Emp;
32
+ e070fil: E070Fil;
33
+ isManualReadingEntry?: boolean;
34
+ isManualReadingExit?: boolean;
35
+ dateTimeWeighingEntry: Date;
36
+ userWeighingEntry: string;
37
+ dateTimeWeighingExit?: Date;
38
+ userWeighingExit?: string;
39
+ controlStatus: ControlStatus;
40
+ classification?: string;
41
+ e001tns?: E001Tns;
42
+ documentToIssue?: DocumentsToIssue;
43
+ createdBy?: string;
44
+ createdDate?: Date;
45
+ lastModifiedBy?: string;
46
+ lastModifiedDate?: Date;
47
+ custom?: any;
48
+ static fromDto(originationDto: OriginationDto, originEntity?: string): Origination;
49
+ static toDto(origination: Origination, originEntity?: string): OriginationDto;
50
+ static getDto(originationDto: OriginationDto): OriginationDto;
51
+ }
@@ -0,0 +1,34 @@
1
+ import { RuralEstateDto } from '../rural-estate/rural-estate-dto';
2
+ import { StatusEntity } from '../../common/status-entity';
3
+ import { E070Emp } from '../e070emp/e070emp';
4
+ import { E070Fil } from '../e070fil/e070fil';
5
+ import { E001pes } from '../e001pes/e001pes';
6
+ export declare class RuralEstate {
7
+ id?: string;
8
+ sequential?: number;
9
+ company: E070Emp;
10
+ branch: E070Fil;
11
+ code?: string;
12
+ name: string;
13
+ ie?: string;
14
+ cep: string;
15
+ address: string;
16
+ number?: number;
17
+ complement?: string;
18
+ district?: string;
19
+ country?: any;
20
+ state?: any;
21
+ city?: any;
22
+ latitude?: string;
23
+ longitude?: string;
24
+ status: StatusEntity;
25
+ producers?: E001pes[];
26
+ usuger?: string;
27
+ dthger?: Date;
28
+ usualt?: string;
29
+ dthalt?: Date;
30
+ custom?: any;
31
+ static fromDto(ruralEstateDto: RuralEstateDto, originEntity?: string): RuralEstate;
32
+ static toDto(ruralEstate: RuralEstate, originEntity?: string): RuralEstateDto;
33
+ private static formatDateTime;
34
+ }
@@ -0,0 +1,18 @@
1
+ import { TicketDto } from "../ticket/ticket-dto";
2
+ import { TicketStatus } from "../../common/ticket-status";
3
+ export declare class Ticket {
4
+ id?: string;
5
+ number: number;
6
+ parent?: number;
7
+ balanceEntryControl?: any;
8
+ status: TicketStatus;
9
+ userCancellation?: string;
10
+ dateTimeCancellation?: Date;
11
+ createdBy?: string;
12
+ createdDate?: Date;
13
+ lastModifiedBy?: string;
14
+ lastModifiedDate?: Date;
15
+ custom?: any;
16
+ static fromDto(ticketDto: TicketDto, originEntity?: string): Ticket;
17
+ static toDto(ticket: Ticket, originEntity?: string): TicketDto;
18
+ }
@@ -1,4 +1,5 @@
1
1
  export * from "./event-control-board/index";
2
2
  export * from "./event-steps/index";
3
3
  export * from "./cancel-event-dialog/index";
4
+ export * from "./modal-invoice-pj/index";
4
5
  export * from "./financial-title-table/index";
@@ -0,0 +1,5 @@
1
+ import { ModalInvoicePjOptions } from "../modal-invoice-pj-options.interface";
2
+ export interface ModalInvoicePjForFixationOptions extends ModalInvoicePjOptions {
3
+ fixationId: string;
4
+ fixationItems: any[];
5
+ }
@@ -0,0 +1,35 @@
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { IInvoiceLookupResponse } from '../services/agro-invoice/interfaces';
3
+ import { LibTranslationService } from '../../../services/lib-translation.service';
4
+ import { AgroInvoiceService } from '../services/agro-invoice';
5
+ import { Column, LocaleService } from '@seniorsistemas/angular-components';
6
+ import { KilogramPipe } from '../../../pipe/kilogram';
7
+ import { CurrencyPipe } from '@angular/common';
8
+ import { ModalInvoicePjBase } from '../modal-invoice-pj-base.class';
9
+ import { ModalInvoicePjForFixationOptions } from './modal-fixation-options.interface';
10
+ import { ProducerInvoiceService } from '../../../services/producer-invoice/producer-invoice.service';
11
+ import { MessageService } from 'primeng';
12
+ export declare class ModalInvoicePjForFixationComponent extends ModalInvoicePjBase implements OnInit, OnDestroy {
13
+ readonly translationService: LibTranslationService;
14
+ readonly invoiceService: AgroInvoiceService;
15
+ readonly localeService: LocaleService;
16
+ readonly kilogramPipe: KilogramPipe;
17
+ readonly currencyPipe: CurrencyPipe;
18
+ readonly producerInvoiceService: ProducerInvoiceService;
19
+ readonly messageService: MessageService;
20
+ options: ModalInvoicePjForFixationOptions;
21
+ whenSelectInvoices: EventEmitter<any[]>;
22
+ gridColumns: Partial<Column & {
23
+ sortable?: boolean;
24
+ }>[];
25
+ constructor(translationService: LibTranslationService, invoiceService: AgroInvoiceService, localeService: LocaleService, kilogramPipe: KilogramPipe, currencyPipe: CurrencyPipe, producerInvoiceService: ProducerInvoiceService, messageService: MessageService);
26
+ ngOnInit(): void;
27
+ defineGridColumns(): void;
28
+ beforeAdd(selectedInvoices: any[]): Promise<any>;
29
+ open(): void;
30
+ linkSelectedInvoicesInFixationItem(): Promise<void>;
31
+ isValidAndSetLinkedValueInInvoices(): Promise<boolean>;
32
+ adaptResult(result: IInvoiceLookupResponse): Promise<any>;
33
+ cancel(): Promise<void>;
34
+ updateLinkedValueInGrid(rows: number): Promise<void>;
35
+ }
@@ -0,0 +1,2 @@
1
+ export declare class ModalInvoicePjForFixationModule {
2
+ }
@@ -0,0 +1,26 @@
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { ModalInvoicePjOptions } from '../modal-invoice-pj-options.interface';
3
+ import { Column, LocaleService } from '@seniorsistemas/angular-components';
4
+ import { ModalInvoicePjBase } from '../modal-invoice-pj-base.class';
5
+ import { IInvoiceLookupResponse } from '../services/agro-invoice/interfaces';
6
+ import { KilogramPipe } from '../../../pipe/kilogram';
7
+ import { LibTranslationService } from '../../../services/lib-translation.service';
8
+ import { AgroInvoiceService } from '../services/agro-invoice';
9
+ import { MessageService } from 'primeng';
10
+ export declare class ModalInvoicePjForOriginationComponent extends ModalInvoicePjBase implements OnInit, OnDestroy {
11
+ translate: LibTranslationService;
12
+ invoiceService: AgroInvoiceService;
13
+ localeService: LocaleService;
14
+ kilogramPipe: KilogramPipe;
15
+ messageService: MessageService;
16
+ options: ModalInvoicePjOptions;
17
+ whenSelectInvoices: EventEmitter<any[]>;
18
+ gridColumns: Partial<Column & {
19
+ sortable?: boolean;
20
+ }>[];
21
+ constructor(translate: LibTranslationService, invoiceService: AgroInvoiceService, localeService: LocaleService, kilogramPipe: KilogramPipe, messageService: MessageService);
22
+ ngOnInit(): void;
23
+ defineGridColumns(): void;
24
+ beforeAdd(selectedInvoices: any): Promise<any>;
25
+ adaptResult(result: IInvoiceLookupResponse): Promise<any>;
26
+ }
@@ -0,0 +1,2 @@
1
+ export declare class ModalInvoicePjForOriginationModule {
2
+ }
@@ -0,0 +1,26 @@
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { ModalInvoicePjOptions } from '../modal-invoice-pj-options.interface';
3
+ import { Column, LocaleService } from '@seniorsistemas/angular-components';
4
+ import { ModalInvoicePjBase } from '../modal-invoice-pj-base.class';
5
+ import { IInvoiceLookupResponse } from '../services/agro-invoice/interfaces';
6
+ import { KilogramPipe } from '../../../pipe/kilogram';
7
+ import { LibTranslationService } from '../../../services/lib-translation.service';
8
+ import { AgroInvoiceService } from '../services/agro-invoice';
9
+ import { MessageService } from 'primeng';
10
+ export declare class ModalInvoicePjForTransferComponent extends ModalInvoicePjBase implements OnInit, OnDestroy {
11
+ translate: LibTranslationService;
12
+ invoiceService: AgroInvoiceService;
13
+ localeService: LocaleService;
14
+ kilogramPipe: KilogramPipe;
15
+ messageService: MessageService;
16
+ options: ModalInvoicePjOptions;
17
+ whenSelectInvoices: EventEmitter<any[]>;
18
+ gridColumns: Partial<Column & {
19
+ sortable?: boolean;
20
+ }>[];
21
+ constructor(translate: LibTranslationService, invoiceService: AgroInvoiceService, localeService: LocaleService, kilogramPipe: KilogramPipe, messageService: MessageService);
22
+ ngOnInit(): void;
23
+ defineGridColumns(): void;
24
+ beforeAdd(selectedInvoices: any): Promise<any>;
25
+ adaptResult(result: IInvoiceLookupResponse): Promise<any>;
26
+ }
@@ -0,0 +1,2 @@
1
+ export declare class ModalInvoicePjForTransferModule {
2
+ }
@@ -0,0 +1,9 @@
1
+ export { ModalInvoicePjForOriginationComponent } from './for-origination/modal-invoice-pj-for-origination.component';
2
+ export { ModalInvoicePjForOriginationModule } from './for-origination/modal-invoice-pj-for-origination.module';
3
+ export { ModalInvoicePjForTransferComponent } from './for-transfer/modal-invoice-pj-for-transfer.component';
4
+ export { ModalInvoicePjForTransferModule } from './for-transfer/modal-invoice-pj-for-transfer.module';
5
+ export { ModalInvoicePjForFixationComponent } from './for-fixation/modal-invoice-pj-for-fixation.component';
6
+ export { ModalInvoicePjForFixationModule } from './for-fixation/modal-invoice-pj-for-fixation.module';
7
+ export { ModalInvoicePjOptions } from './modal-invoice-pj-options.interface';
8
+ export { ModalInvoicePjForFixationOptions } from './for-fixation/modal-fixation-options.interface';
9
+ export { AgroInvoiceModule, AgroInvoiceService } from './services/agro-invoice/index';
@@ -0,0 +1,53 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { LazyLoadEvent, MessageService } from 'primeng';
3
+ import { Subject } from 'rxjs';
4
+ import { FormControl } from '@angular/forms';
5
+ import { ListParams } from '../../services/entity-service';
6
+ import { AgroInvoiceService } from './services/agro-invoice/agro-invoice.service';
7
+ import { ModalInvoicePjOptions } from './modal-invoice-pj-options.interface';
8
+ import { ButtonPriority, Column, LocaleService } from '@seniorsistemas/angular-components';
9
+ import { LibTranslationService } from '../../services/lib-translation.service';
10
+ import { IInvoiceLookupResponse } from './services/agro-invoice/interfaces';
11
+ import { KilogramPipe } from '../../pipe/kilogram';
12
+ export declare abstract class ModalInvoicePjBase {
13
+ protected readonly translate: LibTranslationService;
14
+ protected readonly invoiceService: AgroInvoiceService;
15
+ protected readonly localeService: LocaleService;
16
+ protected readonly kilogramPipe: KilogramPipe;
17
+ protected readonly messageService: MessageService;
18
+ abstract options: ModalInvoicePjOptions;
19
+ abstract whenSelectInvoices: EventEmitter<any[]>;
20
+ abstract gridColumns: Partial<Column & {
21
+ sortable?: boolean;
22
+ }>[];
23
+ gridData: any[];
24
+ buttonPriority: typeof ButtonPriority;
25
+ dontHaveAnyInvoice: boolean;
26
+ gridLoading: boolean;
27
+ gridTotalRecords: number;
28
+ selected: any[];
29
+ unselectedIds: Set<number>;
30
+ visible: boolean;
31
+ searchValue: FormControl;
32
+ protected readonly ngUnsubscribe: Subject<unknown>;
33
+ protected currentParams: ListParams;
34
+ gridFieldValuesMap: {
35
+ [key: string]: (row: any) => any;
36
+ };
37
+ constructor(translate: LibTranslationService, invoiceService: AgroInvoiceService, localeService: LocaleService, kilogramPipe: KilogramPipe, messageService: MessageService);
38
+ ngOnDestroy(): void;
39
+ ngOnInit(): void;
40
+ abstract adaptResult(result: IInvoiceLookupResponse): Promise<any>;
41
+ abstract beforeAdd(selectedInvoices: any): Promise<any>;
42
+ protected whenSearchValueChanges(): void;
43
+ tryToSearchAgain(): void;
44
+ open(): void;
45
+ protected checkIfOptionsIsValid(): boolean;
46
+ private getPagination;
47
+ updateCurrentParams(event: LazyLoadEvent): void;
48
+ updateGridData(event: LazyLoadEvent, searchValue?: string): void;
49
+ cancelPooling(): void;
50
+ add(): Promise<void>;
51
+ protected resetSpecs(): void;
52
+ cancel(): Promise<void>;
53
+ }
@@ -0,0 +1,10 @@
1
+ export interface ModalInvoicePjOptions {
2
+ companyId: string;
3
+ branchId: string;
4
+ producersIds: string[];
5
+ productId: string;
6
+ ruralEstateIds: string[];
7
+ recordStatus?: string;
8
+ issuanceDate?: Date;
9
+ invoiceStatus?: string;
10
+ }
@@ -0,0 +1,8 @@
1
+ import { LibTranslationModule } from '../../lib-translation.module';
2
+ import { CurrencyPipe, DatePipe, DecimalPipe } from '@angular/common';
3
+ import { LocaleModule, LocalizedDatePipe } from '@seniorsistemas/angular-components';
4
+ import { KilogramPipe } from '../../pipe/kilogram';
5
+ export declare const imports: (typeof LibTranslationModule | (import("@angular/compiler/src/core").ModuleWithProviders & {
6
+ ngModule: LocaleModule;
7
+ }))[];
8
+ export declare const providers: (typeof KilogramPipe | typeof DecimalPipe | typeof CurrencyPipe | typeof DatePipe | typeof LocalizedDatePipe)[];
@@ -0,0 +1,2 @@
1
+ export declare class AgroInvoiceModule {
2
+ }
@@ -0,0 +1,16 @@
1
+ import { HttpClient } from "@angular/common/http";
2
+ import { MessageService } from "primeng/api";
3
+ import { AgroEntityService } from "../../../../services/entity-service";
4
+ import { LibTranslationService as TranslateService } from "../../../../services/lib-translation.service";
5
+ import { IInvoiceLookupFilter, IInvoiceLookupResponse } from "./interfaces";
6
+ import { Observable } from "rxjs";
7
+ export declare class AgroInvoiceService extends AgroEntityService<any> {
8
+ protected http: HttpClient;
9
+ protected messageService: MessageService;
10
+ protected translate: TranslateService;
11
+ private readonly pooling;
12
+ constructor(http: HttpClient, messageService: MessageService, translate: TranslateService);
13
+ invoiceLookupFilter(data: IInvoiceLookupFilter): Observable<IInvoiceLookupResponse>;
14
+ cancelActivePooling(): void;
15
+ private pollInvoiceResult;
16
+ }
@@ -0,0 +1,2 @@
1
+ export { AgroInvoiceService } from './agro-invoice.service';
2
+ export { AgroInvoiceModule } from './agro-invoice.module';