From 6f85e0310cc88f0b28517a393c22189c4573100e Mon Sep 17 00:00:00 2001 From: Douglas Heydt Date: Mon, 8 Mar 2021 07:33:00 -0300 Subject: [PATCH] =?UTF-8?q?altera=C3=A7=C3=A3o=20da=20API=20de=20produtos?= =?UTF-8?q?=20para=20conter=20lista=20de=20lead=20time=20de=20trasnferenci?= =?UTF-8?q?as?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jsonschema/schemas/MRPProduct_1_000.json | 47 +++++++++++++++--------- 1 file changed, 29 insertions(+), 18 deletions(-) diff --git a/jsonschema/schemas/MRPProduct_1_000.json b/jsonschema/schemas/MRPProduct_1_000.json index 47ca13d5b1..71fd957dbb 100644 --- a/jsonschema/schemas/MRPProduct_1_000.json +++ b/jsonschema/schemas/MRPProduct_1_000.json @@ -487,48 +487,59 @@ } ] }, - "defaultRouting": { - "description": "Roteiro padrão", + "code": { + "description": "Id Produto", "type": "string", - "maxLength": 2, "x-totvs": [ { "product": "PROTHEUS", - "field": "HWA.HWA_ROTOPE", - "required": false, - "type": "Char", - "length": "2", + "field": "HWA.HWA_IDREG", + "required": true, + "format": "char", + "length": "200", "available": true, "canUpdate": false } ] }, - "costCenterForCosting": { - "description": "Centro Custo", + "listOfLeadTimeTransfer": { + "type": "array", + "description": "Lista de lead times de produtos por filial", + "items": { + "$ref": "#/definitions/MRPProductTrasnferLeadTime" + } + } + } + }, + "MRPProductTrasnferLeadTime": { + "type": "object", + "properties": { + "branchId": { + "description": "Código da filial", "type": "string", - "maxLength": 9, + "maxLength": 2, "x-totvs": [ { "product": "PROTHEUS", - "field": "HWA.HWA_CCUSTO", + "field": "SMI.MI_FILIAL", "required": false, "type": "Char", - "length": "9", + "length": "2", "available": true, "canUpdate": false } ] }, - "code": { - "description": "Id Produto", - "type": "string", + "productTransferLeadTime": { + "description": "Lead time de transferência do produto", + "type": "number", "x-totvs": [ { "product": "PROTHEUS", - "field": "HWA.HWA_IDREG", + "field": "SMI.MI_LEADTR", "required": true, - "format": "char", - "length": "200", + "type": "integer", + "length": "5", "available": true, "canUpdate": false }