rem: if ( gsb_transaction_data_get_currency_number ( gsb_transaction_data_get_transaction_number (transaction_1 ))== gsb_transaction_data_get_currency_number ( gsb_transaction_data_get_transaction_number (transaction_2 ))) return_value = gsb_transaction_data_get_amount ( gsb_transaction_data_get_transaction_number (transaction_2 ))- gsb_transaction_data_get_amount ( gsb_transaction_data_get_transaction_number (transaction_1 ));
add: if ( gsb_transaction_data_get_currency_number ( transaction_number_1)== gsb_transaction_data_get_currency_number ( transaction_number_2)) return_value = gsb_transaction_data_get_amount ( transaction_number_2)- gsb_transaction_data_get_amount ( transaction_number_1);
context: gint gsb_transactions_list_sort_by_debit ( GtkTreeModel *model,					   GtkTreeIter *iter_1,					   GtkTreeIter *iter_2,					   GtkSortType sort_type ){    gint return_value;    /*     general test first (white line, other rows of the transaction */    return_value = gsb_transactions_list_general_test ( model,							iter_1,							iter_2,							sort_type );    if ( return_value )	return return_value;    return_value = gsb_transactions_list_breakdown_test ( sort_type );    if ( return_value )	return return_value;    /* for the amounts, we have to check also the currency */    if ( fabs (gsb_transaction_data_get_amount ( gsb_transaction_data_get_transaction_number (transaction_1 ))- gsb_transaction_data_get_amount ( gsb_transaction_data_get_transaction_number (transaction_2 ))) < 0.01	 &&	 gsb_transaction_data_get_currency_number ( gsb_transaction_data_get_transaction_number (transaction_1 ))== gsb_transaction_data_get_currency_number ( gsb_transaction_data_get_transaction_number (transaction_2 )))	return_value = gsb_transactions_list_sort_by_transaction_date_and_no();    else    {	if ( gsb_transaction_data_get_currency_number ( gsb_transaction_data_get_transaction_number (transaction_1 ))== gsb_transaction_data_get_currency_number ( gsb_transaction_data_get_transaction_number (transaction_2 )))	    return_value = gsb_transaction_data_get_amount ( gsb_transaction_data_get_transaction_number (transaction_2 ))- gsb_transaction_data_get_amount ( gsb_transaction_data_get_transaction_number (transaction_1 ));	else	{	    gdouble amount_1, amount_2;	    amount_1 = gsb_transaction_data_get_adjusted_amount ( gsb_transaction_data_get_transaction_number (transaction_1));	    amount_2 = gsb_transaction_data_get_adjusted_amount ( gsb_transaction_data_get_transaction_number (transaction_2));	    return_value = amount_2 - amount_1;	}    }    if ( return_value )	return return_value;    else	return gsb_transactions_list_sort_by_transaction_date_and_no();}