Filtro di ricerca in PDF Report molto strano
Inviato: 11 set 2020, 13:25
Ciao a tutti,
ho un pdf report che parte con un search e tra i campi selezionabili ho l' ID Fattura.
Il filtro prevede "Uguale a" e poi la lista delle fatture.
Selezione alcune fatture e poi clicco su ricerca.
Stranamente non mi stampa nessuna fattura ... nessun record trovato etc con la pagina bianca.
Se prendo la query che viene fuori in Debug Mode mi mette questo tipo di where alla fine...
Per i più tecnici di me è corretta ??? Se levo questo mi seleziona tutto correttamente .
Gli ID delle fatture selezionate sono 416, 415, 414
and ( Upper(invoices.InvoiceNumber) in (Upper('416'),Upper('415'),Upper('414')) ) order by invoices.InvoiceID DESC
A me sembra un po' strana
Grazie
Query completa:
SELECT invoices.InvoiceID as invoices_invoiceid, invoices.OfficeID as invoices_officeid, invoices.CustomerID as invoices_customerid, customers.CompanyName as customers_companyname, customers.Address as customers_address, customers.PostalCode as customers_postalcode, customers.City as customers_city, customers.State as customers_state, customers.Country as customers_country, customers.VatCode as customers_vatcode, customers.FiscalCode as customers_fiscalcode, invoices.EmployeeID as invoices_employeeid, invoices.InvoiceDate as invoices_invoicedate, invoices.InvoiceNumber as invoices_invoicenumber, invoices.currencyID as invoices_currencyid, invoices.RequiredDate as invoices_requireddate, invoices.OrderRef as invoices_orderref, invoices.RefGoodsDoc as invoices_refgoodsdoc, invoices.PaymentTermsID as invoices_paymenttermsid, invoices.BankDetails as invoices_bankdetails, invoices.service_typeID as invoices_service_typeid, invoices.ShippedDate as invoices_shippeddate, invoices.ShipVia as invoices_shipvia, invoices.CourierName as invoices_couriername, invoices.Freight as invoices_freight, invoices.ShipName as invoices_shipname, invoices.ShipAddress as invoices_shipaddress, invoices.ShipCity as invoices_shipcity, invoices.ShipRegion as invoices_shipregion, invoices.ShipPostalCode as invoices_shippostalcode, invoices.ShipCountry as invoices_shipcountry, offices.bankcode04 as offices_bankcode04, customers.Phone as customers_phone, customers.Fax as customers_fax, customers.Email as customers_email from invoices, customers, offices where invoices.CustomerID = customers.CustomerID and invoices.OfficeID = offices.officeID and ( Upper(invoices.InvoiceNumber) in (Upper('416'),Upper('415'),Upper('414')) ) order by invoices.InvoiceID DESC
ho un pdf report che parte con un search e tra i campi selezionabili ho l' ID Fattura.
Il filtro prevede "Uguale a" e poi la lista delle fatture.
Selezione alcune fatture e poi clicco su ricerca.
Stranamente non mi stampa nessuna fattura ... nessun record trovato etc con la pagina bianca.
Se prendo la query che viene fuori in Debug Mode mi mette questo tipo di where alla fine...
Per i più tecnici di me è corretta ??? Se levo questo mi seleziona tutto correttamente .
Gli ID delle fatture selezionate sono 416, 415, 414
and ( Upper(invoices.InvoiceNumber) in (Upper('416'),Upper('415'),Upper('414')) ) order by invoices.InvoiceID DESC
A me sembra un po' strana
Grazie
Query completa:
SELECT invoices.InvoiceID as invoices_invoiceid, invoices.OfficeID as invoices_officeid, invoices.CustomerID as invoices_customerid, customers.CompanyName as customers_companyname, customers.Address as customers_address, customers.PostalCode as customers_postalcode, customers.City as customers_city, customers.State as customers_state, customers.Country as customers_country, customers.VatCode as customers_vatcode, customers.FiscalCode as customers_fiscalcode, invoices.EmployeeID as invoices_employeeid, invoices.InvoiceDate as invoices_invoicedate, invoices.InvoiceNumber as invoices_invoicenumber, invoices.currencyID as invoices_currencyid, invoices.RequiredDate as invoices_requireddate, invoices.OrderRef as invoices_orderref, invoices.RefGoodsDoc as invoices_refgoodsdoc, invoices.PaymentTermsID as invoices_paymenttermsid, invoices.BankDetails as invoices_bankdetails, invoices.service_typeID as invoices_service_typeid, invoices.ShippedDate as invoices_shippeddate, invoices.ShipVia as invoices_shipvia, invoices.CourierName as invoices_couriername, invoices.Freight as invoices_freight, invoices.ShipName as invoices_shipname, invoices.ShipAddress as invoices_shipaddress, invoices.ShipCity as invoices_shipcity, invoices.ShipRegion as invoices_shipregion, invoices.ShipPostalCode as invoices_shippostalcode, invoices.ShipCountry as invoices_shipcountry, offices.bankcode04 as offices_bankcode04, customers.Phone as customers_phone, customers.Fax as customers_fax, customers.Email as customers_email from invoices, customers, offices where invoices.CustomerID = customers.CustomerID and invoices.OfficeID = offices.officeID and ( Upper(invoices.InvoiceNumber) in (Upper('416'),Upper('415'),Upper('414')) ) order by invoices.InvoiceID DESC