Ignore:
Timestamp:
Apr 25, 2020, 10:58:07 PM (5 years ago)
Author:
chronos
Message:
  • Added: Show number of paired invoices in finance operations.
File:
1 edited

Legend:

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

    r874 r877  
    269269        'Generate' => array('Type' => 'Boolean', 'Caption' => 'Generovat', 'Default' => ''),
    270270        'InvoiceRel' => array('Type' => 'TFinanceInvoiceOperationRelListOperation', 'Caption' => 'Zaplacené faktury', 'Default' => ''),
     271        'InvoiceRelCount' => array('Type' => 'Integer', 'Caption' => 'Faktur',
     272          'ReadOnly' => true, 'SQL' => '(SELECT COUNT(`FinanceInvoiceOperationRel`.`Id`) FROM `FinanceInvoiceOperationRel` '.
     273          'WHERE `FinanceInvoiceOperationRel`.`Operation`=#Id)'),
    271274      ),
    272275      'BeforeInsert' => array($this, 'BeforeInsertFinanceOperation'),
Note: See TracChangeset for help on using the changeset viewer.