set BuyerOrderReferencedDocument and correct TypeCode for correction

This commit is contained in:
Jochen Stärk
2020-09-24 18:33:01 +02:00
parent 7f5ae2036d
commit 5144758c2f
4 changed files with 7 additions and 4 deletions

View File

@@ -21,6 +21,7 @@
package org.mustangproject;
import org.mustangproject.ZUGFeRD.*;
import org.mustangproject.ZUGFeRD.model.DocumentCodeTypeConstants;
import java.math.BigDecimal;
import java.util.ArrayList;
@@ -87,7 +88,8 @@ public class Invoice implements IExportableTransaction {
* @return
*/
public Invoice setCorrection(String number) {
setBuyerOrderReferencedDocumentID(number);
documentCode= DocumentCodeTypeConstants.CORRECTEDINVOICE;
return this;
}