add document level billing period
This commit is contained in:
@@ -516,6 +516,18 @@ public class ZUGFeRD2PullProvider implements IXMLProvider {
|
||||
+ "</ram:RateApplicablePercent>\n" + " </ram:ApplicableTradeTax>\n"; //$NON-NLS-2$
|
||||
|
||||
}
|
||||
}
|
||||
if ((trans.getOccurrencePeriodFrom()!=null) || (trans.getOccurrencePeriodTo()!=null)) {
|
||||
xml=xml+"<ram:BillingSpecifiedPeriod>";
|
||||
if (trans.getOccurrencePeriodFrom()!=null) {
|
||||
xml=xml+"<ram:StartDateTime><udt:DateTimeString format='102'>"+zugferdDateFormat.format(trans.getOccurrencePeriodFrom())+"</udt:DateTimeString></ram:StartDateTime>";
|
||||
}
|
||||
if (trans.getOccurrencePeriodTo()!=null) {
|
||||
xml=xml+"<ram:EndDateTime><udt:DateTimeString format='102'>"+zugferdDateFormat.format(trans.getOccurrencePeriodTo())+"</udt:DateTimeString></ram:EndDateTime>";
|
||||
}
|
||||
xml=xml+"</ram:BillingSpecifiedPeriod>";
|
||||
|
||||
|
||||
}
|
||||
|
||||
if ((trans.getZFCharges()!=null)&&(trans.getZFCharges().length>0)) {
|
||||
|
||||
Reference in New Issue
Block a user