closes #761
This commit is contained in:
@@ -3,6 +3,10 @@
|
|||||||
#739
|
#739
|
||||||
#745
|
#745
|
||||||
#747
|
#747
|
||||||
|
#710
|
||||||
|
#712
|
||||||
|
#725
|
||||||
|
#761
|
||||||
|
|
||||||
2.16.2
|
2.16.2
|
||||||
=======
|
=======
|
||||||
|
|||||||
@@ -366,6 +366,29 @@ public class Item implements IZUGFeRDExportableItem {
|
|||||||
return Allowances.toArray(new IZUGFeRDAllowanceCharge[0]);
|
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
|
@Override
|
||||||
public IZUGFeRDAllowanceCharge[] getItemCharges() {
|
public IZUGFeRDAllowanceCharge[] getItemCharges() {
|
||||||
if (Charges.isEmpty()) {
|
if (Charges.isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user