This commit is contained in:
jstaerk
2025-03-03 08:02:42 +01:00
parent 6461dad8d3
commit 20a995af38
2 changed files with 27 additions and 0 deletions

View File

@@ -3,6 +3,10 @@
#739
#745
#747
#710
#712
#725
#761
2.16.2
=======

View File

@@ -366,6 +366,29 @@ public class Item implements IZUGFeRDExportableItem {
return Allowances.toArray(new IZUGFeRDAllowanceCharge[0]);
}
/***
* jackson convenience method
*/
public void setItemAllowances(ArrayList<Allowance> theAllowances) {
if (theAllowances!=null) {
Allowances.clear();
for (Allowance theAllowance : theAllowances) {
Allowances.add(theAllowance);
}
}
}
/***
* jackson convenience method
*/
public void setItemCharges(ArrayList<Charge> theCharges) {
if (theCharges!=null) {
Charges.clear();
for (Charge theCharge : theCharges) {
Charges.add(theCharge);
}
}
}
@Override
public IZUGFeRDAllowanceCharge[] getItemCharges() {
if (Charges.isEmpty()) {