Changeset 642


Ignore:
Timestamp:
Mar 22, 2014, 10:15:37 PM (11 years ago)
Author:
chronos
Message:
  • Přidáno: Zobrazovat počet přidružených plateb u faktur.
File:
1 edited

Legend:

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

    r639 r642  
    368368        'Items' => array('Type' => 'TFinanceInvoiceItemListInvoice', 'Caption' => 'Položky', 'Default' => ''),
    369369        'OperationRel' => array('Type' => 'TFinanceInvoiceOperationRelListInvoice', 'Caption' => 'Platba', 'Default' => ''),
     370        'OperationRelCount' => array('Type' => 'Integer', 'Caption' => 'Plateb',
     371          'ReadOnly' => true, 'SQL' => '(SELECT COUNT(`FinanceInvoiceOperationRel`.`Id`) FROM `FinanceInvoiceOperationRel` '.
     372          'WHERE `FinanceInvoiceOperationRel`.`Invoice`=#Id)'),
    370373      ),
    371374      'BeforeInsert' => array($this, 'BeforeInsertFinanceOperation'),
Note: See TracChangeset for help on using the changeset viewer.