diff --git a/src/business/business-core/file/gnc-invoice-xml-v2.c b/src/business/business-core/file/gnc-invoice-xml-v2.c index 366b4ba46e..51ed835587 100644 --- a/src/business/business-core/file/gnc-invoice-xml-v2.c +++ b/src/business/business-core/file/gnc-invoice-xml-v2.c @@ -130,7 +130,7 @@ invoice_dom_tree_create (GncInvoice *invoice) xmlAddChild (ret, guid_to_dom_tree (invoice_posttxn_string, xaccTransGetGUID (txn))); - lot = gncInvoiceGetPostedlot (invoice); + lot = gncInvoiceGetPostedLot (invoice); if (lot) xmlAddChild (ret, guid_to_dom_tree (invoice_postlot_string, gnc_lot_get_guid (lot)));