<?php
// INVOICES MAIN LIST PARAMS //////////////////////////////////////////////////////////////////
$CFG['Invoices']['SupplierInvoices']['listingParams']['resultsPerPage']=20;
$CFG['Invoices']['SupplierInvoices']['listingParams']['orderColumn']='addTime';
$CFG['Invoices']['SupplierInvoices']['listingParams']['orderDirection']='DESC';

// invoices start/end date (in mysql format)
$CFG['Invoices']['SupplierInvoices']['listingParams']['filters']['invoiceDate']['start'] = date(MYSQL_FORMAT, strtotime("-1 month"));
$CFG['Invoices']['SupplierInvoices']['listingParams']['filters']['invoiceDate']['end'] = TODAY_ISO;
$CFG['Invoices']['SupplierInvoices']['listingParams']['filters']['invoiceDate']['maxDifference'] = 731; // 2 years +1 day max difference

// default status filter: "", "notConfirmed", "confirmed|", "confirmed|n", "confirmed|p", "confirmed|t"
$CFG['Invoices']['SupplierInvoices']['listingParams']['filters']['invoiceStatus'] = "";

// default id reservation
$CFG['Invoices']['SupplierInvoices']['listingParams']['filters']['idReservation'] = "";

// type can be: "id", "code", "number"
$CFG['Invoices']['SupplierInvoices']['listingParams']['filters']['idReservationType'] = "id";

// invoice responsible user ('X|Y' - X=idOffice, Y=idUser) (X, Y can be 0) (Ex: CURRENT_ID_OFFICE, CURRENT_ID_USER)
$CFG['Invoices']['SupplierInvoices']['listingParams']['filters']['user']['id'] = CURRENT_ID_OFFICE."|".CURRENT_ID_USER;

// default blocked invoices (all, blocked, notBlocked)
$CFG['Invoices']['SupplierInvoices']['listingParams']['filters']['blockedInvoices'] = "all";

// supplier
$CFG['Invoices']['SupplierInvoices']['listingParams']['filters']['supplier']['id'] = "";

// supplier product
$CFG['Invoices']['SupplierInvoices']['listingParams']['filters']['idSuppProduct']['id'] = "";

// default invoice no
$CFG['Invoices']['SupplierInvoices']['listingParams']['filters']['invoiceNumber'] = "";

// default balancedRows (all, balanced, notBalanced)
$CFG['Invoices']['SupplierInvoices']['listingParams']['filters']['balancedRows'] = "all";

// default blockable (all, blockable, notBlockable)
$CFG['Invoices']['SupplierInvoices']['listingParams']['filters']['blockableInvoices'] = "all";

// invoice due date (in mysql format) (leave blank for no filter)
$CFG['Invoices']['SupplierInvoices']['listingParams']['filters']['dueDate']['start'] = '';
$CFG['Invoices']['SupplierInvoices']['listingParams']['filters']['dueDate']['end'] = '';

// default service code
$CFG['Invoices']['SupplierInvoices']['listingParams']['filters']['service'] = "";

// default text filter
$CFG['Invoices']['SupplierInvoices']['listingParams']['filters']['textFilter']="";
