Improve handling of categoryCode

Charge returns the local field if is set.
IZUGFeRDExportableProduct: Use compareTo instead of equals to check the mathematical equality.
This commit is contained in:
Sebastian Sieber
2020-12-02 11:28:09 +01:00
parent 687d8f628c
commit 5e71863f8b
2 changed files with 8 additions and 1 deletions

View File

@@ -82,6 +82,13 @@ public class Charge implements IZUGFeRDAllowanceCharge {
return true;
}
@Override
public String getCategoryCode() {
if(categoryCode != null){
return categoryCode;
}
return IZUGFeRDAllowanceCharge.super.getCategoryCode();
}
public Charge setCategoryCode(String categoryCode) {