1.Create a file /custom/Espo/Custom/SelectManagers/AccountTransaction.php with this code:
PHP Code:
<?php
namespace Espo\Custom\SelectManagers;
class AccountTransaction extends \Espo\Core\SelectManagers\Base
{
protected function filterRecurring(&$result)
{
$result['whereClause'][] = [
'basis' => 'Recurring',
];
}
}
Code:
liARR = record\count('AccountTransaction', 'recurring');
Leave a comment: