testImmobilisation.py 286 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
##############################################################################
#
# Copyright (c) 2004 Nexedi SARL and Contributors. All Rights Reserved.
#          Guillaume MICHON <guillaume@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# garantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################



#
# Skeleton ZopeTestCase
#

from random import randint

import os, sys
if __name__ == '__main__':
    execfile(os.path.join(sys.path[0], 'framework.py'))

# Needed in order to have a log file inside the current folder
os.environ['EVENT_LOG_FILE'] = os.path.join(os.getcwd(), 'zLOG.log')
os.environ['EVENT_LOG_SEVERITY'] = '-300'

from Testing import ZopeTestCase
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from AccessControl.SecurityManagement import newSecurityManager, noSecurityManager
from DateTime import DateTime
from Acquisition import aq_base, aq_inner
from zLOG import LOG
from Products.ERP5Type.tests.Sequence import Sequence, SequenceList
import time
from copy import deepcopy
  

class TestImmobilisation(ERP5TypeTestCase):

  # Different variables used for this test
  run_all_test = 1
  source_company_id = 'Nexedi'
  sale_manager_id = 'guillaume'
  first_name1 = 'Guillaume'
  last_name1 = 'MICHON'
  
  item_portal_type = 'Nexedi VPN'
  item_module_name = 'vpn'
  
  item_id_list = ['vpn_1', 'vpn_2', 'vpn_3', 'vpn_4', 'vpn_5', 'vpn_6', 'vpn_7', 'vpn_8', 'vpn_9', 'vpn_10', 'vpn_11', 'vpn_12']
                  
  
  currency_list = [ 'EUR', 'USD' ]
  
  organisation_data_list = [ 
        { 'id':'nexedi', 'end_date':DateTime('2004/01/01'), 'currency':'EUR' },
        { 'id':'coramy', 'end_date':DateTime('2003/04/01'), 'currency':'EUR' }
     ]
     
     
  delivery_type = "Purchase Packing List"
  delivery_line_data_list = [
      { 'id':'1_1', 'parent_id':'1', 'items':['vpn_1', 'vpn_2', 'vpn_3'], 'date':'2000/01/01', 'source_section':None, 'destination_section':'nexedi' },
      { 'id':'4_1', 'parent_id':'2', 'items':['vpn_4'], 'date':'2002/06/14', 'source_section':None, 'destination_section':'nexedi' },
      { 'id':'4_2', 'parent_id':'3', 'items':['vpn_4'], 'date':'2003/03/15', 'source_section':'nexedi', 'destination_section':'coramy' },
      { 'id':'4_3', 'parent_id':'4', 'items':['vpn_4'], 'date':'2003/06/15', 'source_section':'coramy', 'destination_section':None },
      { 'id':'4_4', 'parent_id':'5', 'items':['vpn_4'], 'date':'2003/12/18', 'source_section':None, 'destination_section':None },
      { 'id':'5_1', 'parent_id':'6', 'items':['vpn_5', 'vpn_6'], 'date':'2000/01/01', 'source_section':None, 
                                                                                'destination_section':'nexedi'},
      { 'id':'5_2', 'parent_id':'7', 'items':['vpn_5', 'vpn_6'], 'date':'2003/03/12', 'source_section':'nexedi', 
                                                                                'destination_section':'coramy' },
      { 'id':'5_3', 'parent_id':'8', 'items':['vpn_5', 'vpn_6'], 'date':'2005/01/01', 'source_section':'coramy', 
                                                                                'destination_section':'nexedi'},
      { 'id':'7_1', 'parent_id':'9', 'items':['vpn_7'], 'date':'2000/01/01', 'source_section':None, 'destination_section':'nexedi' },
      { 'id':'7_2', 'parent_id':'9', 'items':['vpn_7'], 'date':'2003/03/12', 'source_section':'nexedi', 'destination_section':'coramy' },
      { 'id':'7_3', 'parent_id':'9', 'items':['vpn_7'], 'date':'2006/06/23', 'source_section':'coramy', 'destination_section':'nexedi' },
      { 'id':'7_4', 'parent_id':'9', 'items':['vpn_7'], 'date':'2007/02/01', 'source_section':'nexedi', 'destination_section':'coramy' },
        
     ]
     
  
  account_data_list = [
        { 'id':'amortisation_1'  , 'pcg_id':'2/28/281/2811' },
        { 'id':'amortisation_2'  , 'pcg_id':'2/28/281/2812' },
        { 'id':'amortisation_3'  , 'pcg_id':'2/28/281/2813' },
        { 'id':'immobilisation_1', 'pcg_id':'2/21/211'      },
        { 'id':'immobilisation_2', 'pcg_id':'2/21/212'      },
        { 'id':'immobilisation_3', 'pcg_id':'2/21/213'      },
        { 'id':'vat_1'           , 'pcg_id':'4/44/444'      },
        { 'id':'vat_2'           , 'pcg_id':'4/44/445'      },
        { 'id':'vat_3'           , 'pcg_id':'4/44/447'      },
        { 'id':'in_out_1'        , 'pcg_id':'3/32'          },
        { 'id':'in_out_2'        , 'pcg_id':'3/33'          },
        { 'id':'in_out_3'        , 'pcg_id':'3/34'          },
        { 'id':'in_out_4'        , 'pcg_id':'3/35'          },
        { 'id':'in_out_5'        , 'pcg_id':'3/37'          },
        { 'id':'in_out_6'        , 'pcg_id':'3/39'          },
        { 'id':'depreciation_1'  , 'pcg_id':'6/68/681'      },
        { 'id':'depreciation_2'  , 'pcg_id':'6/68/681/6811' },
        { 'id':'depreciation_3'  , 'pcg_id':'6/68/681/6815' } ]
  
  
  immobilisation_movement_data_list = {
          # coef is optional in case of linear amortisation
          'linear_1' :        { 'value':300000., 'type':'linear',     'date':DateTime("2002/02/01"), 'amo_acc':'amortisation_1',
                                'vat' : 30000.,  'immobilisation': 1, 'immo_acc':'immobilisation_1', 'vat_acc':'vat_1', 'coef':2.5,
                                'item':'vpn_1',  'in_acc':'in_out_1', 'out_acc' : 'in_out_2',        'depr_acc' : 'depreciation_1',
                                'duration' : 36,
                              },
          'linear_2' :        { 'date':DateTime("2003/09/14"), 'immobilisation':0, 'item':'vpn_1' },
          'linear_3' :        { 'value':100000., 'type':'linear',     'date':DateTime("2004/02/01"), 'amo_acc':'amortisation_1',
                                'vat'  : 10000., 'immobilisation': 1, 'immo_acc':'immobilisation_1', 'vat_acc':'vat_1',
                                'item':'vpn_1',  'in_acc':'in_out_1', 'out_acc' : 'in_out_2',        'depr_acc':'depreciation_1',
                                'duration' : 12
                              },
          'linear_4' :        { 'value': 50000., 'type':'linear',     'date':DateTime("2005/01/01"), 'amo_acc':'amortisation_1',
                                'vat' :   2000., 'immobilisation': 1, 'immo_acc':'immobilisation_1', 'vat_acc':'vat_1',
                                'item':'vpn_1',  'in_acc':'in_out_1', 'out_acc' : 'in_out_2',        'depr_acc':'depreciation_1',
                                'duration' : 5
                              },
          'degressive_1' :    { 'value':300000., 'type':'degressive', 'date':DateTime("2002/02/01"), 'amo_acc':'amortisation_1',
                                'vat' :  30000., 'immobilisation': 1, 'immo_acc':'immobilisation_1', 'vat_acc':'vat_1', 'coef':2.5,
                                'item':'vpn_2', 'in_acc':'in_out_1',  'out_acc' :'in_out_2',         'depr_acc' : 'depreciation_1',
                                'duration' : 120
                              },
          'degressive_2' :    { 'date':DateTime("2003/09/14"), 'immobilisation': 0,'item':'vpn_2' },
          'degressive_3' :    { 'value':169824.22, 'type':'degressive', 'date':DateTime("2004/02/01"), 'amo_acc':'amortisation_1',
146
                                'vat' :  16982.422, 'immobilisation': 1, 'immo_acc':'immobilisation_1', 'vat_acc':'vat_1', 'coef':2.5,
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717
                                'item':'vpn_2', 'in_acc':'in_out_1',  'out_acc' :'in_out_2',         'depr_acc' : 'depreciation_1',
                                'duration' : 96
                              },
          'degressive_4' :    { 'value':100000., 'type':'degressive', 'date':DateTime("2005/01/01"), 'amo_acc':'amortisation_1',
                                'vat' :   5000., 'immobilisation': 1, 'immo_acc':'immobilisation_1', 'vat_acc':'vat_1', 'coef':2.5,
                                'item':'vpn_2', 'in_acc':'in_out_1',  'out_acc' :'in_out_2',         'depr_acc' : 'depreciation_1',
                                'duration' : 85
                              },
          'same_day_1' :      { 'date':DateTime("2003/01/01"), 'immobilisation':0, 'item':'vpn_3' },
          'same_day_2' :      { 'value':100000., 'type':'linear',     'date':DateTime("2003/01/01"), 'amo_acc':'amortisation_1',
                                'vat' :   5000., 'immobilisation': 1, 'immo_acc':'immobilisation_1', 'vat_acc':'vat_1', 'coef':2.5,
                                'item':'vpn_3', 'in_acc':'in_out_1',  'out_acc' :'in_out_2',         'depr_acc' : 'depreciation_1',
                                'duration' : 36 },
          'same_day_3' :      { 'date':DateTime("2003/01/01"), 'immobilisation':0, 'item':'vpn_3' },
          'same_day_4' :      { 'value':200000., 'type':'linear',     'date':DateTime("2003/01/01"), 'amo_acc':'amortisation_1',
                                'vat' :   5000., 'immobilisation': 1, 'immo_acc':'immobilisation_1', 'vat_acc':'vat_1', 'coef':2.5,
                                'item':'vpn_3', 'in_acc':'in_out_1',  'out_acc' :'in_out_2',         'depr_acc' : 'depreciation_1',
                                'duration' : 36 },
          'owner_change_1_1' :{ 'value': 30000., 'type':'linear',     'date':DateTime("2001/01/01"), 'amo_acc':'amortisation_1',
                                'vat' :   3000., 'immobilisation': 1, 'immo_acc':'immobilisation_1', 'vat_acc':'vat_1', 'coef':2.5,
                                'item':'vpn_4', 'in_acc':'in_out_1',  'out_acc' :'in_out_2',         'depr_acc' : 'depreciation_1',
                                'duration' : 36 },
          'owner_change_1_2' :{ 'date':DateTime("2001/03/01"), 'immobilisation':0, 'item':'vpn_4' },
          'owner_change_1_3' :{ 'value': 20000., 'type':'linear',     'date':DateTime("2002/07/06"), 'amo_acc':'amortisation_1',
                                'vat' :   2000., 'immobilisation': 1, 'immo_acc':'immobilisation_1', 'vat_acc':'vat_1', 'coef':2.5,
                                'item':'vpn_4', 'in_acc':'in_out_1',  'out_acc' :'in_out_2',         'depr_acc' : 'depreciation_1',
                                'duration' : 24 },
          'owner_change_2_1' :{ 'value':100000., 'type':'linear',     'date':DateTime("2001/01/01"), 'amo_acc':'amortisation_1',
                                'vat' :  10000., 'immobilisation': 1, 'immo_acc':'immobilisation_1', 'vat_acc':'vat_1', 'coef':2.5,
                                'item':'vpn_5', 'in_acc':'in_out_1',  'out_acc' :'in_out_2',         'depr_acc' : 'depreciation_1',
                                'duration' : 120 },
          'owner_change_2_2' :{ 'date':DateTime("2002/12/01"), 'immobilisation':0, 'item':'vpn_5' },
          'owner_change_2_3' :{ 'value': 50000., 'type':'linear',     'date':DateTime("2003/03/12") - 1/25., 'amo_acc':'amortisation_1',
                                'vat' :   5000., 'immobilisation': 1, 'immo_acc':'immobilisation_1', 'vat_acc':'vat_1', 'coef':2.5,
                                'item':'vpn_5', 'in_acc':'in_out_1',  'out_acc' :'in_out_2',         'depr_acc' : 'depreciation_1',
                                'duration' : 60 },
          'owner_change_2_4' :{ 'date':DateTime("2004/08/15"), 'immobilisation':0, 'item':'vpn_5' },
          'owner_change_2_5' :{ 'value': 20000., 'type':'linear',     'date':DateTime("2005/01/01") - 1/25., 'amo_acc':'amortisation_1',
                                'vat' :   2000., 'immobilisation': 1, 'immo_acc':'immobilisation_1', 'vat_acc':'vat_1', 'coef':2.5,
                                'item':'vpn_5', 'in_acc':'in_out_1',  'out_acc' :'in_out_2',         'depr_acc' : 'depreciation_1',
                                'duration' : 2 },
          'owner_change_3_1' :{ 'value':100000., 'type':'linear',     'date':DateTime("2001/01/01"), 'amo_acc':'amortisation_1',
                                'vat' :  10000., 'immobilisation': 1, 'immo_acc':'immobilisation_1', 'vat_acc':'vat_1', 'coef':2.5,
                                'item':'vpn_6', 'in_acc':'in_out_1',  'out_acc' :'in_out_2',         'depr_acc' : 'depreciation_1',
                                'duration' : 120 },
          'owner_change_3_2' :{ 'date':DateTime("2002/12/01"), 'immobilisation':0, 'item':'vpn_6' },
          'owner_change_3_3' :{ 'value': 50000., 'type':'linear',     'date':DateTime("2003/03/12") + 1/25., 'amo_acc':'amortisation_1',
                                'vat' :   5000., 'immobilisation': 1, 'immo_acc':'immobilisation_1', 'vat_acc':'vat_1', 'coef':2.5,
                                'item':'vpn_6', 'in_acc':'in_out_1',  'out_acc' :'in_out_2',         'depr_acc' : 'depreciation_1',
                                'duration' : 60 },
          'owner_change_3_4' :{ 'date':DateTime("2004/08/15"), 'immobilisation':0, 'item':'vpn_6' },
          'owner_change_3_5' :{ 'value': 20000., 'type':'linear',     'date':DateTime("2005/01/01") + 1/25., 'amo_acc':'amortisation_1',
                                'vat' :   2000., 'immobilisation': 1, 'immo_acc':'immobilisation_1', 'vat_acc':'vat_1', 'coef':2.5,
                                'item':'vpn_6', 'in_acc':'in_out_1',  'out_acc' :'in_out_2',         'depr_acc' : 'depreciation_1',
                                'duration' : 2 },
          'complex_1' :       { 'value':300000., 'type':'linear',     'date':DateTime("2001/06/12"), 'amo_acc':'amortisation_1',
                                'vat' :  30000., 'immobilisation': 1, 'immo_acc':'immobilisation_1', 'vat_acc':'vat_1', 'coef':2.5,
                                'item':'vpn_7', 'in_acc':'in_out_1',  'out_acc' :'in_out_2',         'depr_acc' : 'depreciation_1',
                                'duration' : 120 },
          'complex_2' :       { 'date':DateTime("2001/12/15"), 'immobilisation':0, 'item':'vpn_7' },
          'complex_3' :       { 'value':284712.33, 'type':'linear',     'date':DateTime("2002/06/01"), 'amo_acc':'amortisation_1',
                                'vat' :  28471.23, 'immobilisation': 1, 'immo_acc':'immobilisation_1', 'vat_acc':'vat_1', 'coef':2.5,
                                'item':'vpn_7', 'in_acc':'in_out_1',  'out_acc' :'in_out_2',         'depr_acc' : 'depreciation_1',
                                'duration' : 114 },
          'complex_4' :       { 'value':200000., 'type':'degressive',   'date':DateTime("2003/03/12")- 1/25., 'amo_acc':'amortisation_2',
                                'vat' :  15000., 'immobilisation': 1, 'immo_acc':'immobilisation_2', 'vat_acc':'vat_2', 'coef':2.5,
                                'item':'vpn_7', 'in_acc':'in_out_3',  'out_acc' :'in_out_4',         'depr_acc' : 'depreciation_2',
                                'duration' : 120 },
          'complex_5' :       { 'date':DateTime("2003/12/30"), 'immobilisation':0, 'item':'vpn_7' },
          'complex_6' :       { 'value':150000., 'type':'linear',   'date':DateTime("2006/06/24"), 'amo_acc':'amortisation_3',
                                'vat' :  15000., 'immobilisation': 1, 'immo_acc':'immobilisation_3', 'vat_acc':'vat_3', 'coef':2.5,
                                'item':'vpn_7', 'in_acc':'in_out_5',  'out_acc' :'in_out_6',         'depr_acc' : 'depreciation_3',
                                'duration' : 15 },
          'complex_7' :       { 'date':DateTime("2007/02/01") + 1/25., 'immobilisation':0, 'item':'vpn_7' },
                                
            }

            
  immobilisation_movement_list = { 'linear'     :['linear_1', 'linear_2', 'linear_3', 'linear_4'],
                                   'degressive' :['degressive_1', 'degressive_2', 'degressive_3', 'degressive_4'],
                                   'same_day'   :['same_day_1', 'same_day_2', 'same_day_3', 'same_day_4'],
                                   'owner_change_1':['owner_change_1_1', 'owner_change_1_2', 'owner_change_1_3'],
                                   'owner_change_2':['owner_change_2_1', 'owner_change_2_2', 'owner_change_2_3', 'owner_change_2_4',
                                                     'owner_change_2_5'],
                                   'owner_change_3':['owner_change_3_1', 'owner_change_3_2', 'owner_change_3_3', 'owner_change_3_4',
                                                     'owner_change_3_5'],
                                   'complex'    :['complex_1', 'complex_2', 'complex_3', 'complex_4', 'complex_5', 'complex_6',   
                                                  'complex_7'] } 


  validation_switch_list = { 'linear' :     [0,1,0],
                             'degressive' : [0,1,0] }
  
  
  simulation_value_list = { 
            'linear': [ 
                              [ # immobilisation start
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   330000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':  - 30000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 91506.85,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':   91506.85,           'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':   100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':   100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': - 8493.15,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':   8493.15,            'destination_section':None, 'destination':None, },
                              ], # linear_1
                              
                              [ # immobilisation start
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   330000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  30000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  91506.85,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    91506.85,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  70136.99,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    70136.99,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': - 161643.84,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': - 152191.78,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':    13835.62,          'destination_section':None, 'destination':None, },
                              ], # linear_1, linear_2
                              
                              [ # immobilisation start
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   330000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  30000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  91506.85,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    91506.85,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  70136.99,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    70136.99,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': - 161643.84,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': - 152191.78,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':    13835.62,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   110000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  10000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  91780.82,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    91780.82,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   8219.18,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     8219.18,          'destination_section':None, 'destination':None, },
                              ], # linear_1, linear_2, linear_3
                              
                              [ # immobilisation start
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   330000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  30000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  91506.85,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    91506.85,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  70136.99,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    70136.99,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': - 161643.84,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': - 152191.78,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':    13835.62,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   110000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  10000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  91780.82,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    91780.82,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  91780.82,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': -   9041.10,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':      821.92,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': -  50000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':    52000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -   2000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  50000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    50000.,            'destination_section':None, 'destination':None, },
                              ], # linear_1, linear_2, linear_3, linear_4
                              
                              
                              [ # immobilisation start
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   110000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  10000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  91780.82,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    91780.82,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  91780.82,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': -   9041.10,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':      821.92,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': -  50000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':    52000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -   2000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  50000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    50000.,            'destination_section':None, 'destination':None, },
                              ], # linear_2, linear_3, linear_4
                              
                              [ # immobilisation start
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   110000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  10000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  91780.82,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    91780.82,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  91780.82,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': -   9041.10,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':      821.92,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': -  50000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':    52000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -   2000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  50000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    50000.,            'destination_section':None, 'destination':None, },
                              ], # linear_3, linear_4
                              
                              [ # immobilisation start
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   330000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  30000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  91506.85,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    91506.85,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': - 100000.  ,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':   100000.  ,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   8493.15,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     8493.15,          'destination_section':None, 'destination':None, },
                                # immobilisation end and start
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':'nexedi', 'destination':'immobilisation_1', },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   110000.,            'destination_section':'nexedi', 'destination':'in_out_2', },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  10000.,            'destination_section':'nexedi', 'destination':'vat_1', },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':   200000.,            'destination_section':'nexedi', 'destination':'amortisation_1', },
                                # annuities
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 91780.82,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    91780.82,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  91780.82,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': -   9041.10,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':      821.92,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': -  50000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':    52000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -   2000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  50000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    50000.,            'destination_section':None, 'destination':None, },
                              ], # linear_1, linear_3, linear_4
                              
                              
                      ],
                        
            'degressive': [ 
                              [ # immobilisation start
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   330000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':  - 30000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 68750.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    68750.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  57812.50,         'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    57812.50,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  43359.38,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    43359.38,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  32519.53,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    32519.53,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  24389.65,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    24389.65,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  18292.24,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    18292.24,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  13719.18,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    13719.18,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  13719.18,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    13719.18,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  13719.18,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    13719.18,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2012/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  13719.18,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2012/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    13719.18,            'destination_section':None, 'destination':None, },
                              ], # degressive_1
                              
                              [ # immobilisation start
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   330000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  30000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 68750.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    68750.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  43359.38,         'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    43359.38,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': - 112109.38,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': - 206679.69,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':    18789.06,          'destination_section':None, 'destination':None, },
                              ], # degressive_1, degressive_2
                              
                              [ # immobilisation start
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   330000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  30000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 68750.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    68750.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  43359.38,         'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    43359.38,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': - 112109.38,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': - 206679.69,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':    18789.06,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 169824.22,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   186806.64,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  16982.42,          'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  48647.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    48647.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  37867.71,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    37867.71,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  26034.05,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    26034.05,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  17898.41,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    17898.41,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  12305.16,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    12305.16,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   9023.78,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     9023.78,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   9023.78,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     9023.78,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2012/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   9023.78,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2012/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     9023.78,          'destination_section':None, 'destination':None, },
                              ], # degressive_1, degressive_2, degressive_3
                              
                              [ # immobilisation start
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   330000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  30000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 68750.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    68750.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  43359.38,         'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    43359.38,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': - 112109.38,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': - 206679.69,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/09/14'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':    18789.06,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 169824.22,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   186806.64,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  16982.42,          'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  48647.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    48647.56,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   169824.22,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  48647.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_2',
718
                                  'value': - 133294.32,          'destination_section':None, 'destination':None, },
