public static List <PfeSearchFieldDefinition> AddIdFormatMeno_SearchFieldDefinition(FakturaciaVztahEnum showOnlyOdbDod)
        {
            var fld = OsoSearchFieldDefinition(null); //AdditionalFilterDesc sa nastaví neskôr

            if (showOnlyOdbDod > 0)
            {
                fld.AdditionalFilterSql  = $"C_FakturaciaVztah_Id IN ({(int)showOnlyOdbDod}, {(int)FakturaciaVztahEnum.DOD_ODB})";
                fld.AdditionalFilterDesc = showOnlyOdbDod == FakturaciaVztahEnum.DOD ? "Dodávatelia" : "Odberatelia";
            }
            return(new List <PfeSearchFieldDefinition>
            {
                fld
            });
        }
        public static List <PfeSearchFieldDefinition> AddAdresaTPSidlo_SearchFieldDefinition(FakturaciaVztahEnum showOnlyOdbDod)
        {
            var fld = new PfeSearchFieldDefinition
            {
                Code                 = "osa-oso",
                NameField            = "D_Osoba_Id",
                DisplayField         = "AdresaTPSidlo",
                AdditionalFilterSql  = "AdresaTPSidlo IS NOT NULL", // zobraz iba neprazdne adresy
                AdditionalFilterDesc = "vyplnené TP/Sídlo"
            };

            if (showOnlyOdbDod > 0)
            {
                fld.AdditionalFilterSql  += $" AND C_FakturaciaVztah_Id IN ({(int)showOnlyOdbDod}, {(int)FakturaciaVztahEnum.DOD_ODB})";
                fld.AdditionalFilterDesc += showOnlyOdbDod == FakturaciaVztahEnum.DOD ? ", Dodávatelia" : ", Odberatelia";
            }
            return(new List <PfeSearchFieldDefinition>
            {
                fld
            });
        }