mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix indents,
This commit is contained in:
parent
126dc3a790
commit
c28196fb06
@ -760,12 +760,12 @@ gnc_dialog_post_invoice(InvoiceWindow *iw, char *message,
|
|||||||
*ddue = *postdate;
|
*ddue = *postdate;
|
||||||
*memo = NULL;
|
*memo = NULL;
|
||||||
{
|
{
|
||||||
GncGUID *guid = NULL;
|
GncGUID *guid = NULL;
|
||||||
owner_inst = qofOwnerGetOwner (gncOwnerGetEndOwner (&(iw->owner)));
|
owner_inst = qofOwnerGetOwner (gncOwnerGetEndOwner (&(iw->owner)));
|
||||||
qof_instance_get (owner_inst,
|
qof_instance_get (owner_inst,
|
||||||
"invoice-last-posted-account", &guid,
|
"invoice-last-posted-account", &guid,
|
||||||
NULL);
|
NULL);
|
||||||
*acc = xaccAccountLookup (guid, iw->book);
|
*acc = xaccAccountLookup (guid, iw->book);
|
||||||
}
|
}
|
||||||
/* Get the default for the accumulate option */
|
/* Get the default for the accumulate option */
|
||||||
*accumulate = gnc_prefs_get_bool(GNC_PREFS_GROUP_INVOICE, GNC_PREF_ACCUM_SPLITS);
|
*accumulate = gnc_prefs_get_bool(GNC_PREFS_GROUP_INVOICE, GNC_PREF_ACCUM_SPLITS);
|
||||||
@ -957,12 +957,12 @@ gnc_invoice_post(InvoiceWindow *iw, struct post_invoice_params *post_params)
|
|||||||
*/
|
*/
|
||||||
owner_inst = qofOwnerGetOwner (gncOwnerGetEndOwner (&(iw->owner)));
|
owner_inst = qofOwnerGetOwner (gncOwnerGetEndOwner (&(iw->owner)));
|
||||||
{
|
{
|
||||||
const GncGUID *guid = qof_instance_get_guid (QOF_INSTANCE (acc));
|
const GncGUID *guid = qof_instance_get_guid (QOF_INSTANCE (acc));
|
||||||
qof_begin_edit (owner_inst);
|
qof_begin_edit (owner_inst);
|
||||||
qof_instance_set (owner_inst,
|
qof_instance_set (owner_inst,
|
||||||
"invoice-last-posted-account", guid,
|
"invoice-last-posted-account", guid,
|
||||||
NULL);
|
NULL);
|
||||||
qof_commit_edit (owner_inst);
|
qof_commit_edit (owner_inst);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ... post it ... */
|
/* ... post it ... */
|
||||||
|
Loading…
Reference in New Issue
Block a user