@orbe-agro/client-core 5.5.74 → 5.5.76

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 (36) hide show
  1. package/dist/@types/base/@types/api/response/bayer/types.d.ts +7 -0
  2. package/dist/@types/base/@types/api/response/bayer/types.d.ts.map +1 -1
  3. package/dist/@types/base/components/forms/{GenericFomrsSetValue → GenericFormsSetValue}/GenericNumberFormSectionPrice.d.ts.map +1 -1
  4. package/dist/@types/base/components/forms/{GenericFomrsSetValue → GenericFormsSetValue}/GenericStringFormSection.d.ts.map +1 -1
  5. package/dist/@types/base/components/forms/NumberFormVariant/GenericNumberFormSectionDecimalFirst.d.ts +14 -0
  6. package/dist/@types/base/components/forms/NumberFormVariant/GenericNumberFormSectionDecimalFirst.d.ts.map +1 -0
  7. package/dist/@types/base/configs/endpoints.config/bayer/bayer.d.ts +1 -0
  8. package/dist/@types/base/configs/endpoints.config/bayer/bayer.d.ts.map +1 -1
  9. package/dist/@types/base/configs/endpoints.config/bayer/config/entregaBayer.d.ts +1 -0
  10. package/dist/@types/base/configs/endpoints.config/bayer/config/entregaBayer.d.ts.map +1 -1
  11. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +1 -0
  12. package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
  13. package/dist/@types/base/services/modules/bayer/entregaBayerService.d.ts +2 -1
  14. package/dist/@types/base/services/modules/bayer/entregaBayerService.d.ts.map +1 -1
  15. package/dist/base/components/forms/{GenericFomrsSetValue → GenericFormsSetValue}/GenericNumberFormSectionPrice.js.map +1 -1
  16. package/dist/base/components/forms/{GenericFomrsSetValue → GenericFormsSetValue}/GenericStringFormSection.js.map +1 -1
  17. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionDecimalFirst.js +98 -0
  18. package/dist/base/components/forms/NumberFormVariant/GenericNumberFormSectionDecimalFirst.js.map +1 -0
  19. package/dist/base/configs/endpoints.config/bayer/config/entregaBayer.js +2 -1
  20. package/dist/base/configs/endpoints.config/bayer/config/entregaBayer.js.map +1 -1
  21. package/dist/base/index.js +2 -1
  22. package/dist/base/services/index.js +2 -1
  23. package/dist/base/services/modules/bayer/entregaBayerService.js +8 -0
  24. package/dist/base/services/modules/bayer/entregaBayerService.js.map +1 -1
  25. package/dist/base/services/modules/bayer/index.js +2 -1
  26. package/lib/base/@types/api/response/bayer/types.ts +8 -0
  27. package/lib/base/components/forms/NumberFormVariant/GenericNumberFormSectionDecimalFirst.tsx +117 -0
  28. package/lib/base/configs/endpoints.config/bayer/config/entregaBayer.ts +1 -0
  29. package/lib/base/services/modules/bayer/entregaBayerService.ts +10 -1
  30. package/package.json +1 -1
  31. /package/dist/@types/base/components/forms/{GenericFomrsSetValue → GenericFormsSetValue}/GenericNumberFormSectionPrice.d.ts +0 -0
  32. /package/dist/@types/base/components/forms/{GenericFomrsSetValue → GenericFormsSetValue}/GenericStringFormSection.d.ts +0 -0
  33. /package/dist/base/components/forms/{GenericFomrsSetValue → GenericFormsSetValue}/GenericNumberFormSectionPrice.js +0 -0
  34. /package/dist/base/components/forms/{GenericFomrsSetValue → GenericFormsSetValue}/GenericStringFormSection.js +0 -0
  35. /package/lib/base/components/forms/{GenericFomrsSetValue → GenericFormsSetValue}/GenericNumberFormSectionPrice.tsx +0 -0
  36. /package/lib/base/components/forms/{GenericFomrsSetValue → GenericFormsSetValue}/GenericStringFormSection.tsx +0 -0
