Помощ за PANTHEON™

 Категории
 PANTHEON Help - Welcome
[Collapse]PANTHEON
 [Collapse]Упътства за PANTHEON
  [Collapse]Guide for PANTHEON
   [Collapse]Settings
    [Expand]Subjects
    [Expand]Items
    [Expand]POS
    [Expand]Manufacturing
    [Expand]Personnel
     Calendar
    [Expand]Financials
    [Expand]Customs
    [Collapse]Program
     [Expand]Document Types
     [Expand]Reports in PANTHEON
      Document Texts
      Delivery Methods
     [Expand]Loyalty Cards
     [Collapse]Administration Panel
      [Expand]Right click on Administration panel tree
      [Collapse]Settings
       [Expand]General
       [Expand]Colors
       [Expand]Internet
       [Expand]Company
        Program Parameters
       [Expand]Subjects
       [Collapse]Items
        [Expand]General
         EAN
        [Expand]Custom Fields
        [Collapse]Find Item
          Find Item
          Preparation of Information for the Display
          Advanced Assigning of Identifiers
        [Expand]Profili zaslona na dotik
       [Expand]Manufacturing
       [Expand]Orders
       [Expand]Goods
       [Expand]Financials
       [Expand]Personnel
       [Expand]Documentation
       [Expand]Task Autorun
        Extra Menu
        Task scheduler
       Menu
      [Expand]Security
      [Expand]Users and Groups
      [Expand]Versions/Upgrades
      [Expand]Database
      [Expand]ZEUS
      [Expand]OTOS
     [Expand]Dashboard Components
      Dashboard Reports
      Ad-hoc analysis
     [Expand]ARES
      SQL urejevalnik
    [Expand]Documentation
    [Expand]Logon
   [Expand]Orders
   [Expand]Goods
   [Expand]Manufacturing
   [Expand]POS
   [Expand]Service
   [Expand]Financials
   [Expand]Personnel
   [Expand]Analytics
   [Expand]Desktop
   [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 Web Terminal
  [Expand]Ръководство за PANTHEON Web Legal
 [Collapse]PANTHEON Web User Manuals
  [Expand]Започване на PANTHEON Web
  [Expand]User Manual for PANTHEON Web Light
  [Expand]Ръководство за потребителя за PANTHEON Web Terminal
  [Expand]Ръководство за потребителя за PANTHEON Web Legal
[Collapse]PANTHEON Гранула
 [Collapse]Ръководство за PANTHEON Гранули
  [Expand]Гранула за служители
  [Expand]Пътнически нареждания Гранула
  [Expand]Гранула за документи и задачи
  [Expand]Гранула Табло
  [Expand]Гранула за B2B поръчки
  [Expand]Гранула за обслужване на клиенти
  [Expand]Гранула за опис на дълготрайни активи
  [Expand]Гранула за складови наличности
 [Collapse]PANTHEON Granules
  [Expand]Започване
  [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]Полеви сервизен гранул
  [Expand]Инвентаризация на дълготрайни активи
  [Expand]Инвентаризация на склада Гранула
[Expand]Потребителски сайт

Load Time: 734,3786 ms
"
  4199 | 4875 | 401598 | Localized
Label

Advanced Assigning of Identifiers

Advanced Assigning of Identifiers

Advanced Assigning of Identifiers

010379.gif010380.gif010381.gif010411.gif010382.gif010383.gif

Special examples on entering ID can be proceeded with a stored procedure which will convert the entry (usually scanned value) in data that the program requires to function in a normal way. This way, you can handle following cases:

  • EAN/UCC 128 code
  • Codes with a product variation
  • Atypical codes or
  • Other combinations.

If a stored procedure exists on the server, the program will definitely run it. If the procedure does not exist on the server, the program will function in an usual way.


The parameters for the procedure are fixed. Take care, the procedure returns the record set with at least following fields:

  • ISOK: it can be T or F and report if the operation succeeded;
  • ERRMSG: is a user warning when an error occurs;
  • IDENT: Item ID;
  • KOLICINA: Quantity;
  • SERIALNO: Serial number.

The program can beside these fields return other fields that are in Pantheon, except user fields which are in the table PROMETPOZ.

 

000001.gif If you enter items through the stored procedure, you cannot move with the ENTER key to the next field. Functionalities of cursor and TAB keys do not change.

 

000001.gif When the procedure will return an item, the program will check if this item is correct (if it is entered in the Items register).
It is the same for the check of serial numbers.

 

000001.gif
set nocount on 

is a mandatory command because the procedure must return always just one record set.

 

000001.gif The range of characters in the ERRMSG field will always display, if ISOK = 'T' or 'F'.
This way, you can use this possibility to display a certain warning.

 

000001.gif

If you use this type of searching (entering) IDs, then you cannot use:

and have to integrate it in the procedure manually!

 

Example of a scanned code with an identifier, ID, quantity and serial number

Let us say, there is an item with the following ID form (i.e. food article):

01EEEEEEEEEEEEEEKKKKKDDDDDDD

where

  • 01 - is an identifier for a compound item;
  • EEEEEEEEEEEEEE - is a 14 digit EAN code of the item;
  • KKKKK - is a 5 digit quantity in grams (ITEM is standardized in KG);
  • DDDDDDD - is an expiration date of the item.

If an item does not have na 01 identifier at the beginning, than the item is regarded as a normal item and will be transferred in the Pantheon.

The stored procedure that has to be set up for this case is as following:

 

create procedure [dbo].[dl_HE_MSIdentSetText]
@cKljuc Char(13),   -- the key for the document on which you have run the entry of the code
@nPoz SmallInt,     -- line on which the entry of the code was activated (not required!!)
@cSubjekt Char(30), -- customer or supplier of the document
@cText VarChar(512) -- entered value
as

set nocount on
if Left(@cText,2) = '01'  -- is this a compound code?
  select 'T' as acISOK, '' as acERRMSG, SubString(@cText,3,14) as acIDENT,
         (cast(SubString(@cText,18,5) as money) / 1000) as anQty,
         SubString(@cText,24,10) as acSERIALNO
else  -- no, then return the scanned as item
  select 'T' as acISOK, '' as acERRMSG, @cText as acIDENT,0 as anQty,'' as acSERIALNO

 

Example of a scanned code with a product variation

Let us say, there is an item with the following ID form (i.e. shoes):

EEEEEEEEEEEEEEBBBBVVV

where:

  • EEEEEEEEEEEEEE - is 14 digit EAN code of the item;
  • BBBB - is 4 digit code of the color;
  • VVV - is 3 digit code of the size.

Item are mixed up so you can scan any of the items. The item will tell you if it contains a product variation or not.

The stored procedure that has to be set up for this case is as following:

 

create procedure [dbo].[dl_HE_MSIdentSetText]
@cKljuc Char(11),   -- the key for the document on which you have run the entry of the code
@nPoz SmallInt,     -- line on which the entry of the code was activated (not required!!)
@cSubjekt Char(30), -- customer or supplier of the document
@cText VarChar(512) -- entered value
as

set nocount on

declare
  @cIdent char(16),
  @cTipSerijske char(1)

set @cIdent = Left(@cText,14)
set @cTipSerijske = null
select @cTipSerijske = SERIALNO
  from IDENT
  where IDENT = @cIdent
if @cTipSerijske is null
  select 'F' as ISOK, 'Ni identa' as ERRMSG, '' as IDENT,0 as KOLICINA,'' as SERIALNO
else
  if @cTipSerijske = 'P' then
     select 'T' as ISOK, '' as ERRMSG, @cIdent as IDENT,0 as KOLICINA,Right(@cText,7)  as SERIALNO
  else
    select 'T' as ISOK, '' as ERRMSG, @cText as IDENT,0 as KOLICINA,'' as SERIALNO 

 


 

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