719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':    12117.67,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   105000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -   5000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  31250.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    31250.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  21484.38,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    21484.38,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  14770.51,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    14770.51,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  10154.72,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10154.72,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   6981.37,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     6981.37,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2012/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2012/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2013/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2013/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     5119.67,            'destination_section':None, 'destination':None, },
                              ], # degressive_1, degressive_2, degressive_3, degressive_4
                              
                              
                              [ # immobilisation start
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 169824.22,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   186806.64,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  16982.42,          'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  48647.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    48647.56,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   169824.22,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  48647.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_2',
782
                                  'value': - 133294.32,          'destination_section':None, 'destination':None, },
783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':    12117.67,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   105000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -   5000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  31250.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    31250.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  21484.38,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    21484.38,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  14770.51,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    14770.51,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  10154.72,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10154.72,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   6981.37,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     6981.37,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2012/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2012/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2013/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2013/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     5119.67,            'destination_section':None, 'destination':None, },
                              ], # degressive_2, degressive_3, degressive_4
                              
                              [ # immobilisation start
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 169824.22,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   186806.64,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  16982.42,          'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  48647.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    48647.56,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   169824.22,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  48647.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_2',
845
                                  'value': - 133294.32,          'destination_section':None, 'destination':None, },
846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':    12117.67,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   105000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -   5000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  31250.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    31250.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  21484.38,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    21484.38,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  14770.51,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    14770.51,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  10154.72,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10154.72,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   6981.37,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     6981.37,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2012/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2012/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2013/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2013/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     5119.67,            'destination_section':None, 'destination':None, },
                              ], # degressive_3, degressive_4
                              
                              [ # immobilisation start
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   330000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  30000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 68750.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    68750.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  57812.50,         'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    57812.50,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   3613.28,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     3613.28,          'destination_section':None, 'destination':None, },
                                # immobilisation end and start
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':'nexedi', 'destination':'immobilisation_1', },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   186806.64,          'destination_section':'nexedi', 'destination':'in_out_2', },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  16982.42,          'destination_section':'nexedi', 'destination':'vat_1', },
                                { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':   130175.78,            'destination_section':'nexedi', 'destination':'amortisation_1', },
                                # annuities
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  48647.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    48647.56,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   169824.22,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  48647.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_2',
930
                                  'value': - 133294.32,          'destination_section':None, 'destination':None, },
931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':    12117.67,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   105000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -   5000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  31250.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    31250.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  21484.38,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    21484.38,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  14770.51,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    14770.51,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -  10154.72,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10154.72,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   6981.37,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     6981.37,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2012/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2012/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2013/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value': -   5119.67,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2013/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     5119.67,            'destination_section':None, 'destination':None, },
                              ], # degressive_1, degressive_3, degressive_4
                        
                          ],
                          
            'same_day': [ 
                              [ ],
                              [ # immobilisation start
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   105000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -   5000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 33333.33,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    33333.33,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 33333.33,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    33333.33,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 33333.33,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    33333.33,          'destination_section':None, 'destination':None, },
                               ], # same_day_1, same_day_2
                               
                              [ # immobilisation start
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   105000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -   5000.,            'destination_section':None, 'destination':None, },
                              ], # same_day_1, same_day_2, same_day_3
                              
                              [ # immobilisation start
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   105000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -   5000.,            'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 200000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   205000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -   5000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
1026
                                  'value':  - 66666.67,          'destination_section':None, 'destination':None, },
