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
   [Collapse]Getting Started
     First steps with PANTHEON
    [Expand]PANTHEON Installation
    [Expand]PANTHEON Basics
    [Collapse]PANTHEON System data
     [Expand]PANTHEON System data
     [Collapse]MS SQL Server
       Download and install MS SQL Server
       Upgrading the SQL Server to the newer version
       MS Management Studio - Download and install
       Restoring database onto SQL server
       Adding users to server level (AddUser_PAX)
       Installing SQL for external access
       Installing PANTHEON clients
      [Expand]MS SQL Server Security
      [Expand]Useful SQL Queries
       SQLExecute
      [Collapse]SQL Server Jobs
       [Collapse]Refresh Stock
         Refresh Stock Job Using Enterprise Manager
         Refresh Stock Job Using T-SQL Commands
        E-Mail Reminders for Overdue Receivables
        DB Maintenance Plan
     [Expand]Microsoft Windows Utilities
     [Expand]Security Policy
     [Expand]Database Administration
    [Expand]PANTHEON Security
    [Expand]Using PANTHEON at Tecta, a fictional company
    [Expand]Frequently asked questions about Pantheon (F.A.Q.)
   [Expand]User Manual for eBusiness
   [Expand]Settings
   [Expand]Orders
    Creating new invoice
   [Expand]Goods
   [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
 [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: 1062.5176 ms
"
  2548 | 2938 | 342212 | Updated
Label

Refresh Stock Job Using Enterprise Manager

This topic describes how to run PANTHEON's Refresh Stock function using SQL Server jobs.

In Enterprise Manager, find and expand the desired SQL Server, go to Management → SQL Server Agent, right-click Jobs, and select New Job.

034022.jpg

Enter the job Name, but do not change the Category. The Description is optional. Click the Steps tab.

034023.jpg

Here you define the steps that should be executed. Click New to add a new step.

034024.jpg

Refresh Serial Numbers

Step name: The name of the step. As this one will refresh serial numbers, name it Refresh serial numbers.
Type: Use TSQL, the default.
Database: Select the database on which you want to run the job. This example uses NovoPodjetje.
Command: Enter SQL commands that should be executed, in this case two stored procedures.


 
exec pPA_SerialNoItemRecalc '', null, null
exec pPA_SerialNoStatusRecalc ''

Click OK to save the step.

034025.jpg

Warning

Learn more about stored procedures in PANTHEON's database at Datalab's Developer Site under Database Info | DB Info P55 | Procedures, Views, Triggers.

 

Refresh Prices

Again, click New to add another step.

Step name: The name of the step. This one will Refresh prices.
Type: Use TSQL, the default.
Database: Select the database on which you want to run the job. This example uses NovoPodjetje.
Command: Enter SQL commands that should be executed, in this case three stored procedures.


 
if object_id('tempdb..#lHE_InventoryIdent') is null
CREATE TABLE [dbo].[#lHE_InventoryIdent]
([acIdent] char(16) COLLATE DATABASE_DEFAULT NOT NULL DEFAULT (''),
    [adDate] datetime NOT NULL DEFAULT (dateadd(day,datediff(day,(0),getdate()),(0))),
    [acWarehouse] char(30) COLLATE DATABASE_DEFAULT NOT NULL DEFAULT (''),
    PRIMARY KEY CLUSTERED (acIdent, adDate, acWarehouse))
else
TRUNCATE TABLE [#lHE_InventoryIdent]

exec pPA_PriceCalc '', null, null, ''
exec pPA_PriceCalcOwnPrice '', null, null, ''
exec pPA_MoveAssmblyRecalc ''

Click OK to save the step.

034026.jpg

Refresh Stock

Again click New to add another step.

Step name: The name of the step. This one will Refresh stock.
Type: Use TSQL, the default.
Database: Select the database on which you want to run the job. This example uses NovoPodjetje.
Command: Enter SQL commands that should be executed, in this case a stored procedure.


 
exec pPA_StockRecalc ''

Click OK to save the step.

034027.jpg

Document Header Recalculation

Again, click New to create another step. Here enter:

Step name: The name of the step. This one will Refresh document headers.
Type: Use TSQL, the default.
Database: Select the database on which you want to run the job. This example uses NovoPodjetje.
Command: Enter SQL commands that should be executed, in this case a number of stored procedures.


 
exec pPA_CashRegRecalc null, null
exec pPA_GLRecalc null, null
exec pPA_OrderHeadRecalc null, null
exec pPA_OrderDispDocRecalc '', null, null
exec pPA_MoveHeadRecalc null, null, 'F'

Click OK to save the step.

034028.jpg

Now all the necessary steps are set up. This effectively performs the same function as the Refresh Stock feature in PANTHEON.

034029.jpg

Setting a Schedule

Now you need to set up a schedule for the job so it does not have to be run manually. Go to the Schedules tab and click New Schedule.

034030.jpg

Type in a name for the job schedule and set the Schedule Type to Recurring. Click Change. to set the recurrence parameters.

034031.jpg

Select that the job occurs Daily and Every 1 Day. Under Daily frequency, select Occurs once at: and set the desired time (running during the night is recommended). Click OK several times to close all dialog windows. The new job is now listed in the Jobs panel.

Warning

You can schedule a job to run every couple of hours by setting Daily frequency to Occurs every: and specifying the time interval.

Note that running the job during business hours may slow down normal work due to increased server load.

 

034035.jpg

 

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