<?php

$CFG['Invoices']['CashBook']['Documents']['listingParams']['resultsPerPage'] = 10;
$CFG['Invoices']['CashBook']['Documents']['listingParams']['orderColumn'] = 'addTime';
$CFG['Invoices']['CashBook']['Documents']['listingParams']['orderDirection'] = 'DESC';

// CASHBOOK DOCUMENTS DEFAULT FILTERS /////////////////////////////////////////////////////////////

// document date
$CFG['Invoices']['CashBook']['Documents']['listingParams']['filters']['interval']['end'] = TODAY_ISO;
$CFG['Invoices']['CashBook']['Documents']['listingParams']['filters']['interval']['start'] = date(MYSQL_FORMAT, strtotime("-2weeks"));

// responsible office|user
$CFG['Invoices']['CashBook']['Documents']['listingParams']['filters']['user']['id'] = CURRENT_ID_OFFICE.'|0';

// currency
$CFG['Invoices']['CashBook']['Documents']['listingParams']['filters']['currency'] = "";

// document types
$CFG['Invoices']['CashBook']['Documents']['listingParams']['filters']['category'] = "";


// INSERT DEFAULT /////////////////////////////////////////////////////////////////////////////////
$CFG['Invoices']['CashBook']['Documents']['defaultValues']['idUser']['id'] = CURRENT_ID_USER;
$CFG['Invoices']['CashBook']['Documents']['defaultValues']['date'] = TODAY_ISO;

