mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug #647360: Invoice entries in expense voucher are created in old voucher, not in new one.
It worked fine for customer invoices, and vendor bills, but not expense vouchers, where the feature was broken all along. BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20554 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
8a97eb1414
commit
b47790dbe5
@ -354,13 +354,15 @@ GncInvoice *gncInvoiceCopy (const GncInvoice *from)
|
||||
GncEntry *to_entry = gncEntryCreate(book);
|
||||
gncEntryCopy(from_entry, to_entry);
|
||||
|
||||
if (gncInvoiceGetOwnerType (invoice) == GNC_OWNER_VENDOR)
|
||||
switch (gncInvoiceGetOwnerType (invoice))
|
||||
{
|
||||
// this is a vendor bill
|
||||
case GNC_OWNER_VENDOR:
|
||||
case GNC_OWNER_EMPLOYEE:
|
||||
// this is a vendor bill, or an expense voucher
|
||||
gncBillAddEntry(invoice, to_entry);
|
||||
}
|
||||
else
|
||||
{
|
||||
break;
|
||||
case GNC_OWNER_CUSTOMER:
|
||||
default:
|
||||
// this is an invoice
|
||||
gncInvoiceAddEntry(invoice, to_entry);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user