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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user