rem: if ( scheduled_transaction -> no_exercice == -2 )
add: if ( gsb_data_scheduled_get_financial_year_number (scheduled_number) == -2 )
context: gint gsb_scheduler_create_transaction_from_scheduled_transaction ( struct operation_echeance *scheduled_transaction ){    gint transaction_number;    transaction_number = gsb_data_transaction_new_transaction (scheduled_transaction -> compte);    /* begin to fill the new transaction */    gsb_data_transaction_set_date ( transaction_number,				    gsb_date_copy (scheduled_transaction -> date));    gsb_data_transaction_set_party_number ( transaction_number,					    scheduled_transaction -> tiers );    gsb_data_transaction_set_amount ( transaction_number,				      scheduled_transaction -> montant);    gsb_data_transaction_set_currency_number ( transaction_number,					       scheduled_transaction -> devise );    gsb_currency_check_for_change ( transaction_number );    gsb_data_transaction_set_method_of_payment_number ( transaction_number,							scheduled_transaction -> type_ope );    gsb_data_transaction_set_notes ( transaction_number,				     scheduled_transaction -> notes );    gsb_data_transaction_set_method_of_payment_content ( transaction_number,							 scheduled_transaction -> contenu_type );    gsb_data_transaction_set_automatic_transaction ( transaction_number,						     scheduled_transaction -> auto_man );    gsb_data_transaction_set_budgetary_number ( transaction_number,						scheduled_transaction -> imputation);    gsb_data_transaction_set_sub_budgetary_number ( transaction_number,						    scheduled_transaction -> sous_imputation);    /* if the financial year is automatic, we set it here */    if ( scheduled_transaction -> no_exercice == -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,							 scheduled_transaction -> no_exercice);    /* get the category */    gsb_scheduler_get_category_for_transaction_from_transaction ( transaction_number,								  scheduled_transaction );    /* we show the new transaction in the tree view */    gsb_transactions_list_append_new_transaction (transaction_number);    return transaction_number;}