@@ -66,4 +66,11 @@ export interface ItemAplicarRetencaoResponse {
66
66
  export interface AplicarRetencaoResponse {
67
67
  itens: ItemAplicarRetencaoResponse[];
68
68
  }
69
+ export interface AtualizarQuantidadesEntregaRequest {
70
+ quantidadeEntregue: number;
71
+ quantidadeBaixada: number;
72
+ quantidadePendente: number;
73
+ quantidadeRetida: number;
74
+ quantidadeBaixadaConsumida: number;
75
+ }
69
76
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"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;IACpB,MAAM,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;IACzD,cAAc,EAAE,uBAAuB,CAAC;CACzC;AAED,MAAM,WAAW,kDAAkD;IACjE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,8CAA8C;IAC7D,KAAK,EAAE,kDAAkD,EAAE,CAAC;CAC7D;AAED,MAAM,WAAW,wCAAwC;IACvD,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,oCAAoC;IACnD,wBAAwB,EAAE,MAAM,CAAC;IACjC,KAAK,EAAE,wCAAwC,EAAE,CAAC;CACnD;AAED,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,2BAA2B,EAAE,CAAC;CACtC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/@types/api/response/bayer/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,MAAM,WAAW,gCAAgC;IAC/C,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,qCAAqC;IACpD,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC,uBAAuB,EAAE,MAAM,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,gCAAgC;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,uBAAuB,EAAE,MAAM,CAAC;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AAC;IACjC,KAAK,EAAE,wCAAwC,EAAE,CAAC;CACnD;AAED,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,2BAA2B,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,kCAAkC;IACjD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,0BAA0B,EAAE,MAAM,CAAC;CACpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"GenericNumberFormSectionPrice.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAc,WAAW,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE/D,KAAK,uBAAuB,CAAC,CAAC,SAAS,WAAW,IAC9C,qBAAqB,CAAC,CAAC,CAAC,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAEL,iBAAS,6BAA6B,CAAC,CAAC,SAAS,WAAW,EAAE,EAC1D,OAAO,EACP,MAAM,EACN,MAAM,EACN,IAAI,EACJ,KAAK,EACL,WAAW,EACX,KAAK,EACL,YAAgB,GACnB,EAAE,uBAAuB,CAAC,CAAC,CAAC,2CAqC5B;AAED,eAAe,6BAA6B,CAAA"}
1
+ {"version":3,"file":"GenericNumberFormSectionPrice.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/components/forms/GenericFormsSetValue/GenericNumberFormSectionPrice.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAc,WAAW,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE/D,KAAK,uBAAuB,CAAC,CAAC,SAAS,WAAW,IAC9C,qBAAqB,CAAC,CAAC,CAAC,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAEL,iBAAS,6BAA6B,CAAC,CAAC,SAAS,WAAW,EAAE,EAC1D,OAAO,EACP,MAAM,EACN,MAAM,EACN,IAAI,EACJ,KAAK,EACL,WAAW,EACX,KAAK,EACL,YAAgB,GACnB,EAAE,uBAAuB,CAAC,CAAC,CAAC,2CAqC5B;AAED,eAAe,6BAA6B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"GenericStringFormSection.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAc,WAAW,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE/D,KAAK,uBAAuB,CAAC,CAAC,SAAS,WAAW,IAC9C,qBAAqB,CAAC,CAAC,CAAC,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;CACtB,CAAA;AAEL,iBAAS,wBAAwB,CAAC,CAAC,SAAS,WAAW,EAAE,EACrD,OAAO,EACP,MAAM,EACN,MAAM,EACN,IAAI,EACJ,KAAK,EACL,WAAW,EACX,KAAK,EACR,EAAE,uBAAuB,CAAC,CAAC,CAAC,2CAuB5B;AAED,eAAe,wBAAwB,CAAA"}
1
+ {"version":3,"file":"GenericStringFormSection.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/components/forms/GenericFormsSetValue/GenericStringFormSection.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAc,WAAW,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE/D,KAAK,uBAAuB,CAAC,CAAC,SAAS,WAAW,IAC9C,qBAAqB,CAAC,CAAC,CAAC,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;CACtB,CAAA;AAEL,iBAAS,wBAAwB,CAAC,CAAC,SAAS,WAAW,EAAE,EACrD,OAAO,EACP,MAAM,EACN,MAAM,EACN,IAAI,EACJ,KAAK,EACL,WAAW,EACX,KAAK,EACR,EAAE,uBAAuB,CAAC,CAAC,CAAC,2CAuB5B;AAED,eAAe,wBAAwB,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { IFormSectionBaseProps } from '@base/@types/forms';
2
+ import { FieldValues, Path } from 'react-hook-form';
3
+ type GeneralFormSectionProps<T extends FieldValues> = IFormSectionBaseProps<T> & {
4
+ name: Path<T>;
5
+ label: string;
6
+ placeholder: string;
7
+ decimalScale?: number;
8
+ prefix?: string;
9
+ thousandSeparator?: string;
10
+ decimalSeparator?: string;
11
+ };
12
+ declare function GenericNumberFormSectionDecimalFirst<T extends FieldValues>({ control, errors, isView, name, label, placeholder, decimalScale, prefix, }: GeneralFormSectionProps<T>): import("react/jsx-runtime").JSX.Element;
13
+ export default GenericNumberFormSectionDecimalFirst;
14
+ //# sourceMappingURL=GenericNumberFormSectionDecimalFirst.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericNumberFormSectionDecimalFirst.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/components/forms/NumberFormVariant/GenericNumberFormSectionDecimalFirst.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAE1D,OAAO,EAAc,WAAW,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAG/D,KAAK,uBAAuB,CAAC,CAAC,SAAS,WAAW,IAC9C,qBAAqB,CAAC,CAAC,CAAC,GAAG;IACvB,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC5B,CAAA;AAEL,iBAAS,oCAAoC,CAAC,CAAC,SAAS,WAAW,EAAE,EACjE,OAAO,EACP,MAAM,EACN,MAAM,EACN,IAAI,EACJ,KAAK,EACL,WAAW,EACX,YAAgB,EAChB,MAAW,GACd,EAAE,uBAAuB,CAAC,CAAC,CAAC,2CAwF5B;AAED,eAAe,oCAAoC,CAAA"}
@@ -10,6 +10,7 @@ declare const bayer: {
10
10
  buscarRetorno: () => string;
11
11
  aplicarRetencao: () => string;
12
12
  cancelarEntrega: (id: number) => string;
13
+ atualizarQuantidades: (id: number) => string;
13
14
  };
14
15
  registroEntradaBayer: {
15
16
  buscar: () => string;
@@ -1 +1 @@
1
- {"version":3,"file":"bayer.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/bayer/bayer.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOV,CAAA;AAED,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"bayer.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/configs/endpoints.config/bayer/bayer.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOV,CAAA;AAED,eAAe,KAAK,CAAC"}
@@ -9,6 +9,7 @@ declare const entregaBayer: {
9
9
  buscarRetorno: () => string;
10
10
  aplicarRetencao: () => string;
11
11
  cancelarEntrega: (id: number) => string;
12
+ atualizarQuantidades: (id: number) => string;
12
13
  };
13
14
  export default entregaBayer;
14
15
  //# sourceMappingURL=entregaBayer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entregaBayer.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/bayer/config/entregaBayer.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY;uBACK,MAAM;6BACA,MAAM;sBACb,MAAM;;;;;;;0BAOF,MAAM;CAC/B,CAAA;AAED,eAAe,YAAY,CAAA"}
1
+ {"version":3,"file":"entregaBayer.d.ts","sourceRoot":"","sources":["../../../../../../../lib/base/configs/endpoints.config/bayer/config/entregaBayer.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY;uBACK,MAAM;6BACA,MAAM;sBACb,MAAM;;;;;;;0BAOF,MAAM;+BACD,MAAM;CACpC,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -2491,6 +2491,7 @@ declare const endpointNavigationConfig: {
2491
2491
  buscarRetorno: () => string;
2492
2492
  aplicarRetencao: () => string;
2493
2493
  cancelarEntrega: (id: number) => string;
2494
+ atualizarQuantidades: (id: number) => string;
2494
2495
  };
2495
2496
  registroEntradaBayer: {
2496
2497
  buscar: () => string;
@@ -1 +1 @@
1
- {"version":3,"file":"endpoints.navigation.d.ts","sourceRoot":"","sources":["../../../../../lib/base/configs/endpoints.config/endpoints.navigation.ts"],"names":[],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AAe,wBAAwB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { TQueryResponse } from "@base/@types/api";
2
2
  import { TFindAllEntregaBayerResponse } from "@base/@types/api/response/bayer/TFindAllEntregaBayerResponse";
3
- import { EntregaResponse, FindEntregaFilterRequest, SomatorioEntregaResponse, FindEntregaResponse, QuantidadeConsumidaPorSaldoEntradaGraosRequest, QuantidadeASerRetidaPorSaldoResponse, AplicarRetencaoResponse } from "@base/@types/api/response/bayer/types";
3
+ import { EntregaResponse, FindEntregaFilterRequest, SomatorioEntregaResponse, FindEntregaResponse, QuantidadeConsumidaPorSaldoEntradaGraosRequest, QuantidadeASerRetidaPorSaldoResponse, AplicarRetencaoResponse, AtualizarQuantidadesEntregaRequest } from "@base/@types/api/response/bayer/types";
4
4
  export declare function apiFindAllEntregaBayer(params?: string): Promise<TQueryResponse<TFindAllEntregaBayerResponse>>;
5
5
  export declare function apiCreateEntrega(saldoId: number): Promise<EntregaResponse>;
6
6
  export declare function apiEnviarEntregaBayer(id: number): Promise<void>;
@@ -11,4 +11,5 @@ export declare function apiCalcularRetencao(data: QuantidadeConsumidaPorSaldoEnt
11
11
  export declare function apiBuscarRetornoEntregas(): Promise<void>;
12
12
  export declare function apiAplicarRetencao(data: QuantidadeConsumidaPorSaldoEntradaGraosRequest): Promise<AplicarRetencaoResponse>;
13
13
  export declare function apiCancelarEntregaBayer(id: number): Promise<void>;
14
+ export declare function apiAtualizarQuantidadesEntrega(id: number, data: AtualizarQuantidadesEntregaRequest): Promise<FindEntregaResponse>;
14
15
  //# sourceMappingURL=entregaBayerService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entregaBayerService.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/services/modules/bayer/entregaBayerService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,4BAA4B,EAAE,MAAM,8DAA8D,CAAC;AAE5G,OAAO,EACH,eAAe,EACf,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,8CAA8C,EAC9C,oCAAoC,EACpC,uBAAuB,EAC1B,MAAM,uCAAuC,CAAC;AAI/C,wBAAsB,sBAAsB,CAAC,MAAM,CAAC,EAAE,MAAM,yDAK3D;AAED,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,MAAM,4BAKrD;AAED,wBAAsB,qBAAqB,CAAC,EAAE,EAAE,MAAM,iBAKrD;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,wBAAwB,qCAMvE;AAED,wBAAsB,cAAc,CAAC,IAAI,EAAE,wBAAwB,kCAMlE;AAED,wBAAsB,yBAAyB,kBAK9C;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,8CAA8C,iDAM7F;AAED,wBAAsB,wBAAwB,kBAK7C;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,8CAA8C,oCAM5F;AAED,wBAAsB,uBAAuB,CAAC,EAAE,EAAE,MAAM,iBAKvD"}
1
+ {"version":3,"file":"entregaBayerService.d.ts","sourceRoot":"","sources":["../../../../../../lib/base/services/modules/bayer/entregaBayerService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,4BAA4B,EAAE,MAAM,8DAA8D,CAAC;AAE5G,OAAO,EACH,eAAe,EACf,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,8CAA8C,EAC9C,oCAAoC,EACpC,uBAAuB,EACvB,kCAAkC,EACrC,MAAM,uCAAuC,CAAC;AAI/C,wBAAsB,sBAAsB,CAAC,MAAM,CAAC,EAAE,MAAM,yDAK3D;AAED,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,MAAM,4BAKrD;AAED,wBAAsB,qBAAqB,CAAC,EAAE,EAAE,MAAM,iBAKrD;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,wBAAwB,qCAMvE;AAED,wBAAsB,cAAc,CAAC,IAAI,EAAE,wBAAwB,kCAMlE;AAED,wBAAsB,yBAAyB,kBAK9C;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,8CAA8C,iDAM7F;AAED,wBAAsB,wBAAwB,kBAK7C;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,8CAA8C,oCAM5F;AAED,wBAAsB,uBAAuB,CAAC,EAAE,EAAE,MAAM,iBAKvD;AAED,wBAAsB,8BAA8B,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kCAAkC,gCAMxG"}
@@ -1 +1 @@
1
- {"version":3,"file":"GenericNumberFormSectionPrice.js","sources":["../../../../../lib/base/components/forms/GenericFomrsSetValue/GenericNumberFormSectionPrice.tsx"],"sourcesContent":["import { NumericInput } from '@/components/shared'\nimport { FormItem } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n value: number\n name: Path<T>\n label: string\n placeholder: string\n decimalScale?: number\n }\n\nfunction GenericNumberFormSectionPrice<T extends FieldValues>({\n control,\n errors,\n isView,\n name,\n label,\n placeholder,\n value,\n decimalScale = 2,\n}: GeneralFormSectionProps<T>) {\n return (\n <>\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={errors?.[name]?.message as string}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <NumericInput\n thousandSeparator=\".\"\n decimalSeparator=\",\"\n prefix=\"R$ \"\n type=\"text\"\n autoComplete=\"off\"\n placeholder=\"R$ 0,00\"\n displayType=\"input\"\n disabled={isView}\n decimalScale={decimalScale}\n fixedDecimalScale\n // importante: não espalhar {...field}, porque ele injeta onChange errado\n value={field.value ?? 0}\n onValueChange={(values) => {\n field.onChange(values.floatValue ?? 0) // só o float vai para o form\n }}\n // se precisar de blur/focus, pega manualmente\n onBlur={field.onBlur}\n name={field.name}\n />\n )}\n />\n </FormItem>\n </>\n )\n}\n\nexport default GenericNumberFormSectionPrice\n"],"names":[],"mappings":";;;;;;AAcA,SAAS,8BAAqD;AAAA,EAC1D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAe;AACnB,GAA+B;AAC3B,SACI,oBAAA,UAAA,EACI,UAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACG;AAAA,MACA,SAAS,QAAQ,SAAS,IAAI,CAAC;AAAA,MAC/B,cAAc,SAAS,IAAI,GAAG;AAAA,MAE9B,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACG;AAAA,UACA;AAAA,UACA,QAAQ,CAAC,EAAE,MAAA,MACP;AAAA,YAAC;AAAA,YAAA;AAAA,cACG,mBAAkB;AAAA,cAClB,kBAAiB;AAAA,cACjB,QAAO;AAAA,cACP,MAAK;AAAA,cACL,cAAa;AAAA,cACb,aAAY;AAAA,cACZ,aAAY;AAAA,cACZ,UAAU;AAAA,cACV;AAAA,cACA,mBAAiB;AAAA,cAEjB,OAAO,MAAM,SAAS;AAAA,cACtB,eAAe,CAAC,WAAW;AACvB,sBAAM,SAAS,OAAO,cAAc,CAAC;AAAA,cACzC;AAAA,cAEA,QAAQ,MAAM;AAAA,cACd,MAAM,MAAM;AAAA,YAAA;AAAA,UAAA;AAAA,QAChB;AAAA,MAAA;AAAA,IAER;AAAA,EAAA,GAER;AAER;"}
1
+ {"version":3,"file":"GenericNumberFormSectionPrice.js","sources":["../../../../../lib/base/components/forms/GenericFormsSetValue/GenericNumberFormSectionPrice.tsx"],"sourcesContent":["import { NumericInput } from '@/components/shared'\nimport { FormItem } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n value: number\n name: Path<T>\n label: string\n placeholder: string\n decimalScale?: number\n }\n\nfunction GenericNumberFormSectionPrice<T extends FieldValues>({\n control,\n errors,\n isView,\n name,\n label,\n placeholder,\n value,\n decimalScale = 2,\n}: GeneralFormSectionProps<T>) {\n return (\n <>\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={errors?.[name]?.message as string}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <NumericInput\n thousandSeparator=\".\"\n decimalSeparator=\",\"\n prefix=\"R$ \"\n type=\"text\"\n autoComplete=\"off\"\n placeholder=\"R$ 0,00\"\n displayType=\"input\"\n disabled={isView}\n decimalScale={decimalScale}\n fixedDecimalScale\n // importante: não espalhar {...field}, porque ele injeta onChange errado\n value={field.value ?? 0}\n onValueChange={(values) => {\n field.onChange(values.floatValue ?? 0) // só o float vai para o form\n }}\n // se precisar de blur/focus, pega manualmente\n onBlur={field.onBlur}\n name={field.name}\n />\n )}\n />\n </FormItem>\n </>\n )\n}\n\nexport default GenericNumberFormSectionPrice\n"],"names":[],"mappings":";;;;;;AAcA,SAAS,8BAAqD;AAAA,EAC1D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAe;AACnB,GAA+B;AAC3B,SACI,oBAAA,UAAA,EACI,UAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACG;AAAA,MACA,SAAS,QAAQ,SAAS,IAAI,CAAC;AAAA,MAC/B,cAAc,SAAS,IAAI,GAAG;AAAA,MAE9B,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACG;AAAA,UACA;AAAA,UACA,QAAQ,CAAC,EAAE,MAAA,MACP;AAAA,YAAC;AAAA,YAAA;AAAA,cACG,mBAAkB;AAAA,cAClB,kBAAiB;AAAA,cACjB,QAAO;AAAA,cACP,MAAK;AAAA,cACL,cAAa;AAAA,cACb,aAAY;AAAA,cACZ,aAAY;AAAA,cACZ,UAAU;AAAA,cACV;AAAA,cACA,mBAAiB;AAAA,cAEjB,OAAO,MAAM,SAAS;AAAA,cACtB,eAAe,CAAC,WAAW;AACvB,sBAAM,SAAS,OAAO,cAAc,CAAC;AAAA,cACzC;AAAA,cAEA,QAAQ,MAAM;AAAA,cACd,MAAM,MAAM;AAAA,YAAA;AAAA,UAAA;AAAA,QAChB;AAAA,MAAA;AAAA,IAER;AAAA,EAAA,GAER;AAER;"}
@@ -1 +1 @@
1
- {"version":3,"file":"GenericStringFormSection.js","sources":["../../../../../lib/base/components/forms/GenericFomrsSetValue/GenericStringFormSection.tsx"],"sourcesContent":["import { FormItem, Input } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n value: string\n name: Path<T>\n label: string\n placeholder: string\n }\n\nfunction GenericStringFormSection<T extends FieldValues>({\n control,\n errors,\n isView,\n name,\n label,\n placeholder,\n value\n}: GeneralFormSectionProps<T>) {\n return (\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={errors?.[name]?.message as string}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <Input\n required\n disabled={isView}\n type=\"text\"\n placeholder={placeholder}\n {...field}\n value={value}\n />\n )}\n />\n </FormItem>\n )\n}\n\nexport default GenericStringFormSection"],"names":[],"mappings":";;;;;AAYA,SAAS,yBAAgD;AAAA,EACrD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,GAA+B;AAC3B,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG;AAAA,MACA,SAAS,QAAQ,SAAS,IAAI,CAAC;AAAA,MAC/B,cAAc,SAAS,IAAI,GAAG;AAAA,MAE9B,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACG;AAAA,UACA;AAAA,UACA,QAAQ,CAAC,EAAE,MAAA,MACP;AAAA,YAAC;AAAA,YAAA;AAAA,cACG,UAAQ;AAAA,cACR,UAAU;AAAA,cACV,MAAK;AAAA,cACL;AAAA,cACC,GAAG;AAAA,cACJ;AAAA,YAAA;AAAA,UAAA;AAAA,QACJ;AAAA,MAAA;AAAA,IAER;AAAA,EAAA;AAGZ;"}
1
+ {"version":3,"file":"GenericStringFormSection.js","sources":["../../../../../lib/base/components/forms/GenericFormsSetValue/GenericStringFormSection.tsx"],"sourcesContent":["import { FormItem, Input } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n value: string\n name: Path<T>\n label: string\n placeholder: string\n }\n\nfunction GenericStringFormSection<T extends FieldValues>({\n control,\n errors,\n isView,\n name,\n label,\n placeholder,\n value\n}: GeneralFormSectionProps<T>) {\n return (\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={errors?.[name]?.message as string}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => (\n <Input\n required\n disabled={isView}\n type=\"text\"\n placeholder={placeholder}\n {...field}\n value={value}\n />\n )}\n />\n </FormItem>\n )\n}\n\nexport default GenericStringFormSection"],"names":[],"mappings":";;;;;AAYA,SAAS,yBAAgD;AAAA,EACrD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,GAA+B;AAC3B,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG;AAAA,MACA,SAAS,QAAQ,SAAS,IAAI,CAAC;AAAA,MAC/B,cAAc,SAAS,IAAI,GAAG;AAAA,MAE9B,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACG;AAAA,UACA;AAAA,UACA,QAAQ,CAAC,EAAE,MAAA,MACP;AAAA,YAAC;AAAA,YAAA;AAAA,cACG,UAAQ;AAAA,cACR,UAAU;AAAA,cACV,MAAK;AAAA,cACL;AAAA,cACC,GAAG;AAAA,cACJ;AAAA,YAAA;AAAA,UAAA;AAAA,QACJ;AAAA,MAAA;AAAA,IAER;AAAA,EAAA;AAGZ;"}
@@ -0,0 +1,98 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import "../../../../@ecme/components/ui/index.js";
3
+ import { Controller } from "react-hook-form";
4
+ import { useState, useCallback, useEffect } from "react";
5
+ import FormItem from "../../../../@ecme/components/ui/Form/FormItem.js";
6
+ import Input from "../../../../@ecme/components/ui/Input/Input.js";
7
+ function GenericNumberFormSectionDecimalFirst({
8
+ control,
9
+ errors,
10
+ isView,
11
+ name,
12
+ label,
13
+ placeholder,
14
+ decimalScale = 2,
15
+ prefix = ""
16
+ }) {
17
+ const [displayValue, setDisplayValue] = useState("");
18
+ const formatValue = useCallback((input, decimals) => {
19
+ const numbersOnly = input.replace(/\D/g, "");
20
+ if (numbersOnly === "") {
21
+ return { display: "", value: 0 };
22
+ }
23
+ const numericValue = parseInt(numbersOnly, 10) / Math.pow(10, decimals);
24
+ const formatted = new Intl.NumberFormat("pt-BR", {
25
+ minimumFractionDigits: decimals,
26
+ maximumFractionDigits: decimals
27
+ }).format(numericValue);
28
+ return {
29
+ display: `${prefix}${formatted}`,
30
+ value: numericValue
31
+ };
32
+ }, [prefix]);
33
+ const handleInputChange = useCallback((inputValue, onChange, decimals) => {
34
+ const { display, value } = formatValue(inputValue, decimals);
35
+ setDisplayValue(display);
36
+ onChange(value);
37
+ }, [formatValue]);
38
+ const handleKeyDown = useCallback((e) => {
39
+ const allowedKeys = [
40
+ "Backspace",
41
+ "Delete",
42
+ "Tab",
43
+ "Escape",
44
+ "Enter",
45
+ "ArrowLeft",
46
+ "ArrowRight",
47
+ "ArrowUp",
48
+ "ArrowDown"
49
+ ];
50
+ if (allowedKeys.includes(e.key) || e.key >= "0" && e.key <= "9") {
51
+ return;
52
+ }
53
+ e.preventDefault();
54
+ }, []);
55
+ return /* @__PURE__ */ jsx(
56
+ FormItem,
57
+ {
58
+ label,
59
+ invalid: Boolean(errors?.[name]),
60
+ errorMessage: errors?.[name]?.message,
61
+ children: /* @__PURE__ */ jsx(
62
+ Controller,
63
+ {
64
+ name,
65
+ control,
66
+ render: ({ field }) => {
67
+ useEffect(() => {
68
+ if (field.value !== void 0 && field.value !== null && displayValue === "") {
69
+ const valueAsIntString = Math.round(field.value * Math.pow(10, decimalScale)).toString();
70
+ const { display } = formatValue(valueAsIntString, decimalScale);
71
+ setDisplayValue(display);
72
+ }
73
+ }, [field.value, decimalScale, formatValue]);
74
+ return /* @__PURE__ */ jsx(
75
+ Input,
76
+ {
77
+ type: "text",
78
+ autoComplete: "off",
79
+ placeholder,
80
+ value: displayValue,
81
+ disabled: isView,
82
+ onChange: (e) => {
83
+ handleInputChange(e.target.value, field.onChange, decimalScale);
84
+ },
85
+ onKeyDown: handleKeyDown,
86
+ onBlur: field.onBlur
87
+ }
88
+ );
89
+ }
90
+ }
91
+ )
92
+ }
93
+ );
94
+ }
95
+ export {
96
+ GenericNumberFormSectionDecimalFirst as default
97
+ };
98
+ //# sourceMappingURL=GenericNumberFormSectionDecimalFirst.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericNumberFormSectionDecimalFirst.js","sources":["../../../../../lib/base/components/forms/NumberFormVariant/GenericNumberFormSectionDecimalFirst.tsx"],"sourcesContent":["import { FormItem } from '@/components/ui'\nimport { IFormSectionBaseProps } from '@base/@types/forms'\nimport { Input } from '@/components/ui'\nimport { Controller, FieldValues, Path } from 'react-hook-form'\nimport { useState, useCallback, useEffect } from 'react'\n\ntype GeneralFormSectionProps<T extends FieldValues> =\n IFormSectionBaseProps<T> & {\n name: Path<T>\n label: string\n placeholder: string\n decimalScale?: number\n prefix?: string\n thousandSeparator?: string\n decimalSeparator?: string\n }\n\nfunction GenericNumberFormSectionDecimalFirst<T extends FieldValues>({\n control,\n errors,\n isView,\n name,\n label,\n placeholder,\n decimalScale = 2,\n prefix = '',\n}: GeneralFormSectionProps<T>) {\n const [displayValue, setDisplayValue] = useState('')\n\n // Função core de formatação\n const formatValue = useCallback((input: string, decimals: number): { display: string; value: number } => {\n // Remove tudo que não é dígito\n const numbersOnly = input.replace(/\\D/g, '')\n \n if (numbersOnly === '') {\n return { display: '', value: 0 }\n }\n\n // Converte para número real (ex: \"50002\" com 5 decimais vira 0.50002)\n const numericValue = parseInt(numbersOnly, 10) / Math.pow(10, decimals)\n \n // Formata usando o padrão brasileiro\n const formatted = new Intl.NumberFormat('pt-BR', {\n minimumFractionDigits: decimals,\n maximumFractionDigits: decimals,\n }).format(numericValue)\n\n return { \n display: `${prefix}${formatted}`, \n value: numericValue \n }\n }, [prefix])\n\n const handleInputChange = useCallback((\n inputValue: string,\n onChange: (value: number) => void,\n decimals: number\n ) => {\n const { display, value } = formatValue(inputValue, decimals)\n setDisplayValue(display)\n onChange(value)\n }, [formatValue])\n\n const handleKeyDown = useCallback((e: React.KeyboardEvent<HTMLInputElement>) => {\n const allowedKeys = [\n 'Backspace', 'Delete', 'Tab', 'Escape', 'Enter',\n 'ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown'\n ]\n \n if (allowedKeys.includes(e.key) || (e.key >= '0' && e.key <= '9')) {\n return\n }\n \n e.preventDefault()\n }, [])\n\n return (\n <FormItem\n label={label}\n invalid={Boolean(errors?.[name])}\n errorMessage={errors?.[name]?.message as string}\n >\n <Controller\n name={name}\n control={control}\n render={({ field }) => {\n // Sincronização inicial: converte o valor numérico do banco para a máscara\n useEffect(() => {\n if (field.value !== undefined && field.value !== null && displayValue === '') {\n // Transforma o número em string de dígitos puros respeitando a escala\n const valueAsIntString = Math.round(field.value * Math.pow(10, decimalScale)).toString()\n const { display } = formatValue(valueAsIntString, decimalScale)\n setDisplayValue(display)\n }\n }, [field.value, decimalScale, formatValue])\n\n return (\n <Input\n type=\"text\"\n autoComplete=\"off\"\n placeholder={placeholder}\n value={displayValue}\n disabled={isView}\n onChange={(e) => {\n handleInputChange(e.target.value, field.onChange, decimalScale)\n }}\n onKeyDown={handleKeyDown}\n onBlur={field.onBlur}\n />\n )\n }}\n />\n </F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AEL,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG;AAAA,MACA,SAAS,QAAQ,SAAS,IAAI,CAAC;AAAA,MAC/B,cAAc,SAAS,IAAI,GAAG;AAAA,MAE9B,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACG;AAAA,UACA;AAAA,UACA,QAAQ,CAAC,EAAE,YAAY;AAEnB,sBAAU,MAAM;AACZ,kBAAI,MAAM,UAAU,UAAa,MAAM,UAAU,QAAQ,iBAAiB,IAAI;AAE1E,sBAAM,mBAAmB,KAAK,MAAM,MAAM,QAAQ,KAAK,IAAI,IAAI,YAAY,CAAC,EAAE,SAAA;AAC9E,sBAAM,EAAE,QAAA,IAAY,YAAY,kBAAkB,YAAY;AAC9D,gCAAgB,OAAO;AAAA,cAC3B;AAAA,YACJ,GAAG,CAAC,MAAM,OAAO,cAAc,WAAW,CAAC;AAE3C,mBACI;AAAA,cAAC;AAAA,cAAA;AAAA,gBACG,MAAK;AAAA,gBACL,cAAa;AAAA,gBACb;AAAA,gBACA,OAAO;AAAA,gBACP,UAAU;AAAA,gBACV,UAAU,CAAC,MAAM;AACb,oCAAkB,EAAE,OAAO,OAAO,MAAM,UAAU,YAAY;AAAA,gBAClE;AAAA,gBACA,WAAW;AAAA,gBACX,QAAQ,MAAM;AAAA,cAAA;AAAA,YAAA;AAAA,UAG1B;AAAA,QAAA;AAAA,MAAA;AAAA,IACJ;AAAA,EAAA;AAGZ;"}
@@ -8,7 +8,8 @@ const entregaBayer = {
8
8
  calcularRetencao: () => "/bayer/api/entregas/calcular-retencao",
9
9
  buscarRetorno: () => "/bayer/api/entregas/buscar-retorno",
10
10
  aplicarRetencao: () => "/bayer/api/entregas/aplicar-retencao",
11
- cancelarEntrega: (id) => `/bayer/api/entregas/${id}/cancelar`
11
+ cancelarEntrega: (id) => `/bayer/api/entregas/${id}/cancelar`,
12
+ atualizarQuantidades: (id) => `/bayer/api/entregas/${id}/quantidades`
12
13
  };
13
14
  export {
14
15
  entregaBayer as default
@@ -1 +1 @@
1
- {"version":3,"file":"entregaBayer.js","sources":["../../../../../../lib/base/configs/endpoints.config/bayer/config/entregaBayer.ts"],"sourcesContent":["const entregaBayer = {\n findAll: (params?: string) => `/bayer/api/entregas?${params ?? ''}`,\n createEntrega: (saldoId: number) => `/bayer/api/entregas/${saldoId}`,\n enviarBayer: (id: number) => `/bayer/api/entregas/${id}/enviar-bayer`,\n somatorio: () => '/bayer/api/entregas/somatorio',\n find: () => '/bayer/api/entregas/find',\n enviarBayerLote: () => '/bayer/api/entregas/enviar-bayer-lote',\n calcularRetencao: () => '/bayer/api/entregas/calcular-retencao',\n buscarRetorno: () => '/bayer/api/entregas/buscar-retorno',\n aplicarRetencao: () => '/bayer/api/entregas/aplicar-retencao',\n cancelarEntrega: (id: number) => `/bayer/api/entregas/${id}/cancelar`,\n}\n\nexport default entregaBayer\n"],"names":[],"mappings":"AAAA,MAAM,eAAe;AAAA,EACjB,SAAS,CAAC,WAAoB,uBAAuB,UAAU,EAAE;AAAA,EACjE,eAAe,CAAC,YAAoB,uBAAuB,OAAO;AAAA,EAClE,aAAa,CAAC,OAAe,uBAAuB,EAAE;AAAA,EACtD,WAAW,MAAM;AAAA,EACjB,MAAM,MAAM;AAAA,EACZ,iBAAiB,MAAM;AAAA,EACvB,kBAAkB,MAAM;AAAA,EACxB,eAAe,MAAM;AAAA,EACrB,iBAAiB,MAAM;AAAA,EACvB,iBAAiB,CAAC,OAAe,uBAAuB,EAAE;AAC9D;"}
1
+ {"version":3,"file":"entregaBayer.js","sources":["../../../../../../lib/base/configs/endpoints.config/bayer/config/entregaBayer.ts"],"sourcesContent":["const entregaBayer = {\n findAll: (params?: string) => `/bayer/api/entregas?${params ?? ''}`,\n createEntrega: (saldoId: number) => `/bayer/api/entregas/${saldoId}`,\n enviarBayer: (id: number) => `/bayer/api/entregas/${id}/enviar-bayer`,\n somatorio: () => '/bayer/api/entregas/somatorio',\n find: () => '/bayer/api/entregas/find',\n enviarBayerLote: () => '/bayer/api/entregas/enviar-bayer-lote',\n calcularRetencao: () => '/bayer/api/entregas/calcular-retencao',\n buscarRetorno: () => '/bayer/api/entregas/buscar-retorno',\n aplicarRetencao: () => '/bayer/api/entregas/aplicar-retencao',\n cancelarEntrega: (id: number) => `/bayer/api/entregas/${id}/cancelar`,\n atualizarQuantidades: (id: number) => `/bayer/api/entregas/${id}/quantidades`,\n}\n\nexport default entregaBayer\n"],"names":[],"mappings":"AAAA,MAAM,eAAe;AAAA,EACjB,SAAS,CAAC,WAAoB,uBAAuB,UAAU,EAAE;AAAA,EACjE,eAAe,CAAC,YAAoB,uBAAuB,OAAO;AAAA,EAClE,aAAa,CAAC,OAAe,uBAAuB,EAAE;AAAA,EACtD,WAAW,MAAM;AAAA,EACjB,MAAM,MAAM;AAAA,EACZ,iBAAiB,MAAM;AAAA,EACvB,kBAAkB,MAAM;AAAA,EACxB,eAAe,MAAM;AAAA,EACrB,iBAAiB,MAAM;AAAA,EACvB,iBAAiB,CAAC,OAAe,uBAAuB,EAAE;AAAA,EAC1D,sBAAsB,CAAC,OAAe,uBAAuB,EAAE;AACnE;"}
@@ -63,7 +63,7 @@ import { apiAddTermoFundeinfra, apiAprovarTermoFundeinfra, apiCancelarTermoFunde
63
63
  import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural, apiFindMonitorTermoFunrural, apiGetTermoFunrural, apiReabrirTermoFunrural, apiReprovarTermoFunrural, apiUploadArquivoAssinado } from "./services/modules/originacao/termoFunrural/termoFunruralService.js";
64
64
  import { apiAddTipoCarga, apiFindAllTipoCarga, apiGetCodigoTipoCarga, apiGetTipoCarga, apiUpdateTipoCarga } from "./services/modules/transportadora/TiposCarga/TipoCargaService.js";
65
65
  import { apiAddVolumeProducaoSeloSocial, apiFindMonitorVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocialBySafraId, apiUpdateVolumeProducaoSeloSocial } from "./services/modules/originacao/adm/volumeProducaoSeloSocial/VolumeProducaoSeloSocialService.js";
66
- import { apiAplicarRetencao, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCancelarEntregaBayer, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiSomatorioEntrega } from "./services/modules/bayer/entregaBayerService.js";
66
+ import { apiAplicarRetencao, apiAtualizarQuantidadesEntrega, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCancelarEntregaBayer, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiSomatorioEntrega } from "./services/modules/bayer/entregaBayerService.js";
67
67
  import { apiBuscarEntradaGraos } from "./services/modules/bayer/registroEntradaBayerService.js";
68
68
  import { apiBuscarPendencias, apiBuscarPendenciasBayer, apiBuscarStatusConsumo, apiBuscarStatusFixacao } from "./services/modules/bayer/pendenciaBayerService.js";
69
69
  import { apiCancelContratoCompraGraos, apiCreateContratoCompraGraos, apiEditContratoCompraGraos, apiFindAllContratoCompraGraos, apiFindByIdContratoCompraGraos, apiFindHistoricoByIdContratoCompraGraos, apiFindSaldoByIdContratoCompraGraos, apiGeneratePdfContratoCompraGraos, apiUpdateStatusContratoCompraGraos, apiUploadContrato } from "./services/modules/originacao/contratoCompraGraos/contratoCompraGraosService.js";
@@ -284,6 +284,7 @@ export {
284
284
  apiAprovarRacaoPedidoVenda,
285
285
  apiAprovarTermoFundeinfra,
286
286
  apiAprovarTermoFunrural,
287
+ apiAtualizarQuantidadesEntrega,
287
288
  apiBuscarEntradaGraos,
288
289
  apiBuscarPendencias,
289
290
  apiBuscarPendenciasBayer,
@@ -63,7 +63,7 @@ import { apiAddTermoFundeinfra, apiAprovarTermoFundeinfra, apiCancelarTermoFunde
63
63
  import { apiAddTermoFunrural, apiAprovarTermoFunrural, apiCancelarTermoFunrural, apiFindMonitorTermoFunrural, apiGetTermoFunrural, apiReabrirTermoFunrural, apiReprovarTermoFunrural, apiUploadArquivoAssinado } from "./modules/originacao/termoFunrural/termoFunruralService.js";
64
64
  import { apiAddTipoCarga, apiFindAllTipoCarga, apiGetCodigoTipoCarga, apiGetTipoCarga, apiUpdateTipoCarga } from "./modules/transportadora/TiposCarga/TipoCargaService.js";
65
65
  import { apiAddVolumeProducaoSeloSocial, apiFindMonitorVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocial, apiGetVolumeProducaoSeloSocialBySafraId, apiUpdateVolumeProducaoSeloSocial } from "./modules/originacao/adm/volumeProducaoSeloSocial/VolumeProducaoSeloSocialService.js";
66
- import { apiAplicarRetencao, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCancelarEntregaBayer, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiSomatorioEntrega } from "./modules/bayer/entregaBayerService.js";
66
+ import { apiAplicarRetencao, apiAtualizarQuantidadesEntrega, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCancelarEntregaBayer, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiSomatorioEntrega } from "./modules/bayer/entregaBayerService.js";
67
67
  import { apiBuscarEntradaGraos } from "./modules/bayer/registroEntradaBayerService.js";
68
68
  import { apiBuscarPendencias, apiBuscarPendenciasBayer, apiBuscarStatusConsumo, apiBuscarStatusFixacao } from "./modules/bayer/pendenciaBayerService.js";
69
69
  import { apiCancelContratoCompraGraos, apiCreateContratoCompraGraos, apiEditContratoCompraGraos, apiFindAllContratoCompraGraos, apiFindByIdContratoCompraGraos, apiFindHistoricoByIdContratoCompraGraos, apiFindSaldoByIdContratoCompraGraos, apiGeneratePdfContratoCompraGraos, apiUpdateStatusContratoCompraGraos, apiUploadContrato } from "./modules/originacao/contratoCompraGraos/contratoCompraGraosService.js";
@@ -176,6 +176,7 @@ export {
176
176
  apiAprovarRacaoPedidoVenda,
177
177
  apiAprovarTermoFundeinfra,
178
178
  apiAprovarTermoFunrural,
179
+ apiAtualizarQuantidadesEntrega,
179
180
  apiBuscarEntradaGraos,
180
181
  apiBuscarPendencias,
181
182
  apiBuscarPendenciasBayer,
@@ -65,8 +65,16 @@ async function apiCancelarEntregaBayer(id) {
65
65
  method: "post"
66
66
  });
67
67
  }
68
+ async function apiAtualizarQuantidadesEntrega(id, data) {
69
+ return ApiService.fetchDataWithAxios({
70
+ url: ENTREGA_BAYER_ENDPOINT.atualizarQuantidades(id),
71
+ method: "put",
72
+ data
73
+ });
74
+ }
68
75
  export {
69
76
  apiAplicarRetencao,
77
+ apiAtualizarQuantidadesEntrega,
70
78
  apiBuscarRetornoEntregas,
71
79
  apiCalcularRetencao,
72
80
  apiCancelarEntregaBayer,
@@ -1 +1 @@
1
- {"version":3,"file":"entregaBayerService.js","sources":["../../../../../lib/base/services/modules/bayer/entregaBayerService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { TQueryResponse } from \"@base/@types/api\";\nimport { TFindAllEntregaBayerResponse } from \"@base/@types/api/response/bayer/TFindAllEntregaBayerResponse\";\nimport endpointNavigationConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport {\n EntregaResponse,\n FindEntregaFilterRequest,\n SomatorioEntregaResponse,\n FindEntregaResponse,\n QuantidadeConsumidaPorSaldoEntradaGraosRequest,\n QuantidadeASerRetidaPorSaldoResponse,\n AplicarRetencaoResponse\n} from \"@base/@types/api/response/bayer/types\";\n\nconst ENTREGA_BAYER_ENDPOINT = endpointNavigationConfig.bayer.entregaBayer;\n\nexport async function apiFindAllEntregaBayer(params?: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindAllEntregaBayerResponse>>({\n url: ENTREGA_BAYER_ENDPOINT.findAll(params),\n method: \"get\",\n });\n}\n\nexport async function apiCreateEntrega(saldoId: number) {\n return ApiService.fetchDataWithAxios<EntregaResponse>({\n url: ENTREGA_BAYER_ENDPOINT.createEntrega(saldoId),\n method: 'post',\n });\n}\n\nexport async function apiEnviarEntregaBayer(id: number) {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.enviarBayer(id),\n method: 'post',\n });\n}\n\nexport async function apiSomatorioEntrega(data: FindEntregaFilterRequest) {\n return ApiService.fetchDataWithAxios<SomatorioEntregaResponse, FindEntregaFilterRequest>({\n url: ENTREGA_BAYER_ENDPOINT.somatorio(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiFindEntrega(data: FindEntregaFilterRequest) {\n return ApiService.fetchDataWithAxios<FindEntregaResponse[], FindEntregaFilterRequest>({\n url: ENTREGA_BAYER_ENDPOINT.find(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiEnviarEntregaBayerLote() {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.enviarBayerLote(),\n method: 'post',\n });\n}\n\nexport async function apiCalcularRetencao(data: QuantidadeConsumidaPorSaldoEntradaGraosRequest) {\n return ApiService.fetchDataWithAxios<QuantidadeASerRetidaPorSaldoResponse, QuantidadeConsumidaPorSaldoEntradaGraosRequest>({\n url: ENTREGA_BAYER_ENDPOINT.calcularRetencao(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiBuscarRetornoEntregas() {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.buscarRetorno(),\n method: 'post',\n });\n}\n\nexport async function apiAplicarRetencao(data: QuantidadeConsumidaPorSaldoEntradaGraosRequest) {\n return ApiService.fetchDataWithAxios<AplicarRetencaoResponse, QuantidadeConsumidaPorSaldoEntradaGraosRequest>({\n url: ENTREGA_BAYER_ENDPOINT.aplicarRetencao(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiCancelarEntregaBayer(id: number) {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.cancelarEntrega(id),\n method: 'post',\n });\n}\n"],"names":[],"mappings":";;AAcA,MAAM,yBAAyB,yBAAyB,MAAM;AAE9D,eAAsB,uBAAu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AACtD,SAAO,WAAW,mBAAyB;AAAA,IACvC,KAAK,uBAAuB,gBAAgB,EAAE;AAAA,IAC9C,QAAQ;AAAA,EAAA,CACX;AACL;"}
1
+ {"version":3,"file":"entregaBayerService.js","sources":["../../../../../lib/base/services/modules/bayer/entregaBayerService.ts"],"sourcesContent":["import ApiService from \"@/services/ApiService\";\nimport { TQueryResponse } from \"@base/@types/api\";\nimport { TFindAllEntregaBayerResponse } from \"@base/@types/api/response/bayer/TFindAllEntregaBayerResponse\";\nimport endpointNavigationConfig from \"@base/configs/endpoints.config/endpoints.navigation\";\nimport {\n EntregaResponse,\n FindEntregaFilterRequest,\n SomatorioEntregaResponse,\n FindEntregaResponse,\n QuantidadeConsumidaPorSaldoEntradaGraosRequest,\n QuantidadeASerRetidaPorSaldoResponse,\n AplicarRetencaoResponse,\n AtualizarQuantidadesEntregaRequest\n} from \"@base/@types/api/response/bayer/types\";\n\nconst ENTREGA_BAYER_ENDPOINT = endpointNavigationConfig.bayer.entregaBayer;\n\nexport async function apiFindAllEntregaBayer(params?: string) {\n return ApiService.fetchDataWithAxios<TQueryResponse<TFindAllEntregaBayerResponse>>({\n url: ENTREGA_BAYER_ENDPOINT.findAll(params),\n method: \"get\",\n });\n}\n\nexport async function apiCreateEntrega(saldoId: number) {\n return ApiService.fetchDataWithAxios<EntregaResponse>({\n url: ENTREGA_BAYER_ENDPOINT.createEntrega(saldoId),\n method: 'post',\n });\n}\n\nexport async function apiEnviarEntregaBayer(id: number) {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.enviarBayer(id),\n method: 'post',\n });\n}\n\nexport async function apiSomatorioEntrega(data: FindEntregaFilterRequest) {\n return ApiService.fetchDataWithAxios<SomatorioEntregaResponse, FindEntregaFilterRequest>({\n url: ENTREGA_BAYER_ENDPOINT.somatorio(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiFindEntrega(data: FindEntregaFilterRequest) {\n return ApiService.fetchDataWithAxios<FindEntregaResponse[], FindEntregaFilterRequest>({\n url: ENTREGA_BAYER_ENDPOINT.find(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiEnviarEntregaBayerLote() {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.enviarBayerLote(),\n method: 'post',\n });\n}\n\nexport async function apiCalcularRetencao(data: QuantidadeConsumidaPorSaldoEntradaGraosRequest) {\n return ApiService.fetchDataWithAxios<QuantidadeASerRetidaPorSaldoResponse, QuantidadeConsumidaPorSaldoEntradaGraosRequest>({\n url: ENTREGA_BAYER_ENDPOINT.calcularRetencao(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiBuscarRetornoEntregas() {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.buscarRetorno(),\n method: 'post',\n });\n}\n\nexport async function apiAplicarRetencao(data: QuantidadeConsumidaPorSaldoEntradaGraosRequest) {\n return ApiService.fetchDataWithAxios<AplicarRetencaoResponse, QuantidadeConsumidaPorSaldoEntradaGraosRequest>({\n url: ENTREGA_BAYER_ENDPOINT.aplicarRetencao(),\n method: 'post',\n data,\n });\n}\n\nexport async function apiCancelarEntregaBayer(id: number) {\n return ApiService.fetchDataWithAxios<void>({\n url: ENTREGA_BAYER_ENDPOINT.cancelarEntrega(id),\n method: 'post',\n });\n}\n\nexport async function apiAtualizarQuantidadesEntrega(id: number, data: AtualizarQuantidadesEntregaRequest) {\n return ApiService.fetchDataWithAxios<FindEntregaResponse, AtualizarQuantidadesEntregaRequest>({\n url: ENTREGA_BAYER_ENDPOINT.atualizarQuantidades(id),\n method: 'put',\n data,\n });\n}\n"],"names":[],"mappings":";;AAeA,MAAM,yBAAyB,yBAAyB,MAAM;AAE9D,eAAsB,uBAAuB,QAAiB;AAC5D,SAAO,WAAW,mBAAiE;AAAA,IACjF,KAAK,uBAAuB,QAAQ,MAAM;AAAA,IAC1C,QAAQ;AAAA,EAAA,CACT;AACH;AAEA,eAAsB,iBAAiB,SAAiB;AAC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SAAO,WAAW,mBAA4E;AAAA,IAC1F,KAAK,uBAAuB,qBAAqB,EAAE;AAAA,IACnD,QAAQ;AAAA,IACR;AAAA,EAAA,CACH;AACL;"}
@@ -1,11 +1,12 @@
1
1
  import { apiBuscarEntradaGraos } from "./registroEntradaBayerService.js";
2
- import { apiAplicarRetencao, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCancelarEntregaBayer, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiSomatorioEntrega } from "./entregaBayerService.js";
2
+ import { apiAplicarRetencao, apiAtualizarQuantidadesEntrega, apiBuscarRetornoEntregas, apiCalcularRetencao, apiCancelarEntregaBayer, apiCreateEntrega, apiEnviarEntregaBayer, apiEnviarEntregaBayerLote, apiFindAllEntregaBayer, apiFindEntrega, apiSomatorioEntrega } from "./entregaBayerService.js";
3
3
  import { apiCreateRoyaltiesBusinessPartner, apiGetRoyaltiesBusinessPartner } from "./royaltiesBayerService.js";
4
4
  import { apiBuscarPendencias, apiBuscarPendenciasBayer, apiBuscarStatusConsumo, apiBuscarStatusFixacao } from "./pendenciaBayerService.js";
5
5
  import { apiFindAllRetencao } from "./retencaoBayerService.js";
6
6
  import { apiFindAllConsumoPendencia } from "./consumoPendenciaBayerService.js";
7
7
  export {
8
8
  apiAplicarRetencao,
9
+ apiAtualizarQuantidadesEntrega,
9
10
  apiBuscarEntradaGraos,
10
11
  apiBuscarPendencias,
11
12
  apiBuscarPendenciasBayer,
@@ -79,3 +79,11 @@ export interface ItemAplicarRetencaoResponse {
79
79
  export interface AplicarRetencaoResponse {
80
80
  itens: ItemAplicarRetencaoResponse[];
81
81
  }
82
+
83
+ export interface AtualizarQuantidadesEntregaRequest {
84
+ quantidadeEntregue: number;
85
+ quantidadeBaixada: number;
86
+ quantidadePendente: number;
87
+ quantidadeRetida: number;
88
+ quantidadeBaixadaConsumida: number;
89
+ }
@@ -0,0 +1,117 @@
1
+ import { FormItem } from '@/components/ui'
2
+ import { IFormSectionBaseProps } from '@base/@types/forms'
3
+ import { Input } from '@/components/ui'
4
+ import { Controller, FieldValues, Path } from 'react-hook-form'
5
+ import { useState, useCallback, useEffect } from 'react'
6
+
7
+ type GeneralFormSectionProps<T extends FieldValues> =
8
+ IFormSectionBaseProps<T> & {
9
+ name: Path<T>
10
+ label: string
11
+ placeholder: string
12
+ decimalScale?: number
13
+ prefix?: string
14
+ thousandSeparator?: string
15
+ decimalSeparator?: string
16
+ }
17
+
18
+ function GenericNumberFormSectionDecimalFirst<T extends FieldValues>({
19
+ control,
20
+ errors,
21
+ isView,
22
+ name,
23
+ label,
24
+ placeholder,
25
+ decimalScale = 2,
26
+ prefix = '',
27
+ }: GeneralFormSectionProps<T>) {
28
+ const [displayValue, setDisplayValue] = useState('')
29
+
30
+ // Função core de formatação
31
+ const formatValue = useCallback((input: string, decimals: number): { display: string; value: number } => {
32
+ // Remove tudo que não é dígito
33
+ const numbersOnly = input.replace(/\D/g, '')
34
+
35
+ if (numbersOnly === '') {
36
+ return { display: '', value: 0 }
37
+ }
38
+
39
+ // Converte para número real (ex: "50002" com 5 decimais vira 0.50002)
40
+ const numericValue = parseInt(numbersOnly, 10) / Math.pow(10, decimals)
41
+
42
+ // Formata usando o padrão brasileiro
43
+ const formatted = new Intl.NumberFormat('pt-BR', {
44
+ minimumFractionDigits: decimals,
45
+ maximumFractionDigits: decimals,
46
+ }).format(numericValue)
47
+
48
+ return {
49
+ display: `${prefix}${formatted}`,
50
+ value: numericValue
51
+ }
52
+ }, [prefix])
53
+
54
+ const handleInputChange = useCallback((
55
+ inputValue: string,
56
+ onChange: (value: number) => void,
57
+ decimals: number
58
+ ) => {
59
+ const { display, value } = formatValue(inputValue, decimals)
60
+ setDisplayValue(display)
61
+ onChange(value)
62
+ }, [formatValue])
63
+
64
+ const handleKeyDown = useCallback((e: React.KeyboardEvent<HTMLInputElement>) => {
65
+ const allowedKeys = [
66
+ 'Backspace', 'Delete', 'Tab', 'Escape', 'Enter',
67
+ 'ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown'
68
+ ]
69
+
70
+ if (allowedKeys.includes(e.key) || (e.key >= '0' && e.key <= '9')) {
71
+ return
72
+ }
73
+
74
+ e.preventDefault()
75
+ }, [])
76
+
77
+ return (
78
+ <FormItem
79
+ label={label}
80
+ invalid={Boolean(errors?.[name])}
81
+ errorMessage={errors?.[name]?.message as string}
82
+ >
83
+ <Controller
84
+ name={name}
85
+ control={control}
86
+ render={({ field }) => {
87
+ // Sincronização inicial: converte o valor numérico do banco para a máscara
88
+ useEffect(() => {
89
+ if (field.value !== undefined && field.value !== null && displayValue === '') {
90
+ // Transforma o número em string de dígitos puros respeitando a escala
91
+ const valueAsIntString = Math.round(field.value * Math.pow(10, decimalScale)).toString()
92
+ const { display } = formatValue(valueAsIntString, decimalScale)
93
+ setDisplayValue(display)
94
+ }
95
+ }, [field.value, decimalScale, formatValue])
96
+
97
+ return (
98
+ <Input
99
+ type="text"
100
+ autoComplete="off"
101
+ placeholder={placeholder}
102
+ value={displayValue}
103
+ disabled={isView}
104
+ onChange={(e) => {
105
+ handleInputChange(e.target.value, field.onChange, decimalScale)
106
+ }}
107
+ onKeyDown={handleKeyDown}
108
+ onBlur={field.onBlur}
109
+ />
110
+ )
111
+ }}
112
+ />
113
+ </FormItem>
114
+ )
115
+ }
116
+
117
+ export default GenericNumberFormSectionDecimalFirst
@@ -9,6 +9,7 @@ const entregaBayer = {
9
9
  buscarRetorno: () => '/bayer/api/entregas/buscar-retorno',
10
10
  aplicarRetencao: () => '/bayer/api/entregas/aplicar-retencao',
11
11
  cancelarEntrega: (id: number) => `/bayer/api/entregas/${id}/cancelar`,
12
+ atualizarQuantidades: (id: number) => `/bayer/api/entregas/${id}/quantidades`,
12
13
  }
13
14
 
14
15
  export default entregaBayer
@@ -9,7 +9,8 @@ import {
9
9
  FindEntregaResponse,
10
10
  QuantidadeConsumidaPorSaldoEntradaGraosRequest,
11
11
  QuantidadeASerRetidaPorSaldoResponse,
12
- AplicarRetencaoResponse
12
+ AplicarRetencaoResponse,
13
+ AtualizarQuantidadesEntregaRequest
13
14
  } from "@base/@types/api/response/bayer/types";
14
15
 
15
16
  const ENTREGA_BAYER_ENDPOINT = endpointNavigationConfig.bayer.entregaBayer;
@@ -87,3 +88,11 @@ export async function apiCancelarEntregaBayer(id: number) {
87
88
  method: 'post',
88
89
  });
89
90
  }
91
+
92
+ export async function apiAtualizarQuantidadesEntrega(id: number, data: AtualizarQuantidadesEntregaRequest) {
93
+ return ApiService.fetchDataWithAxios<FindEntregaResponse, AtualizarQuantidadesEntregaRequest>({
94
+ url: ENTREGA_BAYER_ENDPOINT.atualizarQuantidades(id),
95
+ method: 'put',
96
+ data,
97
+ });
98
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbe-agro/client-core",
3
- "version": "5.5.74",
3
+ "version": "5.5.76",
4
4
  "description": "Biblioteca principal de componentes e utilidades para os microfrontends do Orbe Agro.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",