mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user