Skip to content

Commit

Permalink
BMECat 2005 product detail bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanstapel committed Aug 7, 2023
1 parent fbac4a4 commit c031b30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions BMECat.net/BMECat.net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Authors>Stephan Stapel, [email protected]</Authors>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/stephanstapel/BMECat.net</PackageProjectUrl>
<Version>4.2.0</Version>
<Version>4.2.1</Version>
<Copyright>Stephan Stapel, s2 industries, 2023</Copyright>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/stephanstapel/BMECat.net</RepositoryUrl>
Expand All @@ -14,7 +14,7 @@
<Description>BMECat.net is a .net open source library that allows you to read and write BMEcat descriptions would be a software component that provides developers with a set of tools and functionalities to manipulate BMEcat files programmatically. This library would enable software applications to easily integrate BMEcat support, allowing for the efficient exchange of product information between different systems and partners. Developers could use this library to parse, create, and modify BMEcat documents, accessing product data in a standardized and structured way. Overall, this library would simplify the development of software applications that rely on BMEcat for product information exchange.</Description>
<IncludeSymbols>True</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<FileVersion>4.2.0.0</FileVersion>
<FileVersion>4.2.1.0</FileVersion>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<AssemblyName>s2industries.BMECat.net</AssemblyName>
<AssemblyOriginatorKeyFile>BMECat.net.snk</AssemblyOriginatorKeyFile>
Expand Down
12 changes: 6 additions & 6 deletions BMECat.net/BMECatReader2005.cs
Original file line number Diff line number Diff line change
Expand Up @@ -314,15 +314,15 @@ private static Product _ReadProduct(XmlNode productNode, XmlNamespaceManager nsm
DescriptionShort = XmlUtils.nodeAsString(productNode, "./bmecat:PRODUCT_DETAILS/bmecat:DESCRIPTION_SHORT", nsmgr),
DescriptionLong = XmlUtils.nodeAsString(productNode, "./bmecat:PRODUCT_DETAILS/bmecat:DESCRIPTION_LONG", nsmgr),
Stock = XmlUtils.nodeAsInt(productNode, "./bmecat:PRODUCT_DETAILS/bmecat:STOCK", nsmgr),
ManufacturerPID = XmlUtils.nodeAsString(productNode, "./ARTICLE_DETAILS/MANUFACTURER_PID", nsmgr),
ManufacturerName = XmlUtils.nodeAsString(productNode, "./ARTICLE_DETAILS/MANUFACTURER_NAME", nsmgr),
ManufacturerTypeDescription = XmlUtils.nodeAsString(productNode, "./ARTICLE_DETAILS/MANUFACTURER_TYPE_DESCR", nsmgr),
ERPGroupSupplier = XmlUtils.nodeAsString(productNode, "./ARTICLE_DETAILS/ERP_GROUP_SUPPLIER", nsmgr),
ERPGroupBuyer = XmlUtils.nodeAsString(productNode, "./ARTICLE_DETAILS/ERP_GROUP_BUYER", nsmgr),
ManufacturerPID = XmlUtils.nodeAsString(productNode, "./bmecat:PRODUCT_DETAILS/bmecat:MANUFACTURER_PID", nsmgr),
ManufacturerName = XmlUtils.nodeAsString(productNode, "./bmecat:PRODUCT_DETAILS/bmecat:MANUFACTURER_NAME", nsmgr),
ManufacturerTypeDescription = XmlUtils.nodeAsString(productNode, "./bmecat:PRODUCT_DETAILS/bmecat:MANUFACTURER_TYPE_DESCR", nsmgr),
ERPGroupSupplier = XmlUtils.nodeAsString(productNode, "./bmecat:PRODUCT_DETAILS/bmecat:ERP_GROUP_SUPPLIER", nsmgr),
ERPGroupBuyer = XmlUtils.nodeAsString(productNode, "./bmecat:PRODUCT_DETAILS/bmecat:ERP_GROUP_BUYER", nsmgr),
};

// take care of proper EAN/ GTIN processing
string supplierAltPid = XmlUtils.nodeAsString(productNode, "./ARTICLE_DETAILS/SUPPLIER_ALT_PID", nsmgr);
string supplierAltPid = XmlUtils.nodeAsString(productNode, "./bmecat:PRODUCT_DETAILS/bmecat:SUPPLIER_ALT_PID", nsmgr);
if (!String.IsNullOrEmpty(supplierAltPid))
{
product.PIds.Add(new ProductId()
Expand Down

0 comments on commit c031b30

Please sign in to comment.