Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
|
Callback
Support |
If you live in USA, UK, Canada, Australia or New
Zealand, you can leave us details on your question and request us to call you back and discuss
them with you personally (charges apply). |
Click Here
|
Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
|
Script Variable Syntax |
Author |
Message |
|
Posted : 2007-10-24 03:41:44 |
Tom,
What is the syntax to pull "All INvoices" created "Today" that have "PickTicket" in the Template name? Specifically, how do you pull a partial name of a field data.
Example:
Actual Data: TemplateRefFullName=PickTicketWest
How would i pull records that have 'pickticket' anywhere in the field? Are there wildcards I can use? I have other pickticket invoice templates I use
Script I have been working on:
SELECT RefNumber,TxnDate,TxnDateMacro,DueDate,ShipDate,ShipMethodRefFullName,Memo,PONumber, InvoiceLine.SalesRepRefFullName,FOB,Customer.BillAddressAddr1,Customer.LastName,Customer.BillAddressAddr2, Customer.BillAddressAddr3,Customer.BillAddressAddr4,Customer.BillAddressCity,Customer.BillAddressState, Customer.BillAddressPostalCode,Customer.BillAddressCountry,Phone,Email,Customer.ShipAddressAddr1, Customer.ShipAddressAddr2,Customer.ShipAddressAddr3,Customer.ShipAddressAddr4, Customer.ShipAddressCity,Customer.ShipAddressState,Customer.ShipAddressPostalCode, Customer.ShipAddressCountry,Phone,Email,Subtotal,InvoiceLineType,InvoiceLineDesc, CustomFieldInvoiceLineCOLOR,CustomFieldInvoiceLineSIZE,CustomFieldInvoiceLineUPC, InvoiceLineRate,InvoiceLineQuantity,InvoiceLineAmount FROM InvoiceLine,Customer WHERE InvoiceLine.CustomerRefListid=Customer.ListID AND (InvoiceLine.TxnDate>{d '2007-10-14'} And InvoiceLine.TxnDate<{d '2007-10-16'}) AND TemplateRefFullName='pickticket' <----this is the issue i am struggling with
THANKS! |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2007-10-24 13:09:58 |
You nearly had it. Try:
SELECT RefNumber,TxnDate,TxnDateMacro,DueDate,ShipDate,ShipMethodRefFullName, Memo,PONumber,InvoiceLine.SalesRepRefFullName,FOB,Customer.BillAddressAddr1, Customer.LastName,Customer.BillAddressAddr2,Customer.BillAddressAddr3, Customer.BillAddressAddr4,Customer.BillAddressCity,Customer.BillAddressState, Customer.BillAddressPostalCode,Customer.BillAddressCountry,Phone,Email, Customer.ShipAddressAddr1,Customer.ShipAddressAddr2,Customer.ShipAddressAddr3, Customer.ShipAddressAddr4,Customer.ShipAddressCity,Customer.ShipAddressState, Customer.ShipAddressPostalCode,Customer.ShipAddressCountry,Phone,Email, Subtotal,InvoiceLineType,InvoiceLineDesc,CustomFieldInvoiceLineCOLOR, CustomFieldInvoiceLineSIZE,CustomFieldInvoiceLineUPC,InvoiceLineRate, InvoiceLineQuantity,InvoiceLineAmount FROM InvoiceLine,Customer WHERE InvoiceLine.CustomerRefListid=Customer.ListID AND (InvoiceLine.TxnDate = {fn CURDATE()}) AND InvoiceLine.TemplateRefFullName='pickticket' |
|
|
|
|