mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Clean out a couple of unused variables left over from direct KVP.
This commit is contained in:
parent
09e8e245c4
commit
94fbf97f90
@ -1186,16 +1186,13 @@ GncInvoice * gncInvoiceGetInvoiceFromLot (GNCLot *lot)
|
|||||||
static void
|
static void
|
||||||
gncInvoiceAttachToTxn (GncInvoice *invoice, Transaction *txn)
|
gncInvoiceAttachToTxn (GncInvoice *invoice, Transaction *txn)
|
||||||
{
|
{
|
||||||
KvpFrame *kvp;
|
|
||||||
KvpValue *value;
|
|
||||||
|
|
||||||
if (!invoice || !txn)
|
if (!invoice || !txn)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (invoice->posted_txn) return; /* Cannot reset invoice's txn */
|
if (invoice->posted_txn) return; /* Cannot reset invoice's txn */
|
||||||
|
|
||||||
xaccTransBeginEdit (txn);
|
xaccTransBeginEdit (txn);
|
||||||
qof_instance_set (QOF_INSTANCE (txn), "invoice",
|
qof_instance_set (QOF_INSTANCE (txn), "invoice", //Prop INVOICE
|
||||||
qof_instance_get_guid (QOF_INSTANCE (invoice)), NULL);
|
qof_instance_get_guid (QOF_INSTANCE (invoice)), NULL);
|
||||||
xaccTransSetTxnType (txn, TXN_TYPE_INVOICE);
|
xaccTransSetTxnType (txn, TXN_TYPE_INVOICE);
|
||||||
xaccTransCommitEdit (txn);
|
xaccTransCommitEdit (txn);
|
||||||
|
Loading…
Reference in New Issue
Block a user