-
-
Notifications
You must be signed in to change notification settings - Fork 181
Open
Description
In InvoiceDescriptor23CIIWriter.cs separated writing of specifiedTradeAllowance and specifiedTradeCharge changes the order of the resulting SpecifiedTradeAllowanceCharge in XML. While this is perfectly valid, it makes comparing with read/written documents difficult, for example comparing/testing "01.01_comprehensive_test_uncefact.xml" is difficult.
this is the code in InvoiceDescriptor23CIIWriter.cs:
#region SpecifiedTradeAllowanceCharge (Basic, Comfort, Extended, XRechnung)
//Abschläge auf Ebene der Rechnungsposition (Basic, Comfort, Extended, XRechnung)
if (descriptor.Profile.In(Profile.Basic, Profile.Comfort, Profile.Extended, Profile.XRechnung1, Profile.XRechnung))
{
foreach (TradeAllowance specifiedTradeAllowance in tradeLineItem.GetSpecifiedTradeAllowances()) // BG-28
{
_WriteItemLevelSpecifiedTradeAllowanceCharge(_Writer, specifiedTradeAllowance);
}
foreach (TradeCharge specifiedTradeCharge in tradeLineItem.GetSpecifiedTradeCharges()) // BG-28
{
_WriteItemLevelSpecifiedTradeAllowanceCharge(_Writer, specifiedTradeCharge);
}
}
#endregionMetadata
Metadata
Assignees
Labels
No labels