Replies: 8 comments 2 replies
-
Ich hatte bislang nur einen Anwendungsfall für HS, daher ist nur der Code für HS in der Datei: Wenn Du für Deine Use Cases weitere Codes benötigst, füge sie gerne hinzu. Bitte nicht die komplette Liste, die UN-Listen sind derartig lang, dass dann niemand mehr versteht, was eigentlich wofür ist. Ich würde mich auch sehr freuen, wenn Du einen Testfall hinzufügen könntest, der Features mit bestimmten Typen schreibt und wieder korrekt liest. |
Beta Was this translation helpful? Give feedback.
-
Hallo Stephan,
eine Ausgabe von
AddDesignatedProductClassification(ZUGFeRD_DesignatedProductClassificationClassCodes.HS, “”, “EF”, “CU 150” )
führt zu dieser Ausgabe:
<ram:DesignatedProductClassification>
<ram::ClassCode listID="EF" listVersionID="CU 150">HS</ram::ClassCode>
</ram:DesignatedProductClassification>
Laut dem was ich in der ZUGFeRD-Doku gesehen habe, sollte jedoch der Code für UNTDID 7143 (in diesem Fall EF für Material) in listID ausgegeben werden und der Inhalt, hier CU 150, als Inhalt des Tags ClassCode.
Meiner Meinung nach müsste der Aufruf lauten:
AddDesignatedProductClassification( ClassCode, listID, listVersionID, ClassName )
AddDesignatedProductClassification( “CU 150”, ZUGFeRD_DesignatedProductClassificationClassCodes.EF, “1”, “Material” )
Mit dem Ergebnis
<ram:DesignatedProductClassification>
<ram::ClassCode listID="EF" listVersionID="1"> CU 150</ram::ClassCode>
<ram::ClassName Material</ram::ClassName>
</ram:DesignatedProductClassification>
Zumindest interpretiere ich die in diesem Fall eher spärliche Dokumentation so. Ich habe leider auch keine Testrechnungen gefunden in denen dieser Tag verwendet wird.
Gruß Nils
Von: Stephan ***@***.***>
Gesendet: Dienstag, 27. August 2024 20:44
An: stephanstapel/ZUGFeRD-csharp ***@***.***>
Cc: Nils Jänicke ***@***.***>; Author ***@***.***>
Betreff: Re: [stephanstapel/ZUGFeRD-csharp] Probleme mit DesignatedProductClassification BT-158 (Discussion #335)
Ich hatte bislang nur einen Anwendungsfall für HS, daher ist nur der Code für HS in der Datei:
https://github.com/stephanstapel/ZUGFeRD-csharp/blob/master/ZUGFeRD/DesignatedProductClassificationClassCodes.cs
Wenn Du für Deine Use Cases weitere Codes benötigst, füge sie gerne hinzu. Bitte nicht die komplette Liste, die UN-Listen sind derartig lang, dass dann niemand mehr versteht, was eigentlich wofür ist.
Ich würde mich auch sehr freuen, wenn Du einen Testfall hinzufügen könntest, der Features mit bestimmten Typen schreibt und wieder korrekt liest.
—
Reply to this email directly, view it on GitHub<#335 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BKZ72TDUGAEDJ7SY4ORW6S3ZTTCHNAVCNFSM6AAAAABNFOYGN2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANBWGY3DIMQ>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
Bei der Deutschen Bahn gibt es ein Beispiel:
Das müsste mit dem aktuellen Code allerdings schon so funktionieren.
Das ist die Definition der Funktion:
D.h. className ist hier leer, was zulässig ist: in diesem Fall wird die Node nicht erzeugt (WriteOptionalElementString() ):
ListID unst ListVersionID wird m.E. richtig ausgegeben. Du hattest noch die Reihenfolge der Parameter angesprochen. Da hast Du in der Tat recht, dass man die ändern könnte. Ich hatte mich für diese Reihenfolge entschieden, da ich ListID und ListVersionID als eher optional erachtet hatte, wohingegen ClassCode und ClassName ja die eigentlichen Inhalte tragen. |
Beta Was this translation helpful? Give feedback.
-
Mit dem ersten Parameter passt es aber leider nicht. Das was im Typ ZUGFeRD_DesignatedProductClassificationClassCodes übergeben wird landet im Tag-Inhalt, während der Parameter „ListID=…“ den Code ausgeben sollte.
Um das Bahn-Beispiel so auszugeben müssten die Parameter so übergeben werden:
AddDesignatedProductClassification("Kennung der Artikelklassifizierung (BT-158)", "Klassifikationsname" , ZUGFeRD_ListIDCode.Code_des_Schemas_BT_158_1, "Version des Schemas (BT-158-2)")
Der erste Parameter der als Tag-Content ausgegeben wird laut Spezifikation ein Textfeld und kein Code aus einer Liste. Der Code aus der Liste ist die ListID als Parameter „ListID“ des Tags, was die Funktion aber als String bekommt.
Die Deklaration (ohne die Reihenfolge zu verändern) müsste also so lauten:
public void AddDesignatedProductClassification(string classCode, string className, DesignatedProductClassificationListIDCodes listID, string listVersionID = null)
Hinweis: Ich bin die nächsten zwei Wochen im Urlaub und kann daher in dieser Zeit keine Mails empfangen oder beantworten.
Von: Stephan ***@***.***>
Gesendet: Mittwoch, 28. August 2024 21:03
An: stephanstapel/ZUGFeRD-csharp ***@***.***>
Cc: Nils Jänicke ***@***.***>; Author ***@***.***>
Betreff: Re: [stephanstapel/ZUGFeRD-csharp] Probleme mit DesignatedProductClassification BT-158 (Discussion #335)
Bei der Deutschen Bahn gibt es ein Beispiel:
https://lieferanten.deutschebahn.com/resource/blob/8175488/80270fe024a0f1e3be307f64f47b1601/Leitfaden-Musterrechnung-CII-Stand-01-02-2024--data.pdf
<ram:DesignatedProductClassification>
<ram:ClassCode listID="Code des Schemas (BT-158-1)" listVersionID="Version des Schemas (BT-158-2)">Kennung der
Artikelklassifizierung (BT-158)</ram:ClassCode>
<ram:ClassName>Klassifikationsname</ram:ClassName>
</ram:DesignatedProductClassification>
Das müsste mit dem aktuellen Code allerdings schon so funktionieren.
Du hattest genutzt:
AddDesignatedProductClassification(ZUGFeRD_DesignatedProductClassificationClassCodes.HS, “”, “EF”, “CU 150” )
Das ist die Definition der Funktion:
public void AddDesignatedProductClassification(DesignatedProductClassificationClassCodes classCode, string className, string listID = null, string listVersionID = null)
D.h. className ist hier leer, was zulässig ist:
grafik.png (view on web)<https://github.com/user-attachments/assets/3f941e32-66a5-4e7b-b8ea-de48e5cab246>
in diesem Fall wird die Node nicht erzeugt (WriteOptionalElementString() ):
Writer.WriteOptionalElementString("ram:ClassName", designatedProductClassification.ClassName);
ListID unst ListVersionID wird m.E. richtig ausgegeben.
Du hattest noch die Reihenfolge der Parameter angesprochen. Da hast Du in der Tat recht, dass man die ändern könnte. Ich hatte mich für diese Reihenfolge entschieden, da ich ListID und ListVersionID als eher optional erachtet hatte, wohingegen ClassCode und ClassName ja die eigentlichen Inhalte tragen.
—
Reply to this email directly, view it on GitHub<#335 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BKZ72TAOWMBVFQ43P4IUY4LZTYNGDAVCNFSM6AAAAABNFOYGN2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANBXHA4TMNY>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
Ich habe nun einige Testfälle hinzugefügt: ZUGFeRD-csharp/ZUGFeRD-Test/ZUGFeRD22Tests.cs Line 2041 in f1db682 und die Reihenfolge der Parameter etwas optimiert. Meiner Meinung nach passt es alles so. |
Beta Was this translation helpful? Give feedback.
-
Gibt es dafür bald eine aktualisierte Version?
Von: Stephan ***@***.***>
Gesendet: Donnerstag, 29. August 2024 20:24
An: stephanstapel/ZUGFeRD-csharp ***@***.***>
Cc: Nils Jänicke ***@***.***>; Author ***@***.***>
Betreff: Re: [stephanstapel/ZUGFeRD-csharp] Probleme mit DesignatedProductClassification BT-158 (Discussion #335)
Ich habe nun einige Testfälle hinzugefügt:
https://github.com/stephanstapel/ZUGFeRD-csharp/blob/f1db6823a40ce882753cd6f0d0a1be5d7f3338a1/ZUGFeRD-Test/ZUGFeRD22Tests.cs#L2041
und die Reihenfolge der Parameter etwas optimiert. Meiner Meinung nach passt es alles so.
—
Reply to this email directly, view it on GitHub<#335 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BKZ72TCQARL2PMMYNMVZBETZT5RMLAVCNFSM6AAAAABNFOYGN2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANBZGA2TGMQ>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
Ich habe die Anwendung nochmal aktualisiert. Kannst Du es einmal ausprobieren, ob es nun so ist wie es (wahrscheinlich) gedacht ist? |
Beta Was this translation helpful? Give feedback.
-
Vielen Dank, soweit ich das beurteilen kann scheint es so zu funktionieren.
Leider habe ich nur spärlich Informationen über diese Tags finden können.
Ich habe noch die Enumeration „DesignatedProductClassificationClassCodes“ anhand von UNTDID 7143 ergänzt, Quellcode mit Doku liegt bei.
Von: Stephan ***@***.***>
Gesendet: Dienstag, 8. Oktober 2024 09:14
An: stephanstapel/ZUGFeRD-csharp ***@***.***>
Cc: Nils Jänicke ***@***.***>; Author ***@***.***>
Betreff: Re: [stephanstapel/ZUGFeRD-csharp] Probleme mit DesignatedProductClassification BT-158 (Discussion #335)
Du müsstest den aktuellen Codestand aus dem github-Repository nutzen
—
Reply to this email directly, view it on GitHub<#335 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BKZ72TAQVTNRFVD2RPXRWNDZ2OA3RAVCNFSM6AAAAABNFOYGN2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAOBXGYZTMOI>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace s2industries.ZUGFeRD
{
/// <summary>
/// A code for the classification of an item according to type or kind or nature.
///
/// Classification codes are used for the aggregation of similar products, which might be useful for various
/// purposes,
/// for instance like public procurement, in accordance with the Common Vocabulary for Public Procurement
/// [CPV]), e-Commerce(UNSPSC) etc.
///
/// Source: UNTDID 7143
/// Business rule: BR-65
/// </summary>
public enum DesignatedProductClassificationClassCodes
{
/// <summary>
/// Unknown
/// </summary>
Unknown = 0,
/// <summary>
/// Product version number
/// Number assigned by manufacturer or seller to identify the release of a product.
/// </summary>
AA,
/// <summary>
/// Assembly
/// The item number is that of an assembly.
/// </summary>
AB,
/// <summary>
/// HIBC (Health Industry Bar Code)
/// Article identifier used within health sector to indicate data used conforms to HIBC.
/// </summary>
AC,
/// <summary>
/// Cold roll number
/// Number assigned to a cold roll.
/// </summary>
AD,
/// <summary>
/// Hot roll number
/// Number assigned to a hot roll.
/// </summary>
AE,
/// <summary>
/// Slab number
/// Number assigned to a slab, which is produced in a particular production step.
/// </summary>
AF,
/// <summary>
/// Software revision number
/// A number assigned to indicate a revision of software.
/// </summary>
AG,
/// <summary>
/// UPC (Universal Product Code) Consumer package code (1-5-5)
/// An 11-digit code that uniquely identifies consumer packaging of a product; does not have a check digit.
/// </summary>
AH,
/// <summary>
/// UPC (Universal Product Code) Consumer package code (1-5-5-1)
/// A 12-digit code that uniquely identifies the consumer packaging of a product, including a check digit.
/// </summary>
AI,
/// <summary>
/// Sample number
/// Number assigned to a sample.
/// </summary>
AJ,
/// <summary>
/// Pack number
/// Number assigned to a pack containing a stack of items put together (e.g. cold roll sheets (steel product)).
/// </summary>
AK,
/// <summary>
/// UPC (Universal Product Code) Shipping container code (1-2-5-5)
/// A 13-digit code that uniquely identifies the manufacturer's shipping unit, including the packaging indicator.
/// </summary>
AL,
/// <summary>
/// UPC (Universal Product Code)/EAN (European article number) Shipping container code (1-2-5-5-1)
/// A 14-digit code that uniquely identifies the manufacturer's shipping unit, including the packaging indicator and the check digit.
/// </summary>
AM,
/// <summary>
/// UPC (Universal Product Code) suffix
/// A suffix used in conjunction with a higher level UPC (Universal product code) to define packing variations for a product.
/// </summary>
AN,
/// <summary>
/// State label code
/// A code which specifies the codification of the state's labelling requirements.
/// </summary>
AO,
/// <summary>
/// Heat number
/// Number assigned to the heat (also known as the iron charge) for the production of steel products.
///
AP,
/// <summary>
/// Coupon number
/// A number identifying a coupon.
/// </summary>
AQ,
/// <summary>
/// Resource number
/// A number to identify a resource.
/// </summary>
AR,
/// <summary>
/// Work task number
/// A number to identify a work task.
/// </summary>
AS,
/// <summary>
/// Price look up number
/// Identification number on a product allowing a quick electronic retrieval of price information for that product.
/// </summary>
AT,
/// <summary>
/// NSN (North Atlantic Treaty Organization Stock Number)
/// Number assigned under the NATO (North Atlantic Treaty Organization) codification system to provide the identification of an approved item of supply.
/// </summary>
AU,
/// <summary>
/// Refined product code
/// A code specifying the product refinement designation.
/// </summary>
AV,
/// <summary>
/// Exhibit
/// A code indicating that the product is identified by an exhibit number.
/// </summary>
AW,
/// <summary>
/// End item
/// A number specifying an end item.
/// </summary>
AX,
/// <summary>
/// Federal supply classification
/// A code to specify a product's Federal supply classification.
/// </summary>
AY,
/// <summary>
/// Engineering data list
/// A code specifying the product's engineering data list.
/// </summary>
AZ,
/// <summary>
/// Milestone event number
/// A number to identify a milestone event.
/// </summary>
BA,
/// <summary>
/// Lot number
/// A number indicating the lot number of a product.
/// </summary>
BB,
/// <summary>
/// National drug code 4-4-2 format
/// A code identifying the product in national drug format 4-4-2.
/// </summary>
BC,
/// <summary>
/// National drug code 5-3-2 format
/// A code identifying the product in national drug format 5-3-2.
/// </summary>
BD,
/// <summary>
/// National drug code 5-4-1 format
/// A code identifying the product in national drug format 5-4-1.
/// </summary>
BE,
/// <summary>
/// National drug code 5-4-2 format
/// A code identifying the product in national drug format 5-4-2.
/// </summary>
BF,
/// <summary>
/// National drug code
/// A code specifying the national drug classification.
/// </summary>
BG,
/// <summary>
/// Part number
/// A number indicating the part.
/// </summary>
BH,
/// <summary>
/// Local Stock Number (LSN)
/// A local number assigned to an item of stock.
/// </summary>
BI,
/// <summary>
/// Next higher assembly number
/// A number specifying the next higher assembly or component into which the product is being incorporated.
/// </summary>
BJ,
/// <summary>
/// Data category
/// A code specifying a category of data.
/// </summary>
BK,
/// <summary>
/// Control number
/// To specify the control number.
/// </summary>
BL,
/// <summary>
/// Special material identification code
/// A number to identify the special material code.
/// </summary>
BM,
/// <summary>
/// Locally assigned control number
/// A number assigned locally for control purposes.
/// </summary>
BN,
/// <summary>
/// Buyer's colour
/// Colour assigned by buyer.
/// </summary>
BO,
/// <summary>
/// Buyer's part number
/// Reference number assigned by the buyer to identify an article.
/// </summary>
BP,
/// <summary>
/// Variable measure product code
/// A code assigned to identify a variable measure item.
/// </summary>
BQ,
/// <summary>
/// Financial phase
/// To specify as an item, the financial phase.
/// </summary>
BR,
/// <summary>
/// Contract breakdown
/// To specify as an item, the contract breakdown.
/// </summary>
BS,
/// <summary>
/// Technical phase
/// To specify as an item, the technical phase.
/// </summary>
BT,
/// <summary>
/// Dye lot number
/// Number identifying a dye lot.
/// </summary>
BU,
/// <summary>
/// Daily statement of activities
/// A statement listing activities of one day.
/// </summary>
BV,
/// <summary>
/// Periodical statement of activities within a bilaterally agreed time period
/// Periodical statement listing activities within a bilaterally agreed time period.
/// </summary>
BW,
/// <summary>
/// Calendar week statement of activities
/// A statement listing activities of a calendar week.
/// </summary>
BX,
/// <summary>
/// Calendar month statement of activities
/// A statement listing activities of a calendar month.
/// </summary>
BY,
/// <summary>
/// Original equipment number
/// Original equipment number allocated to spare parts by the manufacturer.
/// </summary>
BZ,
/// <summary>
/// Industry commodity code
/// The codes given to certain commodities by an industry.
/// </summary>
CC,
/// <summary>
/// Commodity grouping
/// Code for a group of articles with common characteristics (e.g. used for statistical purposes).
/// </summary>
CG,
/// <summary>
/// Colour number
/// Code for the colour of an article.
/// </summary>
CL,
/// <summary>
/// Contract number
/// Reference number identifying a contract.
/// </summary>
CR,
/// <summary>
/// Customs article number
/// Code defined by Customs authorities to an article or a group of articles for Customs purposes.
/// </summary>
CV,
/// <summary>
/// Drawing revision number
/// Reference number indicating that a change or revision has been applied to a drawing.
/// </summary>
DR,
/// <summary>
/// Drawing
/// Reference number identifying a drawing of an article.
/// </summary>
DW,
/// <summary>
/// Engineering change level
/// Reference number indicating that a change or revision has been applied to an article's specification.
/// </summary>
EC,
/// <summary>
/// Material code
/// Code defining the material's type, surface, geometric form plus various classifying characteristics.
/// </summary>
EF,
/// <summary>
/// International Article Numbering Association (EAN)
/// Number assigned to a manufacturer's product according to the International Article Numbering Association.
/// </summary>
EN,
/// <summary>
/// Fish species
/// Identification of fish species.
/// </summary>
FS,
/// <summary>
/// Buyer's internal product group code
/// Product group code used within a buyer's internal systems.
/// </summary>
GB,
/// <summary>
/// National product group code
/// National product group code. Administered by a national agency.
/// </summary>
GN,
/// <summary>
/// General specification number
/// The item number is a general specification number.
/// </summary>
GS,
/// <summary>
/// Harmonised system
/// The item number is part of, or is generated in the context of the Harmonised Commodity Description and Coding System (Harmonised System), as developed and maintained by the World Customs Organization (WCO).
/// </summary>
HS,
/// <summary>
/// ISBN (International Standard Book Number)
/// A unique number identifying a book.
/// </summary>
IB,
/// <summary>
/// Buyer's item number
/// The item number has been allocated by the buyer.
/// </summary>
IN,
/// <summary>
/// ISSN (International Standard Serial Number)
/// A unique number identifying a serial publication.
/// </summary>
IS,
/// <summary>
/// Buyer's style number
/// Number given by the buyer to a specific style or form of an article, especially used for garments.
/// </summary>
IT,
/// <summary>
/// Buyer's size code
/// Code given by the buyer to designate the size of an article in textile and shoe industry.
/// </summary>
IZ,
/// <summary>
/// Machine number
/// The item number is a machine number.
/// </summary>
MA,
/// <summary>
/// Manufacturer's (producer's) article number
/// The number given to an article by its manufacturer.
/// </summary>
MF,
/// <summary>
/// Model number
/// Reference number assigned by the manufacturer to differentiate variations in similar products in a class or group.
/// </summary>
MN,
/// <summary>
/// Product/service identification number
/// Reference number identifying a product or service.
/// </summary>///
MP,
/// <summary>
/// Batch number
/// The item number is a batch number.
/// </summary>
NB,
/// <summary>
/// Customer order number
/// Reference number of a customer's order.
/// </summary>
ON,
/// <summary>
/// Part number description
/// Reference number identifying a description associated with a number ultimately used to identify an article.
/// </summary>
PD,
/// <summary>
/// Purchaser's order line number
/// Reference number identifying a line entry in a customer's order for goods or services.
/// </summary>
PL,
/// <summary>
/// Purchase order number
/// Reference number identifying a customer's order.
/// </summary>
PO,
/// <summary>
/// Promotional variant number
/// The item number is a promotional variant number.
/// </summary>
PV,
/// <summary>
/// Buyer's qualifier for size
/// The item number qualifies the size of the buyer.
/// </summary>
QS,
/// <summary>
/// Returnable container number
/// Reference number identifying a returnable container.
/// </summary>
RC,
/// <summary>
/// Release number
/// Reference number identifying a release from a buyer's purchase order.
/// </summary>
RN,
/// <summary>
/// Run number
/// The item number identifies the production or manufacturing run or sequence in which the item was manufactured, processed or assembled.
/// </summary>
RU,
/// <summary>
/// Record keeping of model year
/// The item number relates to the year in which the particular model was kept.
/// </summary>
RY,
/// <summary>
/// Supplier's article number
/// Number assigned to an article by the supplier of that article.
/// </summary>
SA,
/// <summary>
/// Standard group of products (mixed assortment)
/// The item number relates to a standard group of other items (mixed) which are grouped together as a single item for identification purposes.
/// </summary>
SG,
/// <summary>
/// SKU (Stock keeping unit)
/// Reference number of a stock keeping unit.
/// </summary>
SK,
/// <summary>
/// Serial number
/// Identification number of an item which distinguishes this specific item out of a number of identical items.
/// </summary>
SN,
/// <summary>
/// RSK number
/// Plumbing and heating.
/// </summary>
SRS,
/// <summary>
/// IFLS (Institut Francais du Libre Service) 5 digit productclassification code
/// 5 digit code for product classification managed by the Institut Francais du Libre Service.
/// </summary>
SRT,
/// <summary>
/// IFLS (Institut Francais du Libre Service) 9 digit product classification code
/// 9 digit code for product classification managed by the Institut Francais du Libre Service.
/// </summary>
SRU,
/// <summary>
/// GS1 Global Trade Item Number
/// A unique number, up to 14-digits, assigned according to the numbering structure of the GS1 system.
/// </summary>
SRV,
/// <summary>
/// EDIS (Energy Data Identification System)
/// European system for identification of meter data.
/// </summary>
SRW,
/// <summary>
/// Slaughter number
/// Unique number given by a slaughterhouse to an animal or a group of animals of the same breed.
/// </summary>
SRX,
/// <summary>
/// Official animal number
/// Unique number given by a national authority to identify an animal individually.
/// </summary>
SRY,
/// <summary>
/// Harmonized tariff schedule
/// The international Harmonized Tariff Schedule (HTS) to classify the article for customs, statistical and other purposes.
/// </summary>
SRZ,
/// <summary>
/// Supplier's supplier article number
/// Article number referring to a sales catalogue of supplier's supplier.
/// </summary>
SS,
/// <summary>
/// 46 Level DOT Code
/// A US Department of Transportation (DOT) code to identify hazardous (dangerous) goods, managed by the Customs and Border Protection (CBP) agency.
/// </summary>
SSA,
/// <summary>
/// Airline Tariff 6D
/// A US code agreed to by the airline industry to identify hazardous (dangerous) goods, managed by the Customs and Border Protection (CBP) agency.
/// </summary>
SSB,
/// <summary>
/// Title 49 Code of Federal Regulations
/// A US Customs and Border Protection (CBP) code used to identify hazardous (dangerous) goods.
/// </summary>
SSC,
/// <summary>
/// International Civil Aviation Administration code
/// A US Department of Transportation/Federal Aviation Administration code used to identify hazardous (dangerous) goods, managed by the Customs and Border Protection (CBP) agency.
/// </summary>
SSD,
/// <summary>
/// Hazardous Materials ID DOT
/// A US Department of Transportation (DOT) code used to identify hazardous (dangerous) goods, managed by the Customs and Border Protection (CBP) agency.
/// </summary>
SSE,
/// <summary>
/// Endorsement
/// A US Customs and Border Protection (CBP) code used to identify hazardous (dangerous) goods.
/// </summary>
SSF,
/// <summary>
/// Air Force Regulation 71-4
/// A department of Defense/Air Force code used to identify hazardous (dangerous) goods, managed by the Customs and Border Protection (CBP) agency.
/// </summary>
SSG,
/// <summary>
/// Breed
/// The breed of the item (e.g. plant or animal).
/// </summary>
SSH,
/// <summary>
/// Chemical Abstract Service (CAS) registry number
/// A unique numerical identifier for for chemical compounds, polymers, biological sequences, mixtures and alloys.
/// </summary>
SSI,
/// <summary>
/// Engine model designation
/// A name or designation to identify an engine model.
/// </summary>
SSJ,
/// <summary>
/// Institutional Meat Purchase Specifications (IMPS) Number
/// A number assigned by agricultural authorities to identify and track meat and meat products.
/// </summary>
SSK,
/// <summary>
/// Price Look-Up code (PLU)
/// Identification number affixed to produce in stores to retrieve price information.
/// </summary>
SSL,
/// <summary>
/// International Maritime Organization (IMO) Code
/// An International Maritime Organization (IMO) code used to identify hazardous (dangerous) goods.
/// </summary>
SSM,
/// <summary>
/// Bureau of Explosives 600-A (rail)
/// A Department of Transportation/Federal Railroad Administration code used to identify hazardous (dangerous) goods.
/// </summary>
SSN,
/// <summary>
/// United Nations Dangerous Goods List
/// A UN code used to classify and identify dangerous goods.
/// </summary>
SSO,
/// <summary>
/// International Code of Botanical Nomenclature (ICBN)
/// A code established by the International Code of Botanical Nomenclature (ICBN) used to classify and identify botanical articles and commodities.
/// </summary>
SSP,
/// <summary>
/// International Code of Zoological Nomenclature (ICZN)
/// A code established by the International Code of Zoological Nomenclature (ICZN) used to classify and identify animals.
/// </summary>
SSQ,
/// <summary>
/// International Code of Nomenclature for Cultivated Plants (ICNCP)
/// A code established by the International Code of Nomenclature for Cultivated Plants (ICNCP) used to classify and identify animals.
/// </summary>
SSR,
/// <summary>
/// Distributor’s article identifier
/// Identifier assigned to an article by the distributor of that article.
/// </summary>
SSS,
/// <summary>
/// Norwegian Classification system ENVA
/// Product classification system used in the Norwegian market.
/// </summary>
SST,
/// <summary>
/// Supplier assigned classification
/// Product classification assigned by the supplier.
/// </summary>
SSU,
/// <summary>
/// Mexican classification system AMECE
/// Product classification system used in the Mexican market.
/// </summary>
SSV,
/// <summary>
/// German classification system CCG
/// Product classification system used in the German market.
/// </summary>
SSW,
/// <summary>
/// Finnish classification system EANFIN
/// Product classification system used in the Finnish market.
/// </summary>
SSX,
/// <summary>
/// Canadian classification system ICC
/// Product classification system used in the Canadian market.
/// </summary>
SSY,
/// <summary>
/// French classification system IFLS5
/// Product classification system used in the French market.
/// </summary>
SSZ,
/// <summary>
/// Style number
/// Number given to a specific style or form of an article, especially used for garments.
/// </summary>
ST,
/// <summary>
/// Dutch classification system CBL
/// Product classification system used in the Dutch market.
/// </summary>
STA,
/// <summary>
/// Japanese classification system JICFS
/// Product classification system used in the Japanese market.
/// </summary>
STB,
/// <summary>
/// European Union dairy subsidy eligibility classification
/// Category of product eligible for EU subsidy (applies for certain dairy products with specific level of fat content).
/// </summary>
STC,
/// <summary>
/// GS1 Spain classification system
/// Product classification system used in the Spanish market.
/// </summary>
STD,
/// <summary>
/// GS1 Poland classification system
/// Product classification system used in the Polish market.
/// </summary>
STE,
/// <summary>
/// Federal Agency on Technical Regulating and Metrology of the Russian Federation
/// A Russian government agency that serves as a national standardization body of the Russian Federation.
/// </summary>
STF,
/// <summary>
/// Efficient Consumer Response (ECR) Austria classification system
/// Product classification system used in the Austrian market.
/// </summary>
STG,
/// <summary>
/// GS1 Italy classification system
/// Product classification system used in the Italian market.
/// </summary>
STH,
/// <summary>
/// CPV (Common Procurement Vocabulary)
/// Official classification system for public procurement in the European Union.
/// </summary>
STI,
/// <summary>
/// IFDA (International Foodservice Distributors Association)
/// International Foodservice Distributors Association (IFDA).
/// </summary>
STJ,
/// <summary>
/// AHFS (American Hospital Formulary Service) pharmacologic - therapeutic classification
/// Pharmacologic - therapeutic classification maintained by the American Hospital Formulary Service (AHFS).
/// </summary>
STK,
/// <summary>
/// ATC (Anatomical Therapeutic Chemical) classification system
/// Anatomical Therapeutic Chemical classification system maintained by the World Health Organisation (WHO).
/// </summary>
STL,
/// <summary>
/// CLADIMED (Classification des Dispositifs Médicaux)
/// A five level classification system for medical decvices maintained by the CLADIMED organisation used in the French market.
/// </summary>
STM,
/// <summary>
/// CMDR (Canadian Medical Device Regulations) classification system
/// Classification system related to the Canadian Medical Device Regulations maintained by Health Canada.
/// </summary>
STN,
/// <summary>
/// CNDM (Classificazione Nazionale dei Dispositivi Medici)
/// A classification system for medical devices used in the Italian market.
/// </summary>
STO,
/// <summary>
/// UK DM&D (Dictionary of Medicines & Devices) standard coding scheme
/// A classification system for medicines and devices used in the UK market.
/// </summary>
STP,
/// <summary>
/// ***@***.***
/// Standardized material and service classification and dictionary maintained by eClass e.V.
/// </summary>
STQ,
/// <summary>
/// EDMA (European Diagnostic Manufacturers Association) Products Classification
/// Classification for in vitro diagnostics medical devices maintained by the European Diagnostic Manufacturers Association.
/// </summary>
STR,
/// <summary>
/// EGAR (European Generic Article Register)
/// A classification system for medical devices.
/// </summary>
STS,
/// <summary>
/// GMDN (Global Medical Devices Nomenclature)
/// Nomenclature system for identification of medical devices officially apprroved by the European Union.
/// </summary>
STT,
/// <summary>
/// GPI (Generic Product Identifier)
/// A drug classification system managed by Medi-Span.
/// </summary>
STU,
/// <summary>
/// HCPCS (Healthcare Common Procedure Coding System)
/// A classification system used with US healthcare insurance programs.
/// </summary>
STV,
/// <summary>
/// ICPS (International Classification for Patient Safety)
/// A patient safety taxonomy maintained by the World Health Organisation.
/// </summary>
STW,
/// <summary>
/// MedDRA (Medical Dictionary for Regulatory Activities)
/// A medical dictionary maintained by the International Federation of Pharmaceutical Manufacturers and Associations (IFPMA).
/// </summary>
STX,
/// <summary>
/// Medical Columbus
/// Medical product classification system used in the German market.
/// </summary>
STY,
/// <summary>
/// NAPCS (North American Product Classification System)
/// Product classification system used in the North American market.
/// </summary>
STZ,
/// <summary>
/// NHS (National Health Services) eClass
/// Product and Service classification system used in United Kingdom market.
/// </summary>
SUA,
/// <summary>
/// US FDA (Food and Drug Administration) Product Code Classification Database
/// US FDA Product Code Classification Database contains medical device names and associated information developed by the Center for Devices and Radiological Health (CDRH).
/// </summary>
SUB,
/// <summary>
/// SNOMED CT (Systematized Nomenclature of Medicine-Clinical Terms)
/// A medical nomenclature system developed between the NHS and the College of American Pathologists.
/// </summary>
SUC,
/// <summary>
/// UMDNS (Universal Medical Device Nomenclature System)
/// A standard international nomenclature and computer coding system for medical devices maintained by the Emergency Care Research Institute (ECRI).
/// </summary>
SUD,
/// <summary>
/// GS1 Global Returnable Asset Identifier, non-serialised
/// A unique, 13-digit number assigned according to the numbering structure of the GS1 system and used to identify a type of Reusable Transport Item (RTI).
/// </summary>
SUE,
/// <summary>
/// IMEI
/// The International Mobile Station Equipment Identity (IMEI) is a unique number to identify mobile phones. It includes the origin, model and serial number of the device. The structure is specified in 3GPP TS 23.003.
/// </summary>
SUF,
/// <summary>
/// Waste Type (EMSA)
/// Classification of waste as defined by the European Maritime Safety Agency (EMSA).
/// </summary>
SUG,
/// <summary>
/// Ship's store classification type
/// Classification of ship’s stores.
/// </summary>
SUH,
/// <summary>
/// Emergency fire code
/// Classification for emergency response procedures related to fire.
/// </summary>
SUI,
/// <summary>
/// Emergency spillage code
/// Classification for emergency response procedures related to spillage.
/// </summary>
SUJ,
/// <summary>
/// IMDG packing group
/// Packing group as defined in the International Marititme Dangerous Goods (IMDG) specification.
/// </summary>
SUK,
/// <summary>
/// MARPOL Code IBC
/// International Bulk Chemical (IBC) code defined by the International Convention for the Prevention of Pollution from Ships (MARPOL).
/// </summary>
SUL,
/// <summary>
/// IMDG subsidiary risk class
/// Subsidiary risk class as defined in the International Maritime Dangerous Goods (IMDG) specification.
/// </summary>
SUM,
/// <summary>
/// Transport group number
/// (8012) Additional number to form article groups for packing and/or transportation purposes.
/// </summary>
TG,
/// <summary>
/// Taxonomic Serial Number
/// A unique number assigned to a taxonomic entity, commonly to a species of plants or animals, providing information on their hierarchical classification, scientific name, taxonomic rank, associated synonyms and vernacular names where appropriate, data source information and data quality indicators.
/// </summary>
TSN,
/// <summary>
/// IMDG main hazard class
/// Main hazard class as defined in the International Maritime Dangerous Goods (IMDG) specification.
/// </summary>
TSO,
/// <summary>
/// EU Combined Nomenclature
/// The number is part of, or is generated in the context of the Combined Nomenclature classification, as developed and maintained by the European Union (EU).
/// </summary>
TSP,
/// <summary>
/// Therapeutic classification number
/// A code to specify a product's therapeutic classification.
/// </summary>
TSQ,
/// <summary>
/// European Waste Catalogue
/// Waste type number according to the European Waste Catalogue (EWC).
/// </summary>
TSR,
/// <summary>
/// Price grouping code
/// Number assigned to identify a grouping of products based on price. |
/// </summary>
TSS,
/// <summary>
/// UNSPSC
/// The UNSPSC commodity classification system. |
/// </summary>
TST,
/// <summary>
/// EU RoHS Directive
/// European Union Directive on the restriction of hazardous substances.
/// </summary>
TSU,
/// <summary>
/// Ultimate customer's article number
/// Number assigned by ultimate customer to identify relevant article.
/// </summary>
UA,
/// <summary>
/// UPC (Universal product code)
/// Number assigned to a manufacturer's product by the Product Code Council.
/// </summary>
UP,
/// <summary>
/// Vendor item number
/// Reference number assigned by a vendor/seller identifying a product/service/article.
/// </summary>
VN,
/// <summary>
/// Vendor's (seller's) part number
/// Reference number assigned by a vendor/seller identifying an article.
/// </summary>
VP,
/// <summary>
/// Vendor's supplemental item number
/// The item number is a specified by the vendor as a supplemental number for the vendor's purposes.
/// </summary>
VS,
/// <summary>
/// Vendor specification number
/// The item number has been allocated by the vendor as a specification number.
/// </summary>
VX,
/// <summary>
/// Mutually defined
/// Item type identification mutually agreed between interchanging parties.
/// </summary>
ZZZ,
}
internal static class DesignatedProductClassificationClassCodesExtensions
{
public static DesignatedProductClassificationClassCodes FromString(this DesignatedProductClassificationClassCodes _, string s)
{
try
{
return (DesignatedProductClassificationClassCodes)Enum.Parse(typeof(DesignatedProductClassificationClassCodes), s);
}
catch
{
return DesignatedProductClassificationClassCodes.Unknown;
}
} // !FromString()
public static string EnumToString(this DesignatedProductClassificationClassCodes c)
{
return c.ToString("g");
} // !EnumToString()
}
}
|
Beta Was this translation helpful? Give feedback.
-
Hallo,
Ich versuche gerade, mit Version 14.1.0 BT-158 auszugeben. Mir scheint, dass die Funktion "TradeLineItem.AddDesignatedProductClassification" nicht korrekt arbeitet. Nach ZUGFeRD-Doku und Beispielen müsste ein Wert als String an der Stelle ausgegeben werden, an der jetzt eine Konstante vom Typ "DesignatedProductClassificationClassCodes ausgegeben" wird, die nur "HS" und "Unknown" kennt. Dafür sollte "listID" einen Wert aus der Tabelle UNTDID 7143 bekommen, was besser als enum umgesetzt werden könnte.
Ist da noch was in Arbeit, so dass zukünftige Versionen korrekt arbeiten?
Beta Was this translation helpful? Give feedback.
All reactions