Example #1
0
def default_setowner_fr(with_lots=True):
    if Params.getvalue("condominium-old-accounting"):
        create_account(['450'], 0, FiscalYear.get_current())
    else:
        create_account(['4501', '4502', '4503', '4504', '4505'], 0,
                       FiscalYear.get_current())
    create_account(['120', '103', '105'], 2, FiscalYear.get_current())
    create_account(['702'], 3, FiscalYear.get_current())
    set1 = Set.objects.create(name="AAA",
                              budget=1000,
                              revenue_account='701',
                              is_link_to_lots=with_lots,
                              type_load=0)
    _set_budget(set1, '604', 1000)
    set2 = Set.objects.create(name="BBB",
                              budget=100,
                              revenue_account='701',
                              type_load=0)
    _set_budget(set2, '604', 100)
    set3 = Set.objects.create(name="CCC",
                              budget=500,
                              revenue_account='702',
                              type_load=1)
    _set_budget(set3, '604', 500)
    set4 = Set.objects.create(name="OLD",
                              budget=100,
                              revenue_account='702',
                              type_load=1,
                              is_active=False)
    _set_budget(set4, '602', 100)
    _create_owners(set1, set2, set3, set4, with_lots)
    Owner.check_all_account()
Example #2
0
def default_setowner_be(with_lots=True):
    create_account(['410000', '410100'], 0, FiscalYear.get_current())
    create_account(['100000', '160000'], 2, FiscalYear.get_current())
    create_account(['700100', '701100', '701200'], 3, FiscalYear.get_current())
    set1 = Set.objects.create(name="AAA",
                              is_link_to_lots=with_lots,
                              type_load=0)
    _set_budget(set1, '602000', 1200)
    set2 = Set.objects.create(name="BBB", type_load=0)
    _set_budget(set2, '602000', 120)
    set3 = Set.objects.create(name="CCC", type_load=1)
    _set_budget(set3, '602000', 600)
    set4 = Set.objects.create(name="OLD", type_load=1, is_active=False)
    _set_budget(set4, '601000', 120)
    _create_owners(set1, set2, set3, set4, with_lots)
    Owner.check_all_account()
Example #3
0
 def fillresponse(self):
     if self.confirme(_('Do you want to check account of owners?')):
         Owner.check_all_account()