Bug 797051 - Follow up - Change defaults for new price

Set the default date of a new price to today and the value to 0
This commit is contained in:
Robert Fewell
2019-05-03 11:31:26 +01:00
parent 7c9f01ff3b
commit c782e7a4da

View File

@@ -618,9 +618,10 @@ gnc_price_edit_dialog (GtkWidget * parent,
if (price)
{
price = gnc_price_clone(price, pedit_dialog->book);
// } else {
// price = gnc_price_create (pedit_dialog->book);
gnc_price_set_source (price, PRICE_SOURCE_EDIT_DLG);
gnc_price_set_time64 (price, gnc_time (NULL));
gnc_price_set_value (price, gnc_numeric_zero ());
}
pedit_dialog->is_new = TRUE;