Skip to content

Commit

Permalink
doc corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
jstaerk committed Sep 13, 2023
1 parent cdde3f2 commit 2edcec3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,7 @@ protected void writeDocumentInformation() {

/**
* Adds an OutputIntent and the sRGB color profile if no OutputIntent exist
* @throws IOException if the ICC file cannot be read or attached to doc
*/
protected void addSRGBOutputIntend()
throws IOException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ public void fromXML(String XML) {
}
}


/***
* This will parse a XML into the given invoice object
* @param zpp the invoice to be altered
* @return the parsed invoice object
* @throws XPathExpressionException if xpath could not be evaluated
* @throws ParseException if the grand total of the parsed invoice could not be replicated with the new invoice
*/
public Invoice extractInto(Invoice zpp) throws XPathExpressionException, ParseException {

String number = "";
Expand Down Expand Up @@ -357,6 +365,8 @@ public Invoice extractInto(Invoice zpp) throws XPathExpressionException, ParseEx
* This will parse a XML into a invoice object
*
* @return the parsed invoice object
* @throws XPathExpressionException if internal xpath expressions were wrong
* @throws ParseException if the grand total of the parsed invoice could not be replicated with the new invoice
*/
public Invoice extractInvoice() throws XPathExpressionException, ParseException {
Invoice i = new Invoice();
Expand All @@ -365,10 +375,17 @@ public Invoice extractInvoice() throws XPathExpressionException, ParseException

}

/***
* have the item prices be determined from the line total.
* That's a workaround for some invoices which just put 0 as item price
*/
public void doRecalculateItemPricesFromLineTotals() {
recalcPrice = true;
}

/***
* do not raise ParseExceptions even if the reproduced invoice total does not match the given value
*/
public void doIgnoreCalculationErrors() {
ignoreCalculationErrors = true;
}
Expand Down

0 comments on commit 2edcec3

Please sign in to comment.