From baf6aedf7807ad3bdddb07f07687ca2a27c8fa6b Mon Sep 17 00:00:00 2001 From: SERTY Date: Mon, 29 Dec 2025 12:35:27 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=86=D1=8B=20=D0=BD=D0=B0=D0=BA=D0=BB=D0=B0?= =?UTF-8?q?=D0=B4=D0=BD=D1=8B=D1=85=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8?= =?UTF-8?q?=D0=BE=D0=BD=D0=B0=D0=BB=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=81=D0=BF=D0=B8=D1=81=D0=BA=D0=B0?= =?UTF-8?q?=20=D0=BD=D0=B0=D0=BA=D0=BB=D0=B0=D0=B4=D0=BD=D1=8B=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/infrastructure/rms/dto.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/internal/infrastructure/rms/dto.go b/internal/infrastructure/rms/dto.go index 859e846..c79236e 100644 --- a/internal/infrastructure/rms/dto.go +++ b/internal/infrastructure/rms/dto.go @@ -108,7 +108,7 @@ type ProductFullDTO struct { ColdLossPercent float64 `json:"coldLossPercent"` HotLossPercent float64 `json:"hotLossPercent"` OuterCode *string `json:"outerEconomicActivityNomenclatureCode"` - AllergenGroups *string `json:"allergenGroups"` + AllergenGroups []interface{} `json:"allergenGroups"` EstPurchasePrice float64 `json:"estimatedPurchasePrice"` CanSetOpenPrice bool `json:"canSetOpenPrice"` NotInStoreMovement bool `json:"notInStoreMovement"` @@ -195,17 +195,17 @@ type StoreReportItemXML struct { // IncomingInvoiceImportXML описывает структуру для POST запроса импорта type IncomingInvoiceImportXML struct { - XMLName xml.Name `xml:"document"` - ID string `xml:"id,omitempty"` // GUID, если редактируем - DocumentNumber string `xml:"documentNumber,omitempty"` - IncomingDocumentNumber string `xml:"incomingDocumentNumber,omitempty"` // Входящий номер документа - DateIncoming string `xml:"dateIncoming,omitempty"` // Format: dd.MM.yyyy - Invoice string `xml:"invoice,omitempty"` // Номер счет-фактуры - DefaultStore string `xml:"defaultStore"` // GUID склада (обязательно) - Supplier string `xml:"supplier"` // GUID поставщика (обязательно) - Comment string `xml:"comment,omitempty"` - Status string `xml:"status,omitempty"` // NEW, PROCESSED - ItemsWrapper struct { + XMLName xml.Name `xml:"document"` + ID string `xml:"id,omitempty"` // GUID, если редактируем + DocumentNumber string `xml:"documentNumber,omitempty"` + IncomingDocumentNumber string `xml:"incomingDocumentNumber,omitempty"` // Входящий номер документа + DateIncoming string `xml:"dateIncoming,omitempty"` // Format: dd.MM.yyyy + Invoice string `xml:"invoice,omitempty"` // Номер счет-фактуры + DefaultStore string `xml:"defaultStore"` // GUID склада (обязательно) + Supplier string `xml:"supplier"` // GUID поставщика (обязательно) + Comment string `xml:"comment,omitempty"` + Status string `xml:"status,omitempty"` // NEW, PROCESSED + ItemsWrapper struct { Items []IncomingInvoiceImportItemXML `xml:"item"` } `xml:"items"` }