PANTHEON™ Help

 Категории
 PANTHEON Help - Welcome
[Collapse]PANTHEON
 [Collapse]PANTHEON упатства
  [Collapse]Guide for PANTHEON
   [Expand]Settings
   [Expand]Orders
   [Collapse]Goods
    [Expand]Mass Printing
     Интеграция PANTHEON с 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]Помощ
   [Expand]Старите продукти
   [Expand]Messages and Warnings
   [Expand]Additional programs
  [Expand]Ръководство за PANTHEON Търговия
  [Expand]Ръководство за PANTHEON Vet
  [Expand]Ръководство за PANTHEON Фермерство
 [Collapse]PANTHEON потребителски ръководства
  [Expand]Ръководство за потребителя за PANTHEON
  [Expand]Ръководство за потребителя за PANTHEON Retail
  [Expand]Ръководство за потребителя за PANTHEON Vet
  [Expand]Ръководство за потребителя за PANTHEON Farming
[Collapse]PANTHEON Web
 [Collapse]PANTHEON Web Guides
  [Expand]Ръководство за PANTHEON Web Light
  [Expand]Ръководство за PANTHEON Уеб Терминал
  [Expand]Ръководство за PANTHEON Web Legal
  [Expand]Архив на стари продукти
 [Collapse]PANTHEON Web User Manuals
  [Expand]Започване на PANTHEON Web
  [Expand]User Manual for PANTHEON Web Light
   Ръководство за потребителя за PANTHEON Web Terminal
  [Expand]Ръководство за потребителя за PANTHEON Web Legal
  [Expand]Архив на стари продукти
[Collapse]PANTHEON Гранула
 [Collapse]Ръководство за PANTHEON Гранули
  [Expand]Гранула за служители
  [Expand]Пътни заповеди Гранула
  [Expand]Гранула за документи и задачи
  [Expand]Гранула Табло
  [Expand]Гранула за B2B поръчки
  [Expand]Гранула за обслужване на клиенти
  [Expand]Инвентаризация на дълготрайни активи
  [Expand]Гранула за складови наличности
 [Collapse]PANTHEON Granules
   Започване
   Using PANTHEON Granules at Tecta, a fictional company
  [Expand]PANTHEON Granules and activation
  [Expand]PANTHEON Granule Work records
  [Expand]PANTHEON Granule Travel orders
  [Expand]PANTHEON Granule Documents and Tasks
  [Expand]PANTHEON Granule B2B orders
  [Expand]PANTHEON Granule Dashboard
  [Expand]Полеви сервизен гранул
   PANTHEON Granules - FAQ
  [Expand]Инвентаризация на дълготрайни активи
  [Expand]Инвентаризация на склада Гранула
   Архив
[Expand]Потребителски сайт

Load Time: 359,3853 ms
"
  4207 | 4884 | 401602 | Localized
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). 


 

Оценете темата
Темата беше ли ви полезна?
Коментар
Вашият коментар ще бъде видим и във форума!