PANTHEON™ Help

 Toc
 PANTHEON Help - Welcome
[Collapse]PANTHEON
 [Collapse]Guides for PANTHEON
  [Expand]Guide for PANTHEON
  [Expand]Guide for PANTHEON Retail
  [Expand]Guide for PANTHEON Vet
  [Expand]Guide for PANTHEON Farming
 [Collapse]User Manuals for PANTHEON
  [Collapse]User Manual for PANTHEON
   [Expand]Getting Started
   [Expand]User Manual for eBusiness
   [Expand]Settings
   [Expand]Orders
   [Collapse]Goods
     Stock reports
    [Expand]Issue
    [Expand]Receiving
    [Expand]SAD/Intrastat
    [Expand]Interwarehouse Transfer
    [Expand]Price Change
    [Expand]Inventory
     Recurring Invoicing
    [Collapse]Consignment
      Issuing Consignment Goods
     [Collapse]Consignment Goods - Type K
       Receiving Consignment Goods
       The Sale of Consignment Goods
      [Expand]Consignment Reports
      [Collapse]Faktura dobavitelja
        SQLEXP - Reporting Serial Numbers in a Collective Invoice for a Consignment Supplier
       Viewing the Stock of Consignment Goods
       Price Differences
    [Expand]Value-Added Tax
    [Expand]Customs Warehouses
    [Expand]Issuing Retail Invoices
    [Expand]Stock Valuation
    [Expand]Monitoring Exchange Rates
    [Expand]Goods on Trial
    [Expand]Item Type Examples
    [Expand]Vnos dokumentov z uporabo EM2
    [Expand]Separate Sale Pricing by Warehouse
    [Expand]eSlog
   [Expand]Manufacturing
   [Expand]Service
   [Expand]Help
   [Expand]Personnel
   [Expand]Financials
   [Expand]Analytics
  [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
  [Expand]Old products Archive
 [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
  [Expand]Old products Archive
[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]Archive
[Expand]User Site

Load Time: 484.3833 ms
"
  4205 | 4882 | 338129 | Updated
Label

SQLEXP - Showing Serial Numbers in Consolidated Invoices of Consignors

SQLEXP - Showing Serial Numbers in Consolidated Invoices of Consignors

SQLEXP - Showing Serial Numbers in Consolidated Invoices of Consignors

00001.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>')
00001.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.

 An Example of a Collective Invoice Created from the Collective Invoice of a Consignment Report

In the chapter on SQLEXP - Reporting Serial Numbers in a Collective Invoice, we saw an example of reporting linked serial numbers when a collective invoice is created directly from issue documents. We stressed that the report of the collective invoice or the overview of serial numbers does not give information about the received or issued serial numbers of items from the collective invoices because these serial numbers were already received or issued with an issue document.

But you can use the SQLEXP function to report a list of received or issued serial numbers (see Using SQLEXP Stamements in Reports).

It's a little different when you report werial numbers in a consignment supplier's collective invoice which you've created using a different collective invoice (see Consignment Reports) and not directly from the documents where the serial numbers were recorded. 

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('exec dl_HE_PrtSerialNoKomOdjava ''' + tbIzpisPrometPoz.Kljuc + ''' , ' + tbIzpisPrometPoz.Poz)

This statement refers to the stored procedure dl_HE_PrtSerialNoKomOdjava, which is why it is somewhat shorter than the other examples for reporting serial numbers. In this example, a predefined stored procedure is useful. A different, user stored procedure could also be used.

 

Report:

1. Form

008181.gif

2. Example of a Report

From this example, you can see that serial numbers are reported one on top of another. The issued quantity for an individual serial number appears in parentheses.

 

008182.gif

 



 

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