Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Gnucash/gnucash
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ecdcba50984019435c97317461594539b7ea10ba
Choose a base ref
..
head repository: Gnucash/gnucash
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b3edbd76d0615abf1467a91e777236a837555d52
Choose a head ref
Showing with 12 additions and 1 deletion.
  1. +12 −1 libgnucash/engine/gncBillTerm.cpp
13 changes: 12 additions & 1 deletion libgnucash/engine/gncBillTerm.cpp
Original file line number Diff line number Diff line change
@@ -334,7 +334,18 @@ void gncBillTermSetType (GncBillTerm *term, GncBillTermType type)
}

/** \brief Convert bill term types from text. */
FROM_STRING_FUNC(GncBillTermType, ENUM_TERMS_TYPE)
GncBillTermType GncBillTermTypefromString (const char *str)
{
if (str)
{
if (!strcmp (str, "GNC_TERM_TYPE_DAYS"))
return GNC_TERM_TYPE_DAYS;
else if (!strcmp (str, "GNC_TERM_TYPE_PROXIMO"))
return GNC_TERM_TYPE_PROXIMO;
}
PERR ("str cannot be %s", str);
return GNC_TERM_TYPE_DAYS;
}

static
void qofBillTermSetType (GncBillTerm *term, const char *type_label)