mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Assert that the invoice type is never an unknown type.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21412 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -1165,9 +1165,12 @@ gboolean gncInvoiceAmountPositive (const GncInvoice *invoice)
|
||||
case GNC_INVOICE_CUST_CREDIT_NOTE:
|
||||
case GNC_INVOICE_VEND_INVOICE:
|
||||
case GNC_INVOICE_EMPL_INVOICE:
|
||||
case GNC_INVOICE_UNDEFINED:
|
||||
return FALSE;
|
||||
case GNC_INVOICE_UNDEFINED:
|
||||
default:
|
||||
/* Should never be reached.
|
||||
* If it is, perhaps a new value is added to GncInvoiceType ? */
|
||||
g_assert_not_reached();
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user