rem: gint transaction_number;
add: gint transaction_number, payment_method;
context: gint gsb_scheduler_create_transaction_from_scheduled_transaction ( gint scheduled_number ){    gint transaction_number;    transaction_number = gsb_data_transaction_new_transaction (gsb_data_scheduled_get_account_number (scheduled_number));    /* begin to fill the new transaction */    gsb_data_transaction_set_date ( transaction_number,				    gsb_date_copy (gsb_data_scheduled_get_date (scheduled_number)));    gsb_data_transaction_set_party_number ( transaction_number,					    gsb_data_scheduled_get_party_number (scheduled_number));    gsb_data_transaction_set_amount ( transaction_number,				      gsb_data_scheduled_get_amount (scheduled_number));    gsb_data_transaction_set_currency_number ( transaction_number,					       gsb_data_scheduled_get_currency_number (scheduled_number));    gsb_currency_check_for_change ( transaction_number );    gsb_data_transaction_set_method_of_payment_number ( transaction_number,							gsb_data_scheduled_get_method_of_payment_number (scheduled_number));    gsb_data_transaction_set_notes ( transaction_number,				     gsb_data_scheduled_get_notes (scheduled_number));    gsb_data_transaction_set_method_of_payment_content ( transaction_number,							 gsb_data_scheduled_get_method_of_payment_content (scheduled_number));    gsb_data_transaction_set_automatic_transaction ( transaction_number,						     gsb_data_scheduled_get_automatic_scheduled (scheduled_number));    gsb_data_transaction_set_budgetary_number ( transaction_number,						gsb_data_scheduled_get_budgetary_number (scheduled_number));    gsb_data_transaction_set_sub_budgetary_number ( transaction_number,						    gsb_data_scheduled_get_sub_budgetary_number (scheduled_number));    /* if the financial year is automatic, we set it here */    if ( gsb_data_scheduled_get_financial_year_number (scheduled_number) == -2 )	gsb_data_transaction_set_financial_year_number ( transaction_number,							 recherche_exo_correspondant ( gsb_data_transaction_get_date (transaction_number)));    else	gsb_data_transaction_set_financial_year_number ( transaction_number,							 gsb_data_scheduled_get_financial_year_number (scheduled_number));    /* get the category */    gsb_scheduler_get_category_for_transaction_from_transaction ( transaction_number,								  scheduled_number );    /* we show the new transaction in the tree view */    gsb_transactions_list_append_new_transaction (transaction_number);    return transaction_number;}