Skip to content

Commit

Permalink
correction tradeparty
Browse files Browse the repository at this point in the history
  • Loading branch information
jstaerk committed Nov 14, 2024
1 parent 9c20296 commit c035b11
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.mustangproject.Exceptions;

import java.text.ParseException;

/***
* will be thrown if a invoice cant be reproduced numerically
*/
public class ArithmetricException extends ParseException {
public ArithmetricException() {
super(
"Could not reproduce the invoice, this could mean that it could not be read properly", 0);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package org.mustangproject.Exceptions;

import java.text.ParseException;

/***
* will be thrown if a invoice cant be read
*/
public class StructureException extends ParseException {
public StructureException(String message, int line) {
super(message, line);
}
}
4 changes: 2 additions & 2 deletions library/src/main/java/org/mustangproject/TradeParty.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class TradeParty implements IZUGFeRDExportableTradeParty {

protected String name, zip, street, location, taxScheme;
protected String name, zip, street, location, country, taxScheme;
protected String taxID = null, vatID = null;
protected String ID = null;
protected String description = null;
Expand Down Expand Up @@ -58,7 +58,7 @@ public TradeParty(String name, String street, String zip, String location, Strin
this.street = street;
this.zip = zip;
this.location = location;
this.taxScheme = country;
this.country = country;

}

Expand Down

0 comments on commit c035b11

Please sign in to comment.