1027
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
1028
                                  'value':    66666.67,          'destination_section':None, 'destination':None, },
1029
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
1030
                                  'value':  - 66666.67,          'destination_section':None, 'destination':None, },
1031
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
1032
                                  'value':    66666.67,          'destination_section':None, 'destination':None, },
1033
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
1034
                                  'value':  - 66666.67,          'destination_section':None, 'destination':None, },
1035
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
1036
                                  'value':    66666.67,          'destination_section':None, 'destination':None, },
1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240
                              ], # same_day_1, same_day_2, same_day_3, same_day_4
                        ],
                       
      'owner_change_1': [ 
                              [ ],
                              [ ],
                              [ # immobilisation start
                                { 'date':DateTime('2002/07/06'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': -  20000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/07/06'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':    22000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/07/06'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -   2000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  4904.11,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     4904.11,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  2000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     2000.,            'destination_section':None, 'destination':None, },
                                # immobilisation end and start
                                { 'date':DateTime('2003/03/15'), 'source_section':'coramy', 'source':'immobilisation_1',
                                  'value': -  20000.,            'destination_section':'nexedi', 'destination':'immobilisation_1', },
                                { 'date':DateTime('2003/03/15'), 'source_section':'coramy', 'source':'in_out_2',
                                  'value':    14405.48,          'destination_section':'nexedi', 'destination':'in_out_2', },
                                { 'date':DateTime('2003/03/15'), 'source_section':'coramy', 'source':'vat_1',
                                  'value': -   1309.59,          'destination_section':'nexedi', 'destination':'vat_1', },
                                { 'date':DateTime('2003/03/15'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':     6904.11,          'destination_section':'nexedi', 'destination':'amortisation_1', },
                                # annuities
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -   457.46,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':      457.46,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -  9821.92,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':     9821.92,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -  2816.51,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':     2816.51,          'destination_section':None, 'destination':None, },
                                
                              ]                                
                              
                         ],
       
       'owner_change_2': [ 
                              [ # immobilisation start
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   110000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  10000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  1917.81,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     1917.81,          'destination_section':None, 'destination':None, },
                                # immobilisation end and start
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':'nexedi', 'destination':'immobilisation_1', },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'in_out_2',
                                  'value':    85890.41,          'destination_section':'nexedi', 'destination':'in_out_2', },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'vat_1',
                                  'value': -   7808.22,          'destination_section':'nexedi', 'destination':'vat_1', },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':    21917.81,          'destination_section':'nexedi', 'destination':'amortisation_1', },
                                # annuities
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -   546.19,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':      546.19,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -  9967.94,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':     9967.94,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -  7510.09,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':     7510.09,          'destination_section':None, 'destination':None, },
                                # immobilisation end and start
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': -  78082.19,          'destination_section':'coramy', 'destination':'immobilisation_1', },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value':    66063.77,          'destination_section':'coramy', 'destination':'in_out_2', },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -   6005.80,          'destination_section':'coramy', 'destination':'vat_1', },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    18024.22,          'destination_section':'coramy', 'destination':'amortisation_1', },
                                # annuities
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10009.66,          'destination_section':None, 'destination':None, },
                              ], # owner_change_2_1
                              
                              [ # immobilisation start
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   110000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  10000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  9150.68,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     9150.68,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  19150.68,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': -  88934.25,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':     8084.932,         'destination_section':None, 'destination':None, },
                              ], # owner_change_2_1, owner_change_2_2
                              
                              [ # immobilisation start
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   110000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  10000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  9150.68,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     9150.68,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  19150.68,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': -  88934.25,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':     8084.93,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'immobilisation_1',
                                  'value': -  50000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'in_out_1',
                                  'value':    55000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'vat_1',
                                  'value': -   5000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -   547.95,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':      547.95,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  - 10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':    10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -  7534.25,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':     7534.25,            'destination_section':None, 'destination':None, },
                                # immobilisation end and start
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': -  50000.,            'destination_section':'coramy', 'destination':'immobilisation_1', },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_2',
1241
                                  'value':    35109.59,          'destination_section':'coramy', 'destination':'in_out_2', },
1242 1243 1244
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -   3191.78,          'destination_section':'coramy', 'destination':'vat_1', },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
1245
                                  'value':    18082.19,          'destination_section':'coramy', 'destination':'amortisation_1', },
1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259
                                # annuities
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10079.31,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10079.31,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10079.31,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10079.31,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10079.31,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10079.31,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
1260
                                  'value':  -  1679.88,          'destination_section':None, 'destination':None, },
1261
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
1262
                                  'value':     1679.88,          'destination_section':None, 'destination':None, },
1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314
                                
                              ], # owner_change_2_1, owner_change_2_2, owner_change_2_3
                                
                              [ # immobilisation start
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   110000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  10000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  9150.68,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     9150.68,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  19150.68,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': -  88934.25,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':     8084.93,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'immobilisation_1',
                                  'value': -  50000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'in_out_1',
                                  'value':    55000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'vat_1',
                                  'value': -   5000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -   547.95,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':      547.95,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  - 10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':    10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -  3726.03,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':     3726.03,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2004/08/15'), 'source_section':'coramy', 'source':'immobilisation_1',
                                  'value':    50000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/08/15'), 'source_section':'coramy', 'source':'amortisation_1',
1315
                                  'value': -  14273.97,          'destination_section':None, 'destination':None, },
1316
                                { 'date':DateTime('2004/08/15'), 'source_section':'coramy', 'source':'in_out_2',
1317
                                  'value': -  39298.63,          'destination_section':None, 'destination':None, },
1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371
                                { 'date':DateTime('2004/08/15'), 'source_section':'coramy', 'source':'vat_1',
                                  'value':     3572.60,          'destination_section':None, 'destination':None, },
                                
                              ], # owner_change_2_1, owner_change_2_2, owner_change_2_3, owner_change_2_4
                              
                              [ # immobilisation start
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   110000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  10000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  9150.68,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     9150.68,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  19150.68,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': -  88934.25,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':     8084.93,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'immobilisation_1',
                                  'value': -  50000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'in_out_1',
                                  'value':    55000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'vat_1',
                                  'value': -   5000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -   547.95,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':      547.95,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  - 10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':    10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -  3726.03,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':     3726.03,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2004/08/15'), 'source_section':'coramy', 'source':'immobilisation_1',
                                  'value':    50000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/08/15'), 'source_section':'coramy', 'source':'amortisation_1',
1372
                                  'value': -  14273.97,          'destination_section':None, 'destination':None, },
1373
                                { 'date':DateTime('2004/08/15'), 'source_section':'coramy', 'source':'in_out_2',
1374
                                  'value': -  39298.63,          'destination_section':None, 'destination':None, },
1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547
                                { 'date':DateTime('2004/08/15'), 'source_section':'coramy', 'source':'vat_1',
                                  'value':     3572.60,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': -  20000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':    22000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -   2000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 20000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    20000.,            'destination_section':None, 'destination':None, },
                                
                              ], # owner_change_2_1, owner_change_2_2, owner_change_2_3, owner_change_2_4, owner_change_2_5
                         ],
                         
       'owner_change_3': [ 
                              [ # immobilisation start
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   110000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  10000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  1917.81,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     1917.81,          'destination_section':None, 'destination':None, },
                                # immobilisation end and start
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':'nexedi', 'destination':'immobilisation_1', },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'in_out_2',
                                  'value':    85890.41,          'destination_section':'nexedi', 'destination':'in_out_2', },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'vat_1',
                                  'value': -   7808.22,          'destination_section':'nexedi', 'destination':'vat_1', },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':    21917.81,          'destination_section':'nexedi', 'destination':'amortisation_1', },
                                # annuities
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -   546.19,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':      546.19,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -  9967.94,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':     9967.94,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -  7510.09,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':     7510.09,          'destination_section':None, 'destination':None, },
                                # immobilisation end and start
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': -  78082.19,          'destination_section':'coramy', 'destination':'immobilisation_1', },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value':    66063.77,          'destination_section':'coramy', 'destination':'in_out_2', },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -   6005.80,          'destination_section':'coramy', 'destination':'vat_1', },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    18024.22,          'destination_section':'coramy', 'destination':'amortisation_1', },
                                # annuities
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10009.66,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10009.66,          'destination_section':None, 'destination':None, },
                              ], # owner_change_3_1
                              
                              [ # immobilisation start
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   110000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  10000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  9150.68,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     9150.68,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  19150.68,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': -  88934.25,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':     8084.932,         'destination_section':None, 'destination':None, },
                              ], # owner_change_3_1, owner_change_3_2
                              
                              [ # immobilisation start
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   110000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  10000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  9150.68,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     9150.68,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  19150.68,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': -  88934.25,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':     8084.93,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'immobilisation_1',
                                  'value': -  50000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'in_out_1',
                                  'value':    55000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'vat_1',
                                  'value': -   5000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -   547.95,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':      547.95,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  - 10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':    10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -  7534.25,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':     7534.25,            'destination_section':None, 'destination':None, },
                                # immobilisation end and start
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': -  50000.,            'destination_section':'coramy', 'destination':'immobilisation_1', },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_2',
1548
                                  'value':    35109.59,          'destination_section':'coramy', 'destination':'in_out_2', },
1549 1550 1551
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -   3191.78,          'destination_section':'coramy', 'destination':'vat_1', },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
1552
                                  'value':    18082.19,          'destination_section':'coramy', 'destination':'amortisation_1', },
1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566
                                # annuities
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10079.31,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10079.31,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10079.31,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10079.31,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10079.31,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10079.31,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
1567
                                  'value':  -  1679.88,          'destination_section':None, 'destination':None, },
1568
                                { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
1569
                                  'value':     1679.88,          'destination_section':None, 'destination':None, },
1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621
                                
                              ], # owner_change_3_1, owner_change_3_2, owner_change_3_3
                                
                              [ # immobilisation start
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   110000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  10000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  9150.68,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     9150.68,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  19150.68,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': -  88934.25,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':     8084.93,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'immobilisation_1',
                                  'value': -  50000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'in_out_1',
                                  'value':    55000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'vat_1',
                                  'value': -   5000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -   547.95,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':      547.95,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  - 10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':    10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -  3726.03,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':     3726.03,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2004/08/15'), 'source_section':'coramy', 'source':'immobilisation_1',
                                  'value':    50000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/08/15'), 'source_section':'coramy', 'source':'amortisation_1',
1622
                                  'value': -  14273.97,          'destination_section':None, 'destination':None, },
1623
                                { 'date':DateTime('2004/08/15'), 'source_section':'coramy', 'source':'in_out_2',
1624
                                  'value': -  39298.63,          'destination_section':None, 'destination':None, },
1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678
                                { 'date':DateTime('2004/08/15'), 'source_section':'coramy', 'source':'vat_1',
                                  'value':     3572.60,          'destination_section':None, 'destination':None, },
                                
                              ], # owner_change_3_1, owner_change_3_2, owner_change_3_3, owner_change_3_4
                              
                              [ # immobilisation start
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   110000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  10000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  9150.68,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     9150.68,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   100000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  19150.68,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': -  88934.25,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':     8084.93,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'immobilisation_1',
                                  'value': -  50000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'in_out_1',
                                  'value':    55000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'vat_1',
                                  'value': -   5000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -   547.95,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':      547.95,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  - 10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':    10000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -  3726.03,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':     3726.03,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2004/08/15'), 'source_section':'coramy', 'source':'immobilisation_1',
                                  'value':    50000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/08/15'), 'source_section':'coramy', 'source':'amortisation_1',
1679
                                  'value': -  14273.97,          'destination_section':None, 'destination':None, },
1680
                                { 'date':DateTime('2004/08/15'), 'source_section':'coramy', 'source':'in_out_2',
1681
                                  'value': -  39298.63,          'destination_section':None, 'destination':None, },
