Fix the double assignment of invoices when using invoice setCorrection
This commit is contained in:
@@ -154,7 +154,6 @@ public class Invoice implements IExportableTransaction {
|
|||||||
*/
|
*/
|
||||||
public Invoice setCorrection(String number) {
|
public Invoice setCorrection(String number) {
|
||||||
setInvoiceReferencedDocumentID(number);
|
setInvoiceReferencedDocumentID(number);
|
||||||
addInvoiceReferencedDocument(new ReferencedDocument(number));
|
|
||||||
documentCode = DocumentCodeTypeConstants.CORRECTEDINVOICE;
|
documentCode = DocumentCodeTypeConstants.CORRECTEDINVOICE;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user