PANTHEON™ Help

 Toc
 PANTHEON Help - Welcome
[Collapse]PANTHEON
 [Collapse]Guides for PANTHEON
  [Collapse]Guide for PANTHEON
   [Expand]Settings
   [Expand]Orders
   [Collapse]Goods
    [Expand]Mass Printing
     Integration PANTHEON with WebShops
    [Collapse]Issue
      ER Diagram for Issue Documents
      Issue Scheme
     [Expand]Issue Document
     [Expand]Internal Issue
     [Collapse]Collective Issue
       Update Quantity of Mass added Lines in Link Table
       Add Packing Slip
       SQLEXP -Show Serial Numbers in Consolidated Invoices
       Šifrant periodike zbirnega fakturiranja
     [Expand]POSX invoices
     [Expand]Prepayments Received
     [Expand]TouchScreen POS
     [Expand]Own Use
    [Expand]Receiving
    [Expand]Single Administrative Document (SAD)
    [Expand]Transfer
    [Expand]Price change
    [Expand]Inventory count
    [Expand]Recurrent Invoicing
     Create Consignment Report
    [Expand]Prepare cash discount
    [Expand]Custom warehouses
    [Expand]Stock
    [Expand]Trošarinska skladišča
    [Expand]Material Movements
    [Expand]Income/Expense Comparison
    [Expand]Invoices Issued Report
    [Expand]Invoices Received Report
    [Expand]Value-Added Tax
    [Expand]Overview of Material Movement
    [Expand]Summary Reports
    [Expand]Refresh Stock
   [Expand]Manufacturing
   [Expand]POS
   [Expand]Service
   [Expand]Financials
   [Expand]Personnel
   [Expand]Analytics
   [Expand]Desktop
   [Expand]Help
   [Expand]Messages and Warnings
   [Expand]Additional programs
  [Expand]Guide for PANTHEON Retail
  [Expand]Guide for PANTHEON Vet
  [Expand]Guide for PANTHEON Farming
 [Collapse]User Manuals for PANTHEON
  [Expand]User Manual for PANTHEON
  [Expand]User Manual for PANTHEON Retail
  [Expand]User manual for PANTHEON Vet
  [Expand]User Manual for PANTHEON Farming
[Collapse]PANTHEON Web
 [Collapse]Guides for PANTHEON Web
  [Expand]Guide for PANTHEON Web Light
  [Expand]Guide for PANTHEON Web Terminal
  [Expand]Guide for PANTHEON Web Legal
 [Collapse]User Manuals for PANTHEON Web
  [Expand]Getting started PANTHEON Web
  [Expand]User Manual for PANTHEON Web Light
  [Expand]User Manual for PANTHEON Web Terminal
  [Expand]User Manual for PANTHEON Web Legal
[Collapse]PANTHEON Granules
 [Collapse]Guides for PANTHEON Granules
  [Expand]Personnel Granule
  [Expand]Travel Orders Granule
  [Expand]Documents and Tasks Granule
  [Expand]Dashboard Granule
  [Expand]B2B Orders Granule
  [Expand]Field Service Granule
  [Expand]Fixed Assets Inventory Granule
  [Expand]Warehouse Inventory Granule
 [Collapse]User Manuals for PANTHEON Granules
  [Expand]Getting started
  [Expand]Personnel Granule
  [Expand]Travel Orders Granule
  [Expand]Documents and Tasks Granule
  [Expand]B2B Orders Granule
  [Expand]Dashboard Granule
  [Expand]Field Service Granule
  [Expand]Fixed Assets Inventory Granule
  [Expand]Warehouse Inventory Granule
[Expand]User Site

Load Time: 2453.1429 ms
"
  4207 | 4884 | 338131 | Updated
Label

SQLEXP - Serial Number Reports in Collective Invoices

SQLEXP - Showing Serial Numbers in Consolidated Invoices

SQLEXP - Showing Serial Numbers in Consolidated Invoices

010381.gif010411.gif010382.gif010383.gif

000001.gif SQLEXP  is a function used by the program to generate reports which makes it possible to report information not available in the original RecordSet of a report. This way, you can include information from other tables and registers in reports for individual user reports.

Syntax:

SqlExp('<SQL stavek>')
000001.gif

Because the names of RecordSets and fields in the RecordSets could differ in each report, you must check the name of the RecordSets and fields for each concrete report.

Example of a collective issue:

Let's look at an example where the collective invoice (receipt or issue) ahs been created from internal documents (receipts or issues) in which you've received or issued goods tracked by serial numbers.

The report of a collective invoice or an overview of serial numbers will not produce information about the received or issued serial numbers of items from the collective invoice, because these serial numbers were received or issued through internal documents.

But you can report a list of received or issued serial numbers! To do this, use the SQLEXP function for reports (see Using SQLEXP Statements in Reports). Serial numbers will be directly reported using the link table, where the link between the internal document and the collective invoice is entered with type 4 (see Linking Documents).

Reports of this kind are used to report serial numbers in a collective invoice that has been created directly from internal documents (collective receiving, collective issue).

 

1. Create a new record from the report of an already existing report for an invoice. Add a new Field with Statement by clicking the 007515.gif icon:

2. In the Statement field, enter the SQL sentence:

 

SQLExp('select S.SerialNo + '' ('' + LTrim(Str(Sum(S.Kolicina), 10, 2)) + '')'' as SN 
from SerialNoP S, Veza V 
where V.VKljuc = S.Kljuc and V.VPoz = S.Poz and V.Tip = ''4'' and V.Kljuc = ''' + 
tbIzpisPrometPoz.Kljuc + ''' and V.Poz = ' + tbIzpisPrometPoz.Poz + ' 
group by S.SerialNo')
000001.gif The same sentence can be used to report serial numbers in a collective receiving document, because it is linked with the same type of link (type 4).

Using a similar procedure, but a different sentence, you can report serial numbers in collective invoices when creating consignment reports (for an example see SQLEXP - Reporting Serial Numbers in a Collective Invoice for a Consignment Report) and from a collective consignment invoice (for an example, see SQLEXP - Reporting Serial Numbers in a Consignment Partner's Collective Invoice). 


 

Rate this topic
Was this topic usefull?
Comments
Comment will also bo visible in forum!