Skip to content

Commit c90f1ca

Browse files
Merge pull request #859 from MGGM-Software-GmbH/packquantity
define old QuantityCodes used in documentation\zugferd20\Beispiele\EX…
2 parents 9a7852f + 041dbe5 commit c90f1ca

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ZUGFeRD.Test/ZUGFeRD22Tests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3122,7 +3122,7 @@ public void TestSingleXRechnungStructuredManually()
31223122

31233123
MemoryStream ms = new MemoryStream();
31243124
desc.Save(ms, ZUGFeRDVersion.Version23, Profile.XRechnung, ZUGFeRDFormats.CII);
3125-
desc.Save("e:\\output.xml", ZUGFeRDVersion.Version23, Profile.XRechnung);
3125+
// desc.Save("e:\\output.xml", ZUGFeRDVersion.Version23, Profile.XRechnung);
31263126

31273127
var lines = new StreamReader(ms).ReadToEnd().Split(new[] { System.Environment.NewLine }, StringSplitOptions.None).ToList();
31283128

ZUGFeRD/QuantityCodes.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,26 +467,32 @@ public enum QuantityCodes
467467
/// <summary>
468468
/// Flasche
469469
/// Abkürzung: Fl
470+
/// Previously, BO was also used. This has been removed.
470471
/// </summary>
471472
/// <remarks>
472473
/// Bottle, non-protected, cylindrical
473474
/// A narrow-necked cylindrical shaped vessel without external protective packing material
474475
/// </remarks>
476+
[EnumStringValue("XBO", "BO")]
475477
XBO,
476478

477479
/// <summary>
478480
/// Karton
479481
/// Abkürzung: Kt
482+
/// Previously, CT was also used. This has been removed.
480483
/// </summary>
484+
[EnumStringValue("XCT", "CT")]
481485
XCT,
482486

483487
/// <summary>
484488
/// Palette
485489
/// Abkürzung: Pal
490+
/// Previously, PX was also used. This has been removed.
486491
/// </summary>
487492
/// <remarks>
488493
/// Platform or open-ended box, usually made of wood, on which goods are retained for ease of mechanical handling during transport and storage.
489494
/// </remarks>
495+
[EnumStringValue("XPX", "PX")]
490496
XPX,
491497

492498
/// <summary>
@@ -498,7 +504,9 @@ public enum QuantityCodes
498504
/// <summary>
499505
/// Kiste oder ein Gestell, das mehrere Flaschen sicher hält
500506
/// Bottlecrate / bottlerack
507+
/// Previously, BC was also used. This has been removed.
501508
/// </summary>
509+
[EnumStringValue("XBC", "BC")]
502510
XBC,
503511

504512
/// <summary>

0 commit comments

Comments
 (0)