Don't store prices of source invoice.

They're intended to be temporary, for creating splits. They're also already
stored from the transfer dialog.
This commit is contained in:
John Ralls 2015-08-22 09:17:49 +01:00
parent 9a611a2aca
commit e1b4e45de5

View File

@ -203,7 +203,7 @@ write_price( GNCPrice* p, gpointer data )
g_return_val_if_fail( p != NULL, FALSE );
g_return_val_if_fail( data != NULL, FALSE );
if ( s->is_ok )
if ( s->is_ok && strcmp(gnc_price_get_source(p), PRICE_SOURCE_INVOICE) != 0)
{
s->is_ok = save_price( s->be, QOF_INSTANCE(p) );
}