PANTHEON™ Help

 Toc
 PANTHEON Ajutor - Bun venit
[Collapse]PANTHEON
 [Collapse]Ghiduri pentru PANTHEON
  [Expand]Ghid pentru PANTHEON
  [Expand]Ghid pentru PANTHEON Retail
  [Expand]Ghid pentru PANTHEON Vet
  [Expand]Ghid pentru PANTHEON Fermă
 [Collapse]Manuale de utilizare pentru PANTHEON
  [Expand]Manual de utilizare pentru PANTHEON
  [Expand]Manual de utilizare pentru PANTHEON Retail
  [Expand]Manual de utilizare pentru PANTHEON Vet
  [Expand]Manual de utilizare pentru PANTHEON Farming
[Collapse]PANTHEON Web
 [Collapse]Ghiduri pentru PANTHEON Web
  [Expand]Ghid pentru PANTHEON Web Light
  [Expand]Ghid pentru Terminalul Web PANTHEON
  [Expand]Ghid pentru PANTHEON Web Legal
  [Expand]Arhivă produse vechi
 [Collapse]Manuale de utilizare pentru PANTHEON Web
  [Expand]Începerea PANTHEON Web
  [Expand]Manual de utilizare pentru PANTHEON Web Light
  [Expand]Manual de utilizare pentru terminalul web PANTHEON
  [Expand]Manual de utilizare pentru PANTHEON Web Legal
  [Expand]Arhivă produse vechi
[Collapse]PANTHEON Granule
 [Collapse]Ghiduri pentru granule PANTHEON
  [Expand]Granul Personal
  [Expand]Comenzi de Călătorie Granule
  [Expand]Documente și Sarcini Granul
  [Expand]Tabloul de bord Granule
  [Expand]Comenzi B2B Granule
  [Expand]Granul de Serviciu pe Teren
  [Expand]Granul Inventar Active Fixe
  [Expand]Inventar de Magazin Granule
 [Collapse]Manuale de utilizare pentru granulele PANTHEON
  [Expand]Începerea
  [Expand]Granul Personal
  [Expand]Comenzi de Călătorie Granule
  [Expand]Documente și Sarcini Granul
  [Expand]Comenzi B2B Granule
  [Expand]Tabloul de bord Granule
  [Expand]Serviciul de teren Granule
  [Expand]Granul Inventar Active Fixe
  [Expand]Inventar de Magazin Granule
  [Expand]Arhivă
[Expand]Site utilizator

Load Time: 328,1129 ms
"
  6613 | 1 | |
Label


Running total (cumulative sum) represents sum of all data on the databand from the beginning of report or from the beginning of the band until the record which is currently displayed. In Pantheon we use running total for example for displaying stock quantity and value. It can be displayed in every row or only at the end.

Example of using running total is on report '18A - Record on Retail Sale and Purchase of Goods' that is in the program menu 'Goods | Invoice Issued Report | Commercial Records'.


  var
    nNabavaNeto, nSalePrice: Double;

...

  procedure DetailOnBeforePrint(Sender: TfrxComponent);
  begin
    if (<Line#> <> 1) or (<qReportIzpis."acKey"> <> '0000000000000') then   // ignore initial balance if it exists
    begin
      nNabavaNeto := nNabavaNeto + <qReportIzpis."NabavaNeto">;
      nSalePrice  := nSalePrice  + <qReportIzpis."anSalePrice">;
    end;
  end

...

begin
  nNabavaNeto := 0;
  nSalePrice := 0;
end

Let's analize this example.

At the top of the code are declared variables  nNabavaNeto and nSalePrice. They hold values in the period, defined by report criteria (without initial balance). Then on "OnBeforePrint" event values of purchase, receiving of goods and goods sales are added. Finally variables are displayed in the report summary.

  

     


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