Skip to content

Commit 744ad6a

Browse files
committed
quantity code update
see #243
1 parent 3ebc2fb commit 744ad6a

File tree

1 file changed

+72
-12
lines changed

1 file changed

+72
-12
lines changed

ZUGFeRD/QuantityCodes.cs

+72-12
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ namespace s2industries.ZUGFeRD
2626
/// <summary>
2727
/// ISO Quantity Codes
2828
///
29-
/// for web reference, see e.g.
29+
/// Official reference:
30+
/// https://unece.org/trade/uncefact/cl-recommendations
31+
/// (Rec 20)
32+
///
33+
/// See ee also
3034
/// http://www.robert-kuhlemann.de/iso_masseinheiten.htm
3135
/// </summary>
3236
public enum QuantityCodes
@@ -57,7 +61,7 @@ public enum QuantityCodes
5761
/// <summary>
5862
/// Hektar
5963
/// Abkürzung: ha
60-
/// </summary>
64+
/// </summary>
6165
HAR,
6266

6367
/// <summary>
@@ -160,6 +164,7 @@ public enum QuantityCodes
160164
/// Anzahl Paare
161165
/// Abkürzung: Pr.
162166
/// </summary>
167+
[Obsolete("This enum will be removed in the next major version. Please use PR instead")]
163168
NPR,
164169

165170
/// <summary>
@@ -174,6 +179,15 @@ public enum QuantityCodes
174179
[Obsolete("Does not conform to ZUGFeRD standard. Use H87 ('piece') or C62 ('one') instead")]
175180
PCE,
176181

182+
/// <summary>
183+
/// Paar
184+
/// Pair
185+
/// </summary>
186+
/// <remarks>
187+
/// A unit of count defining the number of pairs (pair: item described by two's).
188+
/// </remarks>
189+
PR,
190+
177191
/// <summary>
178192
/// Set
179193
/// Abkürzung: Set(s)
@@ -230,15 +244,7 @@ public enum QuantityCodes
230244
/// Karton
231245
/// Abkürzung: Kt
232246
/// </summary>
233-
XCT,
234-
235-
/// <summary>
236-
/// Paar
237-
/// </summary>
238-
/// <remarks>
239-
/// A unit of count defining the number of pairs (pair: item described by two's).
240-
/// </remarks>
241-
PR,
247+
XCT,
242248

243249
/// <summary>
244250
/// Palette
@@ -285,8 +291,62 @@ public enum QuantityCodes
285291
/// <remarks>
286292
/// 100 m^2
287293
/// </remarks>
288-
FF
294+
FF,
295+
296+
/// <summary>
297+
/// Rolle
298+
/// </summary>
299+
XRO,
300+
301+
/// <summary>
302+
/// Dose
303+
/// </summary>
304+
XTN,
305+
306+
/// <summary>
307+
/// Kanister
308+
/// </summary>
309+
XCI,
289310

311+
/// <summary>
312+
/// Tube
313+
/// </summary>
314+
XTU,
315+
316+
/// <summary>
317+
/// Beutel
318+
/// </summary>
319+
XBG,
320+
321+
/// <summary>
322+
/// (Papier) Bogen
323+
/// </summary>
324+
XST,
325+
326+
/// <summary>
327+
/// Sack
328+
/// </summary>
329+
XSA,
330+
331+
/// <summary>
332+
/// Fass
333+
/// </summary>
334+
XBA,
335+
336+
/// <summary>
337+
/// Eimer
338+
/// </summary>
339+
XBJ,
340+
341+
/// <summary>
342+
/// Gramm
343+
/// </summary>
344+
GRM,
345+
346+
/// <summary>
347+
/// Kit
348+
/// </summary>
349+
KT
290350
}
291351

292352

0 commit comments

Comments
 (0)