Skip to content

Commit c2a4961

Browse files
committed
2 parents 871a4c1 + 7fa97db commit c2a4961

File tree

2 files changed

+81
-4
lines changed

2 files changed

+81
-4
lines changed

ZUGFeRD/InvoiceDescriptor20Writer.cs

+7-4
Original file line numberDiff line numberDiff line change
@@ -674,10 +674,13 @@ public override void Save(InvoiceDescriptor descriptor, Stream stream, ZUGFeRDFo
674674
Writer.WriteOptionalElementString("ram", "ProprietaryID", creditorAccount.ID);
675675
Writer.WriteEndElement(); // !PayeePartyCreditorFinancialAccount
676676

677-
Writer.WriteStartElement("ram", "PayeeSpecifiedCreditorFinancialInstitution");
678-
Writer.WriteElementString("ram", "BICID", creditorAccount.BIC);
679-
Writer.WriteOptionalElementString("ram", "GermanBankleitzahlID", creditorAccount.Bankleitzahl);
680-
Writer.WriteEndElement(); // !PayeeSpecifiedCreditorFinancialInstitution
677+
if (!String.IsNullOrWhiteSpace(creditorAccount.BIC))
678+
{
679+
Writer.WriteStartElement("ram", "PayeeSpecifiedCreditorFinancialInstitution");
680+
Writer.WriteElementString("ram", "BICID", creditorAccount.BIC);
681+
Writer.WriteOptionalElementString("ram", "GermanBankleitzahlID", creditorAccount.Bankleitzahl);
682+
Writer.WriteEndElement(); // !PayeeSpecifiedCreditorFinancialInstitution
683+
}
681684
Writer.WriteEndElement(); // !SpecifiedTradeSettlementPaymentMeans
682685
}
683686

ZUGFeRD/QuantityCodes.cs

+74
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,80 @@ public enum QuantityCodes
659659
/// Einheit für die Masse von Edelsteinen. Abkürzung Kt oder ct (kein gesetzliches Einheitszeichen)
660660
/// </remarks>
661661
CTM,
662+
663+
/// <summary>
664+
/// Ampoule, non-protected
665+
/// </summary>
666+
XAM,
667+
668+
/// <summary>
669+
/// Ampoule, protected
670+
/// </summary>
671+
XAP,
672+
673+
/// <summary>
674+
/// Balloon, non-protected
675+
/// </summary>
676+
XBF,
677+
678+
/// <summary>
679+
/// Can, rectangular
680+
/// </summary>
681+
XCA,
682+
683+
/// <summary>
684+
/// Cask
685+
/// </summary>
686+
XCK,
687+
688+
/// <summary>
689+
/// Cartridge
690+
/// Package containing a charge such as propelling explosive for firearms or ink toner for a printer.
691+
/// </summary>
692+
XCQ,
693+
694+
/// <summary>
695+
/// Case
696+
/// </summary>
697+
XCS,
698+
699+
/// <summary>
700+
/// Can, cylindrical
701+
/// </summary>
702+
XCX,
703+
704+
/// <summary>
705+
/// Flask
706+
/// </summary>
707+
XFL,
708+
709+
/// <summary>
710+
/// Receptacle, glass
711+
/// Containment vessel made of glass for retaining substances or articles.
712+
/// </summary>
713+
XGR,
714+
715+
/// <summary>
716+
/// Unpacked or unpackaged
717+
/// </summary>
718+
XNE,
719+
720+
/// <summary>
721+
/// Container, outer
722+
/// A type of containment box that serves as the outer shipping container, not otherwise specified as transport equipment.
723+
/// </summary>
724+
XOU,
725+
726+
/// <summary>
727+
/// Pouch
728+
/// </summary>
729+
XPO,
730+
731+
/// <summary>
732+
/// Pot
733+
/// </summary>
734+
XPT,
735+
662736
}
663737

664738

0 commit comments

Comments
 (0)