Ignore:
Timestamp:
Jan 6, 2015, 12:02:36 AM (10 years ago)
Author:
chronos
Message:
  • Fixed: Errors with periodic finance invoice generation.
  • Fixed: In case of generating of incoming invoice wrong outgoing DocumentLine was used.
  • Added: Show related bank accounts in Subject view.
  • Added: Check if htmldoc is installed in OS.
File:
1 edited

Legend:

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

    r720 r727  
    2828        'AddressCountry' => array('Type' => 'TCountry', 'Caption' => 'Země', 'Default' => ''),
    2929        'IC' => array('Type' => 'String', 'Caption' => 'IČ', 'Default' => ''),
    30         'DIC' => array('Type' => 'String', 'Caption' => 'DIČ', 'Default' => ''),
     30        'DIC' => array('Type' => 'String', 'Caption' => 'DIČ', 'Default' => ''),       
    3131        'MapPosition' => array('Type' => 'TMapPosition', 'Caption' => 'Pozice na mapě', 'Default' => '', 'Null' => true),
    3232        'WWW' => array('Type' => 'Hyperlink', 'Caption' => 'WWW', 'Default' => ''),
     
    3939          'WHERE `FinanceOperation`.`Subject`=#Id), 0) - IFNULL((SELECT SUM(`FinanceInvoice`.`Value` * `FinanceInvoice`.`Direction`) FROM `FinanceInvoice` '.
    4040          'WHERE `FinanceInvoice`.`Subject`=#Id), 0)'),
     41        'BankAccounts' => array('Type' => 'TFinanceBankAccountListSubject', 'Caption' => 'Bankovní účety', 'Default' => ''),
    4142      ),
     43    ));
     44    $this->System->FormManager->RegisterFormType('TFinanceBankAccountListSubject', array(
     45      'Type' => 'ManyToOne',
     46      'Table' => 'FinanceBankAccount',
     47      'Id' => 'Id',
     48      'Ref' => 'Subject',
     49      'Filter' => '1',
    4250    ));
    4351    $this->System->FormManager->RegisterClass('SubjectReport', array(
Note: See TracChangeset for help on using the changeset viewer.