1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727
                                { 'date':DateTime('2004/08/15'), 'source_section':'coramy', 'source':'vat_1',
                                  'value':     3572.60,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': -  20000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':    22000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -   2000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 20000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    20000.,            'destination_section':None, 'destination':None, },
                                
                              ], # owner_change_3_1, owner_change_3_2, owner_change_3_3, owner_change_3_4, owner_change_3_5
                         ],
                         
                         
                         
                         
       'complex': [ 
                              [ # immobilisation start
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   330000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  30000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 16684.93,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    16684.93,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 30000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    30000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  5753.42,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     5753.42,          'destination_section':None, 'destination':None, },
                                # immobilisation end and start
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':'nexedi', 'destination':'immobilisation_1', },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'in_out_2',
1728
                                  'value':   272317.81,          'destination_section':'nexedi', 'destination':'in_out_2', },
1729
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'vat_1',
1730
                                  'value': -  24756.16,         'destination_section':'nexedi', 'destination':'vat_1', },
1731
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'amortisation_1',
1732
                                  'value':    52438.36,          'destination_section':'nexedi', 'destination':'amortisation_1', },
1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755
                                # annuities
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -  1644.25,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':     1644.25,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  - 30007.47,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':    30007.47,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  - 30007.47,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':    30007.47,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  - 30007.47,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':    30007.47,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -  6823.62,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':     6823.62,          'destination_section':None, 'destination':None, },
                                # immobilisation end and start
                                { 'date':DateTime('2006/06/23'), 'source_section':'nexedi', 'source':'immobilisation_1',
1756
                                  'value': - 247561.64,          'destination_section':'coramy', 'destination':'immobilisation_1', },
1757
                                { 'date':DateTime('2006/06/23'), 'source_section':'nexedi', 'source':'in_out_2',
1758
                                  'value':   163978.50,          'destination_section':'coramy', 'destination':'in_out_2', },
1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775
                                { 'date':DateTime('2006/06/23'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  14907.137,         'destination_section':'coramy', 'destination':'vat_1', },
                                { 'date':DateTime('2006/06/23'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    98490.28,          'destination_section':'coramy', 'destination':'amortisation_1', },
                                # annuities
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 15683.12,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    15683.12,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  2532.17,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     2532.17,          'destination_section':None, 'destination':None, },
                                # immobilisation end and start
                                { 'date':DateTime('2007/02/01'), 'source_section':'coramy', 'source':'immobilisation_1',
                                  'value': - 149071.37,          'destination_section':'nexedi', 'destination':'immobilisation_1', },
                                { 'date':DateTime('2007/02/01'), 'source_section':'coramy', 'source':'in_out_2',
1776
                                  'value':   143941.68,          'destination_section':'nexedi', 'destination':'in_out_2', },
1777 1778 1779
                                { 'date':DateTime('2007/02/01'), 'source_section':'coramy', 'source':'vat_1',
                                  'value': -  13085.608,         'destination_section':'nexedi', 'destination':'vat_1', },
                                { 'date':DateTime('2007/02/01'), 'source_section':'coramy', 'source':'amortisation_1',
1780
                                  'value':    18215.30,          'destination_section':'nexedi', 'destination':'amortisation_1', },
1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802
                                # annuities
                                { 'date':DateTime('2007/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -  4789.15,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':     4789.15,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  - 29627.79,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':    29627.79,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  - 29627.79,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':    29627.79,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  - 29627.79,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':    29627.79,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  - 29627.79,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':    29627.79,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2012/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
1803
                                  'value':  -  7555.76,          'destination_section':None, 'destination':None, },
1804
                                { 'date':DateTime('2012/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
1805
                                  'value':     7555.76,          'destination_section':None, 'destination':None, },
1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872
                                
                              ], # complex_1
                              
                              [ # immobilisation start
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   330000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  30000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 15287.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    15287.67,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  15287.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': - 313183.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':     28471.23,          'destination_section':None, 'destination':None, },
                              ], # complex_1, complex_2
                              
                              [ # immobilisation start
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   330000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  30000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 15287.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    15287.67,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  15287.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': - 313183.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':     28471.23,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2002/06/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 284712.33,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/06/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   313183.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/06/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  28471.23,          'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 17571.29,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    17571.29,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  5747.62,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     5747.62,          'destination_section':None, 'destination':None, },
                                # immobilisation end and start
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'immobilisation_1',
                                  'value': - 284712.33,          'destination_section':'nexedi', 'destination':'immobilisation_1', },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'in_out_2',
1873
                                  'value':   287532.77,          'destination_section':'nexedi', 'destination':'in_out_2', },
1874 1875 1876
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'vat_1',
                                  'value': -  26139.342,         'destination_section':'nexedi', 'destination':'vat_1', },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'amortisation_1',
1877
                                  'value':    23318.90,          'destination_section':'nexedi', 'destination':'amortisation_1', },
1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900
                                # annuities
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -  1636.91,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':     1636.91,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  - 29873.53,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':    29873.53,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  - 29873.53,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':    29873.53,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  - 29873.53,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':    29873.53,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -  6793.16,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':     6793.16,          'destination_section':None, 'destination':None, },
                                # immobilisation end and start
                                { 'date':DateTime('2006/06/23'), 'source_section':'nexedi', 'source':'immobilisation_1',
1901
                                  'value': - 261393.43,          'destination_section':'coramy', 'destination':'immobilisation_1', },
1902
                                { 'date':DateTime('2006/06/23'), 'source_section':'nexedi', 'source':'in_out_2',
1903
                                  'value':   179677.03,          'destination_section':'coramy', 'destination':'in_out_2', },
1904
                                { 'date':DateTime('2006/06/23'), 'source_section':'nexedi', 'source':'vat_1',
1905
                                  'value': -  16334.27,         'destination_section':'coramy', 'destination':'vat_1', },
1906
                                { 'date':DateTime('2006/06/23'), 'source_section':'nexedi', 'source':'amortisation_1',
1907
                                  'value':    98050.67,          'destination_section':'coramy', 'destination':'amortisation_1', },
1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920
                                # annuities
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 15622.32,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    15622.32,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  2522.35,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     2522.35,          'destination_section':None, 'destination':None, },
                                # immobilisation end and start
                                { 'date':DateTime('2007/02/01'), 'source_section':'coramy', 'source':'immobilisation_1',
                                  'value': - 163342.76,          'destination_section':'nexedi', 'destination':'immobilisation_1', },
                                { 'date':DateTime('2007/02/01'), 'source_section':'coramy', 'source':'in_out_2',
1921
                                  'value':   159717.89,          'destination_section':'nexedi', 'destination':'in_out_2', },
1922 1923 1924 1925 1926 1927 1928 1929 1930 1931
                                { 'date':DateTime('2007/02/01'), 'source_section':'coramy', 'source':'vat_1',
                                  'value': -  14519.809,         'destination_section':'nexedi', 'destination':'vat_1', },
                                { 'date':DateTime('2007/02/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':    18144.67,          'destination_section':'nexedi', 'destination':'amortisation_1', },
                                # annuities
                                { 'date':DateTime('2007/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
                                  'value':  -  4773.64,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
                                  'value':     4773.64,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
1932
                                  'value':  - 29531.81,          'destination_section':None, 'destination':None, },
1933
                                { 'date':DateTime('2008/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
1934
                                  'value':    29531.81,          'destination_section':None, 'destination':None, },
1935
                                { 'date':DateTime('2009/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
1936
                                  'value':  - 29531.81,          'destination_section':None, 'destination':None, },
1937
                                { 'date':DateTime('2009/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
1938
                                  'value':    29531.81,          'destination_section':None, 'destination':None, },
1939
                                { 'date':DateTime('2010/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
1940
                                  'value':  - 29531.81,          'destination_section':None, 'destination':None, },
1941
                                { 'date':DateTime('2010/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
1942
                                  'value':    29531.81,          'destination_section':None, 'destination':None, },
1943
                                { 'date':DateTime('2011/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
1944
                                  'value':  - 29531.81,          'destination_section':None, 'destination':None, },
1945
                                { 'date':DateTime('2011/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
1946
                                  'value':    29531.81,          'destination_section':None, 'destination':None, },
1947
                                { 'date':DateTime('2012/04/01'), 'source_section':'coramy', 'source':'depreciation_1',
1948
                                  'value':  - 22297.19,          'destination_section':None, 'destination':None, },
1949
                                { 'date':DateTime('2012/04/01'), 'source_section':'coramy', 'source':'amortisation_1',
1950
                                  'value':    22297.19,          'destination_section':None, 'destination':None, },
1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994
                                
                               ], # complex_1, complex_2, complex_3
                               
                               [ # immobilisation start
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   330000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  30000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 15287.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    15287.67,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  15287.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': - 313183.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':     28471.23,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2002/06/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 284712.33,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/06/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   313183.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/06/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  28471.23,          'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 17571.29,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    17571.29,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  5747.62,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     5747.62,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2003/03/12'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   284712.33,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'nexedi', 'source':'amortisation_1',
1995
                                  'value': -  23318.90,          'destination_section':None, 'destination':None, },
1996
                                { 'date':DateTime('2003/03/12'), 'source_section':'nexedi', 'source':'in_out_2',
1997
                                  'value': - 287532.77,          'destination_section':None, 'destination':None, },
1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031
                                { 'date':DateTime('2003/03/12'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':    26139.342,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'immobilisation_2',
                                  'value': - 200000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'in_out_3',
                                  'value':   215000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'vat_2',
                                  'value': -  15000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'depreciation_2',
                                  'value':  -  4166.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value':     4166.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'depreciation_2',
                                  'value':  - 48958.33,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value':    48958.33,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'depreciation_2',
                                  'value':  - 36718.75,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value':    36718.75,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/04/01'), 'source_section':'coramy', 'source':'depreciation_2',
                                  'value':  - 27539.06,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/04/01'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value':    27539.06,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/04/01'), 'source_section':'coramy', 'source':'depreciation_2',
                                  'value':  -  5163.57,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/04/01'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value':     5163.57,          'destination_section':None, 'destination':None, },
                                # immobilisation end and start
                                { 'date':DateTime('2006/06/23'), 'source_section':'nexedi', 'source':'immobilisation_2',
                                  'value': - 200000.,            'destination_section':'coramy', 'destination':'immobilisation_2', },
                                { 'date':DateTime('2006/06/23'), 'source_section':'nexedi', 'source':'in_out_4',
2032
                                  'value':    83262.63,          'destination_section':'coramy', 'destination':'in_out_4', },
2033 2034 2035
                                { 'date':DateTime('2006/06/23'), 'source_section':'nexedi', 'source':'vat_2',
                                  'value': -   5809.02,          'destination_section':'coramy', 'destination':'vat_2', },
                                { 'date':DateTime('2006/06/23'), 'source_section':'nexedi', 'source':'amortisation_2',
2036
                                  'value':   122546.39,          'destination_section':'coramy', 'destination':'amortisation_2', },
2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047
                                # annuities
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'depreciation_2',
                                  'value':  - 16136.17,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'amortisation_2',
                                  'value':    16136.17,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'depreciation_2',
                                  'value':  -  1824.92,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'amortisation_2',
                                  'value':     1824.92,          'destination_section':None, 'destination':None, },
                                # immobilisation end and start
                                { 'date':DateTime('2007/02/01'), 'source_section':'coramy', 'source':'immobilisation_2',
2048
                                  'value': -  77453.61,          'destination_section':'nexedi', 'destination':'immobilisation_2', },
2049
                                { 'date':DateTime('2007/02/01'), 'source_section':'coramy', 'source':'in_out_4',
2050
                                  'value':    63954.46,          'destination_section':'nexedi', 'destination':'in_out_4', },
2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127
                                { 'date':DateTime('2007/02/01'), 'source_section':'coramy', 'source':'vat_2',
                                  'value': -   4461.94,          'destination_section':'nexedi', 'destination':'vat_2', },
                                { 'date':DateTime('2007/02/01'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value':    17961.09,          'destination_section':'nexedi', 'destination':'amortisation_2', },
                                # annuities
                                { 'date':DateTime('2007/04/01'), 'source_section':'coramy', 'source':'depreciation_2',
                                  'value':  -  3541.22,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/04/01'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value':     3541.22,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/04/01'), 'source_section':'coramy', 'source':'depreciation_2',
                                  'value':  - 19982.61,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/04/01'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value':    19982.61,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/04/01'), 'source_section':'coramy', 'source':'depreciation_2',
                                  'value':  - 12845.96,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2009/04/01'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value':    12845.96,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/04/01'), 'source_section':'coramy', 'source':'depreciation_2',
                                  'value':  -  8258.12,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2010/04/01'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value':     8258.12,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/04/01'), 'source_section':'coramy', 'source':'depreciation_2',
                                  'value':  -  5308.79,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2011/04/01'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value':     5308.79,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2012/04/01'), 'source_section':'coramy', 'source':'depreciation_2',
                                  'value':  -  4777.91,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2012/04/01'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value':     4777.91,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2013/04/01'), 'source_section':'coramy', 'source':'depreciation_2',
                                  'value':  -  4777.91,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2013/04/01'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value':     4777.91,          'destination_section':None, 'destination':None, },
                                
                               ], # complex_1, complex_2, complex_3, complex_4
                               
                               [ # immobilisation start
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   330000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  30000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 15287.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    15287.67,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  15287.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': - 313183.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':     28471.23,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2002/06/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 284712.33,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/06/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   313183.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/06/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  28471.23,          'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 17571.29,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    17571.29,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  5747.62,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     5747.62,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2003/03/12'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   284712.33,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'nexedi', 'source':'amortisation_1',
2128
                                  'value': -  23318.90,          'destination_section':None, 'destination':None, },
2129
                                { 'date':DateTime('2003/03/12'), 'source_section':'nexedi', 'source':'in_out_2',
2130
                                  'value': - 287532.77,          'destination_section':None, 'destination':None, },
2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154
                                { 'date':DateTime('2003/03/12'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':    26139.342,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'immobilisation_2',
                                  'value': - 200000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'in_out_3',
                                  'value':   215000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'vat_2',
                                  'value': -  15000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'depreciation_2',
                                  'value':  -  4166.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value':     4166.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'depreciation_2',
                                  'value':  - 36718.75,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value':    36718.75,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2003/12/30'), 'source_section':'coramy', 'source':'immobilisation_2',
                                  'value':   200000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/12/30'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value': -  40885.42,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/12/30'), 'source_section':'coramy', 'source':'in_out_4',
2155
                                  'value': - 171048.18,          'destination_section':None, 'destination':None, },
2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201
                                { 'date':DateTime('2003/12/30'), 'source_section':'coramy', 'source':'vat_2',
                                  'value':    11933.59,          'destination_section':None, 'destination':None, },
                                
                               ], # complex_1, complex_2, complex_3, complex_4, complex_5
                               
                               [ # immobilisation start
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   330000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  30000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 15287.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    15287.67,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  15287.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': - 313183.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':     28471.23,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2002/06/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 284712.33,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/06/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   313183.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/06/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  28471.23,          'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 17571.29,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    17571.29,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  5747.62,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     5747.62,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2003/03/12'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   284712.33,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'nexedi', 'source':'amortisation_1',
2202
                                  'value': -  23318.90,          'destination_section':None, 'destination':None, },
2203
                                { 'date':DateTime('2003/03/12'), 'source_section':'nexedi', 'source':'in_out_2',
2204
                                  'value': - 287532.77,          'destination_section':None, 'destination':None, },
2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228
                                { 'date':DateTime('2003/03/12'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':    26139.342,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'immobilisation_2',
                                  'value': - 200000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'in_out_3',
                                  'value':   215000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'vat_2',
                                  'value': -  15000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'depreciation_2',
                                  'value':  -  4166.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value':     4166.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'depreciation_2',
                                  'value':  - 36718.75,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value':    36718.75,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2003/12/30'), 'source_section':'coramy', 'source':'immobilisation_2',
                                  'value':   200000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/12/30'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value': -  40885.42,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/12/30'), 'source_section':'coramy', 'source':'in_out_4',
2229
                                  'value': - 171048.18,          'destination_section':None, 'destination':None, },
2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262
                                { 'date':DateTime('2003/12/30'), 'source_section':'coramy', 'source':'vat_2',
                                  'value':    11933.59,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2006/06/24'), 'source_section':'nexedi', 'source':'immobilisation_3',
                                  'value': - 150000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/06/24'), 'source_section':'nexedi', 'source':'in_out_5',
                                  'value':   165000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/06/24'), 'source_section':'nexedi', 'source':'vat_3',
                                  'value': -  15000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'depreciation_3',
                                  'value':  - 62794.52,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'amortisation_3',
                                  'value':    62794.52,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'depreciation_3',
                                  'value':  - 10191.78,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'amortisation_3',
                                  'value':    10191.78,          'destination_section':None, 'destination':None, },
                                # immobilisation end and start
                                { 'date':DateTime('2007/02/01'), 'source_section':'coramy', 'source':'immobilisation_3',
                                  'value': - 150000.,            'destination_section':'nexedi', 'destination':'immobilisation_3', },
                                { 'date':DateTime('2007/02/01'), 'source_section':'coramy', 'source':'in_out_6',
                                  'value':    84715.07,          'destination_section':'nexedi', 'destination':'in_out_6', },
                                { 'date':DateTime('2007/02/01'), 'source_section':'coramy', 'source':'vat_3',
                                  'value': -   7701.37,          'destination_section':'nexedi', 'destination':'vat_3', },
                                { 'date':DateTime('2007/02/01'), 'source_section':'coramy', 'source':'amortisation_3',
                                  'value':    72986.30,          'destination_section':'nexedi', 'destination':'amortisation_3', },
                                # annuities
                                { 'date':DateTime('2007/04/01'), 'source_section':'coramy', 'source':'depreciation_3',
                                  'value':  - 18673.18,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/04/01'), 'source_section':'coramy', 'source':'amortisation_3',
                                  'value':    18673.18,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/04/01'), 'source_section':'coramy', 'source':'depreciation_3',
2263
                                  'value':  - 58340.51,          'destination_section':None, 'destination':None, },
2264
                                { 'date':DateTime('2008/04/01'), 'source_section':'coramy', 'source':'amortisation_3',
2265
                                  'value':    58340.51,          'destination_section':None, 'destination':None, },
2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310
                                
                               ], # complex_1, complex_2, complex_3, complex_4, complex_5, complex_6
                               
                               
                               [ # immobilisation start
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   330000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  30000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 15287.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    15287.67,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   300000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value': -  15287.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'in_out_2',
                                  'value': - 313183.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':     28471.23,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2002/06/01'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value': - 284712.33,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/06/01'), 'source_section':'nexedi', 'source':'in_out_1',
                                  'value':   313183.56,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2002/06/01'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value': -  28471.23,          'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  - 17571.29,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':    17571.29,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'depreciation_1',
                                  'value':  -  5747.62,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'source':'amortisation_1',
                                  'value':     5747.62,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2003/03/12'), 'source_section':'nexedi', 'source':'immobilisation_1',
                                  'value':   284712.33,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'nexedi', 'source':'amortisation_1',
2311
                                  'value': -  23318.90,          'destination_section':None, 'destination':None, },
2312
                                { 'date':DateTime('2003/03/12'), 'source_section':'nexedi', 'source':'in_out_2',
2313
                                  'value': - 287532.77,          'destination_section':None, 'destination':None, },
2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337
                                { 'date':DateTime('2003/03/12'), 'source_section':'nexedi', 'source':'vat_1',
                                  'value':    26139.342,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'immobilisation_2',
                                  'value': - 200000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'in_out_3',
                                  'value':   215000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'source':'vat_2',
                                  'value': -  15000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'depreciation_2',
                                  'value':  -  4166.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value':     4166.67,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'depreciation_2',
                                  'value':  - 36718.75,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value':    36718.75,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2003/12/30'), 'source_section':'coramy', 'source':'immobilisation_2',
                                  'value':   200000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/12/30'), 'source_section':'coramy', 'source':'amortisation_2',
                                  'value': -  40885.42,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2003/12/30'), 'source_section':'coramy', 'source':'in_out_4',
2338
                                  'value': - 171048.18,          'destination_section':None, 'destination':None, },
2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403
                                { 'date':DateTime('2003/12/30'), 'source_section':'coramy', 'source':'vat_2',
                                  'value':    11933.59,          'destination_section':None, 'destination':None, },
                                # immobilisation start
                                { 'date':DateTime('2006/06/24'), 'source_section':'nexedi', 'source':'immobilisation_3',
                                  'value': - 150000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/06/24'), 'source_section':'nexedi', 'source':'in_out_5',
                                  'value':   165000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2006/06/24'), 'source_section':'nexedi', 'source':'vat_3',
                                  'value': -  15000.,            'destination_section':None, 'destination':None, },
                                # annuities
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'depreciation_3',
                                  'value':  - 62794.52,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'source':'amortisation_3',
                                  'value':    62794.52,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'depreciation_3',
                                  'value':  - 10191.78,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'source':'amortisation_3',
                                  'value':    10191.78,          'destination_section':None, 'destination':None, },
                                # immobilisation end
                                { 'date':DateTime('2007/02/01'), 'source_section':'nexedi', 'source':'immobilisation_3',
                                  'value':   150000.,            'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/02/01'), 'source_section':'nexedi', 'source':'in_out_6',
                                  'value': -  84715.07,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/02/01'), 'source_section':'nexedi', 'source':'vat_3',
                                  'value':     7701.37,          'destination_section':None, 'destination':None, },
                                { 'date':DateTime('2007/02/01'), 'source_section':'nexedi', 'source':'amortisation_3',
                                  'value': -  72986.30,          'destination_section':None, 'destination':None, },
                                
                               ], # complex_1, complex_2, complex_3, complex_4, complex_5, complex_6, complex_7
                                
                 ],
                        
       }


  aggregated = [   { 'date':DateTime('2001/01/01'), 'source_section':'nexedi', 'destination_section':None,
                                        'data': [ { 'source':'immobilisation_1', 'value': - 200000.,   'destination':None, },
                                                  { 'source':'in_out_1',         'value':   220000.,   'destination':None, },
                                                  { 'source':'vat_1',            'value': -  20000.,   'destination':None, } ] },
                   { 'date':DateTime('2001/06/12'), 'source_section':'nexedi', 'destination_section':None, 
                                        'data': [ { 'source':'immobilisation_1', 'value': - 300000.,   'destination':None, },
                                                  { 'source':'in_out_1',         'value':   330000.,   'destination':None, },
                                                  { 'source':'vat_1',            'value': -  30000.,   'destination':None, } ] },
                   { 'date':DateTime('2001/12/15'), 'source_section':'nexedi', 'destination_section':None,
                                        'data': [ { 'source':'immobilisation_1', 'value':   300000.,   'destination':None, },
                                                  { 'source':'amortisation_1',   'value': -  15287.67, 'destination':None, },
                                                  { 'source':'in_out_2',         'value': - 313183.56, 'destination':None, },
                                                  { 'source':'vat_1',            'value':    28471.23, 'destination':None, } ] },
                   { 'date':DateTime('2002/01/01'), 'source_section':'nexedi', 'destination_section':None,
                                        'data': [ { 'source':'depreciation_1',   'value':  - 35287.67, 'destination':None, },
                                                  { 'source':'amortisation_1',   'value':    35287.67, 'destination':None, } ] },
                   { 'date':DateTime('2002/02/01'), 'source_section':'nexedi', 'destination_section':None,
                                        'data': [ { 'source':'immobilisation_1', 'value': - 600000.,   'destination':None, },
                                                  { 'source':'in_out_1',         'value':   660000.,   'destination':None, },
                                                  { 'source':'vat_1',            'value': -  60000.,   'destination':None, } ] },
                   { 'date':DateTime('2002/06/01'), 'source_section':'nexedi', 'destination_section':None,
                                        'data': [ { 'source':'immobilisation_1', 'value': - 284712.33, 'destination':None, },
                                                  { 'source':'in_out_1',         'value':   313183.56, 'destination':None, },
                                                  { 'source':'vat_1',            'value': -  28471.23, 'destination':None, } ] },
                   { 'date':DateTime('2002/07/06'), 'source_section':'nexedi', 'destination_section':None,
                                        'data': [ { 'source':'immobilisation_1', 'value': -  20000.,   'destination':None, },
                                                  { 'source':'in_out_1',         'value':    22000.,   'destination':None, },
                                                  { 'source':'vat_1',            'value': -   2000.,   'destination':None, } ] },
                   { 'date':DateTime('2002/12/01'), 'source_section':'nexedi', 'destination_section':None,
                                        'data': [ { 'source':'immobilisation_1', 'value':   200000.,   'destination':None, },
2404 2405
                                                  { 'source':'amortisation_1',   'value': -  38301.37, 'destination':None, },
                                                  { 'source':'in_out_2',         'value': - 177868.49, 'destination':None, },
2406 2407
                                                  { 'source':'vat_1',            'value':    16169.86, 'destination':None, } ] },
                   { 'date':DateTime('2003/01/01'), 'source_section':'nexedi', 'destination_section':None,
2408 2409
                                        'data': [ { 'source':'depreciation_1',   'value': - 201033.62, 'destination':None, },
                                                  { 'source':'amortisation_1',   'value':   201033.62, 'destination':None, },
2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421
                                                  { 'source':'immobilisation_1', 'value': - 300000.,   'destination':None, },
                                                  { 'source':'in_out_1',         'value':   310000.,   'destination':None, },
                                                  { 'source':'vat_1',            'value': -  10000.,   'destination':None, } ] },
                   { 'date':DateTime('2003/03/12'), 'source_section':'coramy', 'destination_section':None,
                                        'data': [ { 'source':'immobilisation_1', 'value': - 100000.,   'destination':None, },
                                                  { 'source':'in_out_1',         'value':   110000.,   'destination':None, },
                                                  { 'source':'vat_1',            'value': -  10000.,   'destination':None, },
                                                  { 'source':'immobilisation_2', 'value': - 200000.,   'destination':None, },
                                                  { 'source':'in_out_3',         'value':   215000.,   'destination':None, },
                                                  { 'source':'vat_2',            'value': -  15000.,   'destination':None, } ] },
                   { 'date':DateTime('2003/03/12'), 'source_section':'nexedi', 'destination_section':None,
                                        'data': [ { 'source':'immobilisation_1', 'value':   284712.33, 'destination':None, },
2422 2423
                                                  { 'source':'amortisation_1',   'value': -  23318.904605623655, 'destination':None, },
                                                  { 'source':'in_out_2',         'value': - 287532.76517952414, 'destination':None, },
2424 2425 2426 2427 2428 2429 2430 2431 2432
                                                  { 'source':'vat_1',            'value':    26139.342,'destination':None, } ] },
                   { 'date':DateTime('2003/03/15'), 'source_section':'coramy', 'destination_section':'nexedi',
                                        'data': [ { 'source':'immobilisation_1', 'value': -  20000.,   'destination':'immobilisation_1'},
                                                  { 'source':'in_out_2',         'value':    14405.48, 'destination':'in_out_2', },
                                                  { 'source':'vat_1',            'value': -   1309.59, 'destination':'vat_1', },
                                                  { 'source':'amortisation_1',   'value':     6904.11, 'destination':'amortisation_1'}]},
                   { 'date':DateTime('2003/04/01'), 'source_section':'coramy', 'destination_section':None,
                                        'data': [ { 'source':'depreciation_2',   'value':  -  4166.67, 'destination':None, },
                                                  { 'source':'amortisation_2',   'value':     4166.67, 'destination':None, },
2433 2434
                                                  { 'source':'depreciation_1',   'value':  -  1553.35, 'destination':None, },
                                                  { 'source':'amortisation_1',   'value':     1553.35, 'destination':None, } ] },
2435 2436 2437
                   { 'date':DateTime('2003/12/30'), 'source_section':'coramy', 'destination_section':None,
                                        'data': [ { 'source':'immobilisation_2', 'value':   200000.,   'destination':None, },
                                                  { 'source':'amortisation_2',   'value': -  40885.42, 'destination':None, },
2438
                                                  { 'source':'in_out_4',         'value': - 171048.17708333334, 'destination':None, },
2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454
                                                  { 'source':'vat_2',            'value':    11933.59, 'destination':None, } ] },
                   { 'date':DateTime('2004/01/01'), 'source_section':'nexedi', 'destination_section':None,
                                        'data': [ { 'source':'depreciation_1',   'value': - 232226.78, 'destination':None, },
                                                  { 'source':'amortisation_1',   'value':   232226.78, 'destination':None, } ] },
                   { 'date':DateTime('2004/02/01'), 'source_section':'nexedi', 'destination_section':'nexedi',
                                        'data': [ { 'source':'in_out_1',         'value':   296806.64, 'destination':'in_out_2', },
                                                  { 'source':'immobilisation_1', 'value': - 600000.,   'destination':'immobilisation_1'},
                                                  { 'source':'vat_1',            'value': -  26982.42, 'destination':'vat_1' },
                                                  { 'source':'amortisation_1',   'value':   330175.78, 'destination':'amortisation_1'}]},
                   { 'date':DateTime('2004/04/01'), 'source_section':'coramy', 'destination_section':None,
                                        'data': [ { 'source':'depreciation_2',   'value':  - 36718.75, 'destination':None, },
                                                  { 'source':'amortisation_2',   'value':    36718.75, 'destination':None, },
                                                  { 'source':'depreciation_1',   'value':  - 29821.92, 'destination':None, },
                                                  { 'source':'amortisation_1',   'value':    29821.92, 'destination':None, } ] },
                   { 'date':DateTime('2004/08/15'), 'source_section':'coramy', 'destination_section':None,
                                        'data': [ { 'source':'immobilisation_1', 'value':   100000.,   'destination':None, },
2455 2456 2457
                                                  { 'source':'amortisation_1',   'value': -  28547.95, 'destination':None, },
                                                  { 'source':'in_out_2',         'value': -  78597.26, 'destination':None, },
                                                  { 'source':'vat_1',            'value':     7145.21, 'destination':None, } ] },
2458 2459 2460
                   { 'date':DateTime('2005/01/01'), 'source_section':'nexedi', 'destination_section':None,
                                        'data': [ { 'source':'immobilisation_1', 'value':    79824.22, 'destination':None, },
                                                  { 'source':'in_out_1',         'value':   201000.,   'destination':None, },
2461 2462 2463 2464
                                                  { 'source':'vat_1',            'value':     1939.58, 'destination':None, },
                                                  { 'source':'depreciation_1',   'value': - 219201.48, 'destination':None, },
                                                  { 'source':'amortisation_1',   'value':    78773.10, 'destination':None, },
                                                  { 'source':'in_out_2',         'value': - 142335.42, 'destination':None, } ] },
2465 2466 2467 2468
                   { 'date':DateTime('2005/04/01'), 'source_section':'coramy', 'destination_section':None,
                                        'data': [ { 'source':'depreciation_1',   'value':  - 10268.57, 'destination':None, },
                                                  { 'source':'amortisation_1',   'value':    10268.57, 'destination':None, } ] },
                   { 'date':DateTime('2006/01/01'), 'source_section':'nexedi', 'destination_section':None,
2469 2470
                                        'data': [ { 'source':'depreciation_1',   'value': - 187916.67, 'destination':None, },
                                                  { 'source':'amortisation_1',   'value':   187916.67, 'destination':None, } ] },
2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519
                   { 'date':DateTime('2006/06/24'), 'source_section':'nexedi', 'destination_section':None,
                                        'data': [ { 'source':'immobilisation_3', 'value': - 150000.,   'destination':None, },
                                                  { 'source':'in_out_5',         'value':   165000.,   'destination':None, },
                                                  { 'source':'vat_3',            'value': -  15000.,   'destination':None, } ] },
                   { 'date':DateTime('2007/01/01'), 'source_section':'nexedi', 'destination_section':None,
                                        'data': [ { 'source':'depreciation_3',   'value':  - 62794.52, 'destination':None, },
                                                  { 'source':'amortisation_3',   'value':    62794.52, 'destination':None, },
                                                  { 'source':'depreciation_1',   'value': -  21484.38, 'destination':None, },
                                                  { 'source':'amortisation_1',   'value':    21484.38, 'destination':None, } ] },
                   { 'date':DateTime('2007/02/01'), 'source_section':'nexedi', 'destination_section':None,
                                        'data': [ { 'source':'immobilisation_3', 'value':   150000.,   'destination':None, },
                                                  { 'source':'in_out_6',         'value': -  84715.07, 'destination':None, },
                                                  { 'source':'vat_3',            'value':     7701.37, 'destination':None, },
                                                  { 'source':'amortisation_3',   'value': -  72986.30, 'destination':None, } ] },
                   { 'date':DateTime('2008/01/01'), 'source_section':'nexedi', 'destination_section':None,
                                        'data': [ { 'source':'depreciation_3',   'value':  - 10191.78, 'destination':None, },
                                                  { 'source':'amortisation_3',   'value':    10191.78, 'destination':None, },
                                                  { 'source':'depreciation_1',   'value': -  14770.51, 'destination':None, },
                                                  { 'source':'amortisation_1',   'value':    14770.51, 'destination':None, } ] },
                   { 'date':DateTime('2009/01/01'), 'source_section':'nexedi', 'destination_section':None,
                                        'data': [ { 'source':'depreciation_1',   'value': -  10154.72, 'destination':None, },
                                                  { 'source':'amortisation_1',   'value':    10154.72, 'destination':None, } ] },
                   { 'date':DateTime('2010/01/01'), 'source_section':'nexedi', 'destination_section':None,
                                        'data': [ { 'source':'depreciation_1',   'value': -   6981.37, 'destination':None, },
                                                  { 'source':'amortisation_1',   'value':     6981.37, 'destination':None, } ] },
                   { 'date':DateTime('2011/01/01'), 'source_section':'nexedi', 'destination_section':None,
                                        'data': [ { 'source':'depreciation_1',   'value': -   5119.67, 'destination':None, },
                                                  { 'source':'amortisation_1',   'value':     5119.67, 'destination':None, } ] },
                   { 'date':DateTime('2012/01/01'), 'source_section':'nexedi', 'destination_section':None,
                                        'data': [ { 'source':'depreciation_1',   'value': -   5119.67, 'destination':None, },
                                                  { 'source':'amortisation_1',   'value':     5119.67, 'destination':None, } ] },
                   { 'date':DateTime('2013/01/01'), 'source_section':'nexedi', 'destination_section':None,
                                        'data': [ { 'source':'depreciation_1',   'value': -   5119.67, 'destination':None, },
                                                  { 'source':'amortisation_1',   'value':     5119.67, 'destination':None, } ] },      
                                                                                                    
                                                                    
                ]
             
                        
  
                       
  def assertDifference(self, a, b, diff=0.02):
   """
   Raise an error if the difference between a and b is
   greater than diff
   """
   self.failUnless( self.areNear(a,b,diff) )
   
  
2520 2521 2522 2523
  def roundedEquals(self, a, b, precision=2):
    LOG("roundedEquals", 0, "compares %s and %s, precision = %s ; rounded values = %s and %s" % (repr(a), repr(b), repr(precision), repr(round(a,precision)), repr(round(b,precision))))
    return round(a,precision) == round(b,precision)
  
2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596
  def areNear(self, a, b, diff=0.02):
    """
    Return true if the difference between a and b 
    is lower than diff
    """
    difference = a - b
    return abs(a-b) <= diff
  
  
  def getBusinessTemplateList(self):
    """
      Return the list of business templates.
    """
    #return ('erp5_core', 'copy_of_vpn', 'erp5_trade', 'erp5_accounting', 
    #        'nexedi_vpn', 'erp5_immobilisation')
    return ('erp5_trade', 'erp5_accounting', 
            'nexedi_vpn', 'erp5_immobilisation')

  def convertToLowerCase(self, key):
    """
      This function returns an attribute name 
      thanks to the name of a class
      for example convert 'Purchase Order' to 'purchase_order' 
    """
    result = key.lower()
    result = result.replace(' ','_')
    return result


  def getSqlConnection(self):
    return getattr(self.getPortal(), 'erp5_sql_connection', None)
  
  def getItemModule(self):
    return getattr(self.getPortal(), self.item_module_name, None)
  
  def getCurrencyModule(self):
    return getattr(self.getPortal(), 'currency', None)
  
  def getOrganisationModule(self):
    return getattr(self.getPortal(), 'organisation', None)
  
  def getAccountingModule(self):
    return getattr(self.getPortal(), 'accounting', None)
  
  def getAccountModule(self):
    return getattr(self.getPortal(), 'account', None)
  
  def getDeliveryModule(self):
    return getattr(self.getPortal(), 'purchase_packing_list', None)
  
  def getPortalId(self):
    return self.getPortal().getId()
 
  def sqlQuery(self, sql):
    sql_connection = self.getSqlConnection()
    return sql_connection.manage_test(sql)
    
  
  def failIfDifferentSet(self, a,b):
    for i in a:
      self.failUnless(i in b)
    for i in b:
      self.failUnless(i in a)
    self.assertEquals(len(a),len(b))

  def afterSetUp(self, quiet=1, run=1):
    self.login()
    portal = self.getPortal()
    portal_catalog = self.getCatalogTool()
    portal_catalog.manage_catalogClear()
#     # First set Acquisition
#     portal.ERP5_setAcquisition()
#     # Then reindex
2597
    LOG('before reindex', 0, "")
2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637
    portal.ERP5Site_reindexAll()
    LOG('afterSetup',0,'portal.portal_categories.immediateReindexObject')
    portal.portal_categories.immediateReindexObject()
    for o in portal.portal_categories.objectValues():
      o.recursiveImmediateReindexObject()
    LOG('afterSetup',0,'portal.portal_simulation.immediateReindexObject')
    portal.portal_simulation.immediateReindexObject()
    for o in portal.portal_simulation.objectValues():
      o.recursiveImmediateReindexObject()
    LOG('afterSetup',0,'portal.portal_rules.immediateReindexObject')
    portal.portal_rules.immediateReindexObject()
    self.stepTic()
    
    # Then add new components
    # Currencies
    currency_module = self.getCurrencyModule()
    for currency_id in self.currency_list:
      currency_module.newContent(id=currency_id, portal_type="Currency")
    self.stepTic()

    # Construct item module
    #portal.newContent(portal_type='Nexedi VPN Module',id='vpn',title='VPN List')
    
    # Items
    item_module = self.getItemModule()
    for item_id in self.item_id_list:
      item_module.newContent(id=item_id, portal_type=self.item_portal_type)
    self.stepTic()
    
    # Build all movement groups
    #self.getPortal().SimulationTool_constructMovementGroupList()

    # Organisations
    organisation_module = self.getOrganisationModule()
    for organisation_data in self.organisation_data_list:
      organisation = organisation_module.newContent(id=organisation_data['id'], immediate_reindex=1)
      end_date = organisation_data.get('end_date')
      currency_id = organisation_data.get('currency')
      if currency_id is not None:
        currency_id = 'currency/%s' % currency_id
2638
        organisation.setSocialCapitalCurrencyId(currency_id)
2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794
      if end_date is not None:
        organisation.setFinancialYearStopDate(end_date)
    self.stepTic()
        
    # Accounts
    account_module = self.getAccountModule()
    for account_data in self.account_data_list:
      account = account_module.newContent(id = account_data['id'])
      account.setPcg(account_data['pcg_id'])
    self.stepTic()
   
    # Deliveries
    delivery_module = self.getDeliveryModule()
    del_type = self.delivery_type
    del_line_type = del_type + " Line"
    
    for delivery_line_data in self.delivery_line_data_list:
      parent_id = delivery_line_data['parent_id']
      del_line_id = delivery_line_data['id']
      date = DateTime(delivery_line_data['date'])
      source_section = delivery_line_data['source_section']
      destination_section = delivery_line_data['destination_section']
      if source_section is not None: source_section = organisation_module[source_section]
      if destination_section is not None: destination_section = organisation_module[destination_section]
      item_id_list = delivery_line_data['items']
      
      delivery = getattr(delivery_module, parent_id, None)
      if delivery is None:
        # Create the parent of current delivery line
        delivery = delivery_module.newContent(id = parent_id, portal_type = del_type)
      delivery_line = delivery.newContent(id = del_line_id, portal_type = del_line_type)
      delivery_line.setStopDate(date)
      if source_section is not None: delivery_line.setSourceSectionValue(source_section)
      if destination_section is not None: delivery_line.setDestinationSectionValue(destination_section)
      item_list = []
      for item_id in item_id_list:
        item_list.append(item_module[item_id])
      self.tic()
      delivery_line.immediateReindexObject()
      delivery_line.setAggregateValueList(item_list)
      delivery_line.immediateReindexObject()
      
      get_transaction().commit()
      self.stepTic()
      LOG('test :', 0, 'delivery line %s ; aggregate value list = %s' % (repr(delivery_line), repr(delivery_line.getAggregateValueList())))
      my_item = item_list[0]
    self.stepTic()
      
    
    
    # Build the default rule
    self.getPortal().portal_types.constructContent(type_name='Amortisation Rule',
                        container=self.getPortal().portal_rules,
                        id='default_amortisation_rule')
    

                        
                        
  def login(self, quiet=0, run=run_all_test):
    uf = self.getPortal().acl_users
    uf._doAddUser('guillaume', '', ['Manager'], [])
    user = uf.getUserById('guillaume').__of__(uf)
    newSecurityManager(None, user)


    
  def constructImmobilisationMovement(self, immobilisation_id=None, sequence=None, **kw):
    """
    Create an immobilisation movement
    """
    if (sequence is None) or (immobilisation_id is None):
      return
    
    immobilisation_data = self.immobilisation_movement_data_list[immobilisation_id]
    item = self.getItemModule()._getOb(immobilisation_data['item'])
    LOG('test :', 0, 'for immobilisation %s, item = %s' % (repr(immobilisation_id),repr(item)))
    
    immo = item.newContent(id=immobilisation_id, portal_type = 'Immobilisation')
    LOG('test :', 0, 'content of item %s : %s' % (repr(item), repr(map(lambda o:repr(o), item.objectValues()))))
    for property, property_sheet_name in ( ('value'         , 'AmortisationBeginningPrice'),
                                           ('type'          , 'AmortisationType'),
                                           ('date'          , 'StopDate'),
                                           ('immobilisation', 'Immobilisation'),
                                           ('duration'      , 'AmortisationDuration'),
                                           ('vat'           , 'Vat'),
                                           ('coef'          , 'FiscalCoefficient'),
                                           ('amo_acc'       , 'AmortisationAccount'),
                                           ('immo_acc'      , 'ImmobilisationAccount'),
                                           ('vat_acc'       , 'VatAccount'),
                                           ('in_acc'        , 'InputAccount'),
                                           ('out_acc'       , 'OutputAccount'),
                                           ('depr_acc'      , 'DepreciationAccount')  ):
      
      
      property_value = immobilisation_data.get(property)
      if property_value is not None:
        if property[-3:] == 'acc': property_value = 'account/%s' % property_value
        setter = getattr(immo, 'set' + property_sheet_name)
        setter(property_value)
        
    item.recursiveImmediateReindexObject()
    item.immediateExpandAmortisation()
    return immo
  
      
  def stepCreateImmobilisations(self, sequence=None, sequence_list=None, **kw):
    """
    Construct all of the immobilisations needed for the current test
    """
    immobilisation_list_name = sequence.get('immobilisation_list_name')
    immobilisation_list = sequence.get('immobilisation_list') or []
    for i in range(len(self.immobilisation_movement_list[immobilisation_list_name])):
      immobilisation_name = self.immobilisation_movement_list[immobilisation_list_name][i]
      immo = self.constructImmobilisationMovement(immobilisation_name, sequence=sequence)
      immobilisation_list.append(immo)
      
    sequence.set('immobilisation_list', immobilisation_list)
    
    
  def stepNextTestStep(self, sequence=None, **kw):
    """
    Construct the next immobilisation needed for the current test
    If all of the immobilisations are already constructed, unvalidate or validate the
    next immobilisation to be validated or unvalidated
    """
    immobilisation_list_name = sequence.get('immobilisation_list_name')
    immobilisation_list = sequence.get('immobilisation_list') or []
    step = sequence.get('step_number')
    if step is None: step = -1
    step += 1
    
    LOG('testImmobilisation :', 0, 'step = %s, immobilisation_list = %s' % (repr(step), repr(immobilisation_list)))
    immobilisation_movement_list = self.immobilisation_movement_list[immobilisation_list_name]
    if step < len(immobilisation_movement_list):
      immobilisation_name = immobilisation_movement_list[step]
      immobilisation = self.constructImmobilisationMovement(immobilisation_name, sequence=sequence)
      immobilisation_list.append(immobilisation)
      
    else:
      # Validate or unvalidate the next immobilisation to be validated or unvalidated
      switch_list = self.validation_switch_list.get(immobilisation_list_name, None)
      switch_number = step - len(immobilisation_movement_list)
      LOG('stepNextTestStep :', 0, 'immobilisation_list_name=%s, switch_list=%s, switch_number=%s, switch_list[switch_number]=%s' % (repr(immobilisation_list_name), repr(switch_list), repr(switch_number), repr(switch_number)))
      if switch_list is not None and switch_number < len(switch_list):
        self.switchImmobilisationValidity( switch_list[switch_number], sequence=sequence )
        
    sequence.edit(immobilisation_list = immobilisation_list, step_number = step)
    
  
    
  def switchImmobilisationValidity(self, immobilisation_number, sequence=None, **kw):
    """
    Switch the validity state of given immobilisation
    """
    immobilisation_list = sequence.get('immobilisation_list')
    immobilisation = immobilisation_list[immobilisation_number]
2795
    if immobilisation.checkImmobilisationConsistency():
2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864
      immobilisation_list_name = sequence.get('immobilisation_list_name')
      immobilisation_data = self.immobilisation_movement_data_list \
                                        [ self.immobilisation_movement_list[immobilisation_list_name][immobilisation_number] ]
      immobilisation.setStopDate(immobilisation_data['date'])
    else:
      immobilisation.setStopDate(None)
      
    item = immobilisation.getParent()
    item.immediateExpandAmortisation()
      
    
    
  def stepVerifySimulation(self, sequence=None, sequence_list=None, **kw):
    """
    Verify if the movements created in simulation correspond
    to the expected ones
    """    
    for delivery in self.getDeliveryModule().objectValues():
      for delivery_line in delivery.objectValues():  
        sql = 'select cat2.id from catalog as cat1, catalog as cat2, category where category.uid = cat1.uid '
        sql += 'and cat1.id = %s and cat2.uid = category.category_uid' % repr(delivery_line.getId())
        LOG('test :', 0, 'sql method on delivery %s : %s' % (repr(delivery_line.getId()), repr(map(lambda x:x['id'],self.sqlQuery(sql)))))
        LOG('test :', 0, 'aggregate value list = %s' % repr(delivery_line.getAggregateValueList()))
    
    
    
    current_step = sequence.get('step_number')
    immobilisation_list = sequence.get('immobilisation_list')
    item = immobilisation_list[0].getParent()
    test_name = sequence.get('immobilisation_list_name')
    
    expected = deepcopy(self.simulation_value_list[test_name][current_step])
    
    
    applied_rule_list = item.getCausalityRelatedValueList()
    LOG('testImmobilisation :',0,'verifying number of applied rules on item %s' % repr(item.getId()))
    self.assertEquals(len(applied_rule_list),1)
    applied_rule = applied_rule_list[0]
    
    # Verify each written simulation movement
    LOG('testImmobilisation :', 0, 'applied rule... objectValues = %s, contentValues = %s' % (repr(applied_rule.objectValues()), repr(applied_rule.contentValues())))
    
    def cmpfunc(a,b):
      if a.getStopDate() - b.getStopDate() < 0: return -1
      if a.getStopDate() - b.getStopDate() > 0: return 1
      return 0
    
    simulation_movement_list = list(applied_rule.objectValues())
    LOG('test :', 0, 'simulation_movement_list = %s' % repr(simulation_movement_list))
    simulation_movement_list.sort(cmpfunc)
    for simulation_movement in simulation_movement_list:
      source_section = simulation_movement.getSourceSectionId()
      destination_section = simulation_movement.getDestinationSectionId()
      destination = simulation_movement.getDestinationId()
      source = simulation_movement.getSourceId()
      value = simulation_movement.getQuantity()
      date = simulation_movement.getStopDate()
      
      LOG('testImmobilisation :',0,'verifying simulation movement %s : source=%s, destination=%s, source_section=%s, destination_section=%s, value=%s, date=%s' % (repr(simulation_movement.getId()), repr(source), repr(destination), repr(source_section), repr(destination_section), repr(value), repr(date)))
      LOG('testImmobilisation :',0, 'remaining expected movements : %s' % repr(expected))
      i = 0
      expected_movement = None
      while expected_movement is None and i<len(expected):
        current_movement = expected[i]
        #if self.areNear(current_movement['date'], date, 1/25. + 0.00001) \
        if current_movement['date'] == date and current_movement['source'] == source \
                                            and current_movement['destination'] == destination \
                                            and current_movement['source_section'] == source_section \
                                            and current_movement['destination_section'] == destination_section \
2865 2866
                                            and self.roundedEquals(current_movement['value'], value):
          #and self.areNear(current_movement['value'], value):
2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994
          expected_movement = current_movement
        i += 1
      
      self.failUnless(expected_movement is not None)
      
      if expected_movement is not None:
        del expected[i-1]
      
      
    # Then verify if there are expected simulation movements
    # which have not been matched
    LOG('testImmobilisation :',0,'verifying if expected values have all been matched... remaining = %s' % repr(expected))
    self.assertEquals(len(expected),0)
    
      
      
      
  def stepPrepareLinearTest(self, sequence=None, **kw):
    """
    Prepare data in sequence for the linear test
    """
    sequence.edit(immobilisation_list_name = 'linear')
    
    
  def stepPrepareDegressiveTest(self, sequence=None, **kw):
    """
    Prepare data in sequence for the degressive test
    """
    sequence.edit(immobilisation_list_name = 'degressive')
    
    
  def stepPrepareSameDayTest(self, sequence=None, **kw):
    """
    Prepare data in sequence for the test on same day
    """
    sequence.edit(immobilisation_list_name = 'same_day')
    
    
  def stepPrepareFirstOwnerChangeTest(self, sequence=None, **kw):
    """
    Prepare data in sequence for the first test on ownership changing
    """
    sequence.edit(immobilisation_list_name = 'owner_change_1')
    
    
  def stepPrepareSecondOwnerChangeTest(self, sequence=None, **kw):
    """
    Prepare data in sequence for the second test on ownership changing
    """
    sequence.edit(immobilisation_list_name = 'owner_change_2')
    
    
  def stepPrepareThirdOwnerChangeTest(self, sequence=None, **kw):
    """
    Prepare data in sequence for the third test on ownership changing
    """
    sequence.edit(immobilisation_list_name = 'owner_change_3')
      
  
  def stepPrepareComplexTest(self, sequence=None, **kw):
    """
    Prepare data in sequence for the complex test
    """
    sequence.edit(immobilisation_list_name = 'complex')    
    
      
  def stepTic(self,**kw):
    portal = self.getPortal()
    LOG('Tic :', 0, 'before : %s' % repr(portal.portal_activities.getMessageList()))
    #portal.portal_activities.distribute()
    while len(portal.portal_activities.getMessageList())>0:
      self.tic()
    #portal.portal_activities.tic()
    LOG('Tic :', 0, 'after : %s' % repr(portal.portal_activities.getMessageList()))
    
    
  def stepAggregate(self, **kw):
    self.getPortal().Immobilisation_aggregateSimulationMovementsToAccounting(from_date=None, to_date=None)
    
  
    
  def stepVerifyAggregation(self, sequence=None, **kw):
    def cmpfunc(a,b):
      if a.getStopDate() - b.getStopDate() < 0: return -1
      if a.getStopDate() - b.getStopDate() > 0: return 1
      return 0

    
    # Gathering informations to test "delivery" category
    expected_simulation_movement_list = {}
    for value in self.simulation_value_list.values():
      if len(value) != 0:
        for simulation_movement in value[-1]:
          date                = simulation_movement['date']
          source_section      = simulation_movement['source_section']
          destination_section = simulation_movement['destination_section']
          source              = simulation_movement['source']
          destination         = simulation_movement['destination']
          value               = simulation_movement['value']
          if expected_simulation_movement_list.get( (date, source_section, destination_section, source, destination), None) is None:
            expected_simulation_movement_list[ (date, source_section, destination_section, source, destination) ] = []
          expected_simulation_movement_list[(date, source_section, destination_section, source, destination) ].append(value)
          
    
    expected = deepcopy(self.aggregated)
    
    accounting_transaction_list = list(self.getAccountingModule().objectValues())
    accounting_transaction_list.sort(cmpfunc)
    for accounting_transaction in accounting_transaction_list:
      # Check if this accounting transaction is expected
      expected_transaction = None
      i = 0
      date = accounting_transaction.getStopDate()
      source_section = accounting_transaction.getSourceSection()
      destination_section = accounting_transaction.getDestinationSection()
      LOG('testImmobilisation :',0,'verifying accounting transaction %s : destination_section=%s, source_section=%s, date=%s' % (repr(accounting_transaction.getId()), repr(destination_section), repr(source_section), repr(date)))
      LOG('testImmobilisation :',0, 'remaining expected transactions : %s' % repr(expected))
      while expected_transaction is None and i<len(expected):
        current_transaction = expected[i]
        expected_date = current_transaction['date']
        expected_source_section = current_transaction['source_section']
        expected_destination_section = current_transaction['destination_section']
        if expected_source_section is not None: expected_source_section = 'organisation/' + expected_source_section
        if expected_destination_section is not None: expected_destination_section = 'organisation/' + expected_destination_section
        if current_transaction['date'] == date and expected_source_section == source_section \
                                               and expected_destination_section == destination_section:
          expected_transaction = current_transaction
        i += 1
2995
       
2996
      self.failUnless(expected_transaction is not None)
2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056
      # We matched this accounting transaction with an expected one
      # Now we check if each of its lines matchs with an expected one
      #if expected_transaction is not None:
      for accounting_transaction_line in accounting_transaction.objectValues():
        # Check if this accounting transaction line is expected
        expected_transaction_line = None
        j = 0
        source = accounting_transaction_line.getSource()
        destination = accounting_transaction_line.getDestination()
        value = accounting_transaction_line.getQuantity()
        
        LOG('testImmobilisation :',0,'verifying accounting transaction  line %s : destination=%s, source=%s, value=%s' % (repr(accounting_transaction_line.getId()), repr(destination), repr(source), repr(value)))
        LOG('testImmobilisation :',0, 'remaining expected transaction lines : %s' % repr(expected_transaction['data']))
        while expected_transaction_line is None and j<len(expected_transaction['data']):
          current_transaction_line = expected_transaction['data'][j]
          expected_value = current_transaction_line['value']
          expected_source = current_transaction_line['source']
          expected_destination = current_transaction_line['destination']
          if expected_source is not None: expected_source = 'account/' + expected_source
          if expected_destination is not None: expected_destination = 'account/' + expected_destination
          if expected_source == source and expected_destination == destination \
                                       and self.roundedEquals(expected_value, value):
            #and self.areNear(expected_value, value, 0.04):
            expected_transaction_line = current_transaction_line
          j += 1
       
        self.failUnless(expected_transaction_line is not None)
        # The current accounting transaction line is matched, we delete it
        # in the "expected" data
        del expected_transaction['data'][j-1]
        
        # Check if "delivery" category is well formed
        simulation_movement_list = accounting_transaction_line.getDeliveryRelatedValueList()
        
        date = accounting_transaction.getStopDate()
        source_section = accounting_transaction.getSourceSection()
        destination_section = accounting_transaction.getDestinationSection()
        source = accounting_transaction_line.getSource()
        destination = accounting_transaction_line.getDestination()
        if source_section is not None:
          source_section = source_section.split('/')[-1]
        if destination_section is not None:
          destination_section = destination_section.split('/')[-1]
        if source is not None:
          source = source.split('/')[-1]
        if destination is not None:
          destination = destination.split('/')[-1]
        
        # To check the delivery category, we need to find which
        # simulations movements are expected in getDeliveryRelatedValueList
        expected_list = expected_simulation_movement_list.get( (date, source_section, destination_section, source, destination) , None)
        if expected_list is None:
          LOG('test :', 0, 'unable to find key "(%s,%s,%s,%s,%s)"... expected_simulation_movement_list = %s' % (repr(date), repr(source_section), repr(destination_section), repr(source), repr(destination), repr(expected_simulation_movement_list)))
          self.failUnless(0)
        
        LOG('testImmobilisation :', 0, 'verifying DeliveryRelatedValueList for line %s... expected = %s, found = %s' % (repr(accounting_transaction_line.getId()), repr(expected_list), repr(simulation_movement_list)))
        for simulation_movement in simulation_movement_list:
          value = simulation_movement.getQuantity()
          LOG('testImmobilisation :', 0, 'in DeliveryRelatedValueList, verifying if we find %s in expected list' % repr(value))
          matching_movement = None
3057
          j = 0
3058 3059 3060 3061 3062 3063
          while matching_movement is None and j<len(expected_list):
            current_movement = expected_list[j]
            LOG('testImmobilisation :', 0, 'current_movement = %s, value = %s' % (repr(current_movement), repr(value)))
            LOG('testImmobilisation :', 0, 'rounded current = %s, rounded value = %s' % (repr(round(current_movement,2)), repr(round(value, 2))))
            if self.roundedEquals(current_movement,value):
              matching_movement = current_movement
3064 3065
            j += 1
          
3066 3067 3068 3069
          self.failUnless(matching_movement is not None)
          if matching_movement == expected_list[j-1]:
            j -= 1
          del expected_list[j]
3070
            
3071
        
3072
          
3073 3074
      LOG('testImmobilisation :', 0, 'Verify if transaction %s is empty... remaining = %s' % (repr(accounting_transaction.getId()), repr(expected_transaction['data'])))
      self.assertEquals( len(expected_transaction['data']), 0 )
3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094
      
      del expected[i-1]
          
    LOG('testImmobilisation :', 0, 'Verify if all expected transaction have been matched... remaining = %s' % repr(expected))
    self.assertEquals(len(expected), 0)
        
      
    
  
  def testImmobilisation(self, quiet=0,run=1):
    sequence_list = SequenceList()
    
    # 1)
    # Linear amortisation
    # 4 movements. Depending on validity of each of them, different cases occur.
    # We play with validity to make a maximum of cases occur
    sequence_string = 'PrepareLinearTest Tic NextTestStep Tic VerifySimulation NextTestStep Tic VerifySimulation '
    sequence_string +=                      'NextTestStep Tic VerifySimulation NextTestStep Tic VerifySimulation '
    sequence_string +=                      'NextTestStep Tic VerifySimulation NextTestStep Tic VerifySimulation '
    sequence_string +=                      'NextTestStep Tic VerifySimulation'
3095
    sequence_list.addSequenceString(sequence_string)
3096 3097 3098 3099 3100 3101 3102 3103

    # 2)
    # Degressive amortisation
    # Same as first test, with degressive amortisation
    sequence_string = 'PrepareDegressiveTest Tic NextTestStep Tic VerifySimulation NextTestStep Tic VerifySimulation '
    sequence_string +=                          'NextTestStep Tic VerifySimulation NextTestStep Tic VerifySimulation '
    sequence_string +=                          'NextTestStep Tic VerifySimulation NextTestStep Tic VerifySimulation '
    sequence_string +=                          'NextTestStep Tic VerifySimulation '
3104
    sequence_list.addSequenceString(sequence_string)
3105 3106 3107 3108 3109 3110 3111

    # 3)
    # Immobilisation movement are on the same day, exactly the same date
    # I noticed a strange behavior in this case during previous tests, so this test is required
    # Behavior is uncertain and results should be wrong since sort is made on date, but the expand process must not be broken
    sequence_string = 'PrepareSameDayTest Tic NextTestStep Tic VerifySimulation NextTestStep Tic VerifySimulation '
    sequence_string +=                       'NextTestStep Tic VerifySimulation NextTestStep Tic VerifySimulation '
3112
    sequence_list.addSequenceString(sequence_string)
3113 3114 3115 3116 3117 3118 3119
    
    # 4)
    # Owner changing
    # Test the behavior of automatic acknowledgement of ownership change
    # Test also the behavior if sometimes deliveries are made on None during immobilisation period
    sequence_string = 'PrepareFirstOwnerChangeTest Tic NextTestStep Tic VerifySimulation NextTestStep Tic VerifySimulation '
    sequence_string +=                                'NextTestStep Tic VerifySimulation '
3120
    sequence_list.addSequenceString(sequence_string)
3121 3122 3123 3124 3125 3126 3127 3128
    
    # 5)
    # Owner changing
    # Test the behavior of automatic acknowledgement of ownership change
    # This time, manual immobilisation movements are present. Verify if their date is correctly modified
    sequence_string = 'PrepareSecondOwnerChangeTest Tic NextTestStep Tic VerifySimulation NextTestStep Tic VerifySimulation '
    sequence_string +=                                 'NextTestStep Tic VerifySimulation NextTestStep Tic VerifySimulation '
    sequence_string +=                                 'NextTestStep Tic VerifySimulation '
3129
    sequence_list.addSequenceString(sequence_string)
3130 3131 3132 3133 3134 3135 3136 3137
    
    # 6)
    # Owner changing
    # Test the behavior of automatic acknowledgement of ownership change
    # Same as the previous test, but immobilisation movements are located after the deliveries; they were located before on previous test
    sequence_string = 'PrepareThirdOwnerChangeTest Tic NextTestStep Tic VerifySimulation NextTestStep Tic VerifySimulation '
    sequence_string +=                                'NextTestStep Tic VerifySimulation NextTestStep Tic VerifySimulation '
    sequence_string +=                                'NextTestStep Tic VerifySimulation '
3138
    sequence_list.addSequenceString(sequence_string)
3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164
    
    # 7)
    # Complex test
    # Item is immobilised and unimmobilised several times, with several deliveries, and some immobilisation are on the same
    # date as deliveries, but not only.
    sequence_string = 'PrepareComplexTest Tic NextTestStep Tic VerifySimulation NextTestStep Tic VerifySimulation '
    sequence_string +=                       'NextTestStep Tic VerifySimulation NextTestStep Tic VerifySimulation '
    sequence_string +=                       'NextTestStep Tic VerifySimulation NextTestStep Tic VerifySimulation '
    sequence_string +=                       'NextTestStep Tic VerifySimulation Aggregate VerifyAggregation'
    sequence_list.addSequenceString(sequence_string)
    
    
    
    sequence_list.play(self)



if __name__ == '__main__':
    framework()
else:
    import unittest
    def test_suite():
        suite = unittest.TestSuite()
        suite.addTest(unittest.makeSuite(TestImmobilisation))
        return suite