Ignore:
Timestamp:
Jan 11, 2016, 12:06:08 AM (9 years ago)
Author:
chronos
Message:
  • Modified: Now billing period for invoice generation is calculated as aligned to year boundary and if period is not complete then only valid months are used.
  • Removed: ToDo list and list of task and bugs is available in Trac web system.
  • Modified: BillingPeriodNext was replaced by more general ChangeAction in Member table.
  • Added: Log new monthly finance recalculation report to log table.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Portal/Portal.php

    r738 r786  
    4040        'DIC' => array('Type' => 'String', 'Caption' => 'DIČ', 'Default' => ''),
    4141        'FamilyMemberCount' => array('Type' => 'Integer', 'Caption' => 'Počet osob v domácnosti', 'Default' => '', 'Suffix' => 'osob'),
    42         'BillingPeriodNext' => array('Type' => 'TFinanceBillingPeriod', 'Caption' => 'Požadované fakturované období', 'Default' => ''),
    4342      ),
    4443    ));
     
    196195          $CustomerUserRel = $DbResult->fetch_assoc();
    197196          $DbResult = $this->Database->query('SELECT Member.Id, '.
    198             'Member.FamilyMemberCount, Member.BillingPeriodNext, Subject.Name, Subject.AddressStreet, '.
     197            'Member.FamilyMemberCount, Subject.Name, Subject.AddressStreet, '.
    199198            'Subject.AddressTown, Subject.AddressPSC, Subject.AddressCountry, Subject.IC, Subject.DIC FROM Member JOIN Subject '.
    200199           'ON Subject.Id = Member.Subject WHERE Member.Id='.$CustomerUserRel['Customer']);
     
    215214        if($Form->Values['FamilyMemberCount'] < 0)
    216215          $Form->Values['FamilyMemberCount'] = 0;
    217         if($Form->Values['BillingPeriodNext'] < 2)
    218           $Form->Values['BillingPeriodNext'] = 2;
    219216
    220217        $DbResult = $this->Database->update('Member', 'Id='.$this->System->User->User['Member'],
    221            array('FamilyMemberCount' => $Form->Values['FamilyMemberCount'],
    222            'BillingPeriodNext' => $Form->Values['BillingPeriodNext']));
     218           array('FamilyMemberCount' => $Form->Values['FamilyMemberCount']));
    223219        $DbResult = $this->Database->query('SELECT Subject FROM Member WHERE Id='.$this->System->User->User['Member']);
    224220        $Member = $DbResult->fetch_assoc();
     
    231227        $this->System->ModuleManager->Modules['Log']->NewRecord('Member+Subject', 'Nastavení člena/subjektu změněno',
    232228          $Form->Values['Name']);
    233         $DbResult = $this->Database->query('SELECT Member.Id, Member.FamilyMemberCount, Member.BillingPeriodNext, '.
     229        $DbResult = $this->Database->query('SELECT Member.Id, Member.FamilyMemberCount, '.
    234230          'Subject.Name, Subject.AddressStreet, Subject.AddressTown, Subject.AddressPSC, '.
    235231          'Subject.AddressCountry, Subject.IC, Subject.DIC FROM Member JOIN Subject '.
Note: See TracChangeset for help on using the changeset viewer.