#define SCLAD_TASK    "03"
#define UP_NA_SCLADE  "На складе"
#define NA_SCLADE     "на складе"
#define NA_SAX        "на складах"
#define SO_SCLADOM    "со складом"
#define _SCLADAM      "складам"
#define _SCLADOV      "складов"
#define _SCLADU       "складу"
#define _LOW_SCLAD    "склад "
#define _UP_SCLAD     "Склад "
#define _SCLADA       "склада"
#define _SCLADI       "Склады"
#define _PRENIM       "принимающем складе"
#define _DANNOM       "на данном складе"

// Текущие алиасы доступа к базам и текущие имена переменных
// PVP
#DEFINE iSelect  cSelSchet,cSelKart,cSelTaxGrp,cSelGrup,cSelLabel,cSelPartia,cSelStru,cSelUStru,cSelUser,cSelDoc,cSelDocM,cSelTree,cSelNameTre,cSelSprDop,cSelSprRcv,cSelSclad,cSelMoves,cSelVDoc,cSelCodOp,cSelAgent  // victor история НДС
MEMVAR  iSelect
#DEFINE iMSCHET    (cSelSchet)
#DEFINE iMKART     (cSelKart)
#DEFINE iMGRUP     (cSelGrup)
#DEFINE iMTAXGRP   (cSelTaxGrp)     // victor история НДС
#DEFINE iMLABEL    (cSelLabel)
#DEFINE iSPR_PART  (cSelPartia)
#DEFINE iMSTRU     (cSelStru)
#DEFINE iSTRU      (cSelUStru)
#DEFINE iMSCLAD    (cSelSclad)
#DEFINE iUSER      (cSelUser)
#DEFINE iMDOC      (cSelDoc)
#DEFINE iMDOCM     (cSelDocM)
#DEFINE iTREE      (cSelTree)
#DEFINE iNAME_TRE  (cSelNameTre)
#DEFINE iSPR_DOP   (cSelSprDop)
#DEFINE iSPR_RCV   (cSelSprRcv)        // PVP - справочник реквизитов партий
#DEFINE iMOVES     (cSelMoves)
#DEFINE iMVDOC     (cSelVDoc)
#DEFINE iMCODOP    (cSelCodOp)
#DEFINE iAGENT     (cSelAgent)

#DEFINE iKoef      (&(GetPrefix("Koef_")))
#DEFINE iKoef1     (&(GetPrefix("Koef1_")))
#DEFINE iNorma     (&(GetPrefix("Norma_")))
#DEFINE iMarka     (&(GetPrefix("Marka_")))
#DEFINE iSort      (&(GetPrefix("Sort_")))
#DEFINE iRazmer    (&(GetPrefix("Razmer_")))
#DEFINE iProfil    (&(GetPrefix("Profil_")))
#DEFINE iCCDOPNAME1 (&(GetPrefix("CCDOPNAME1"))) // дополнительные параметры в номенклатурнике по alt_p
#DEFINE iCCDOPNAME2 (&(GetPrefix("CCDOPNAME2")))
#DEFINE iCCDOPNAME3 (&(GetPrefix("CCDOPNAME3")))
#DEFINE iCCDOPNAME4 (&(GetPrefix("CCDOPNAME4")))
#DEFINE iCNDOPNAME1 (&(GetPrefix("CNDOPNAME1")))
#DEFINE iCNDOPNAME2 (&(GetPrefix("CNDOPNAME2")))
#DEFINE iOrdLabel  (&(GetPrefix("OrdLabel_")))
#DEFINE iOrdKart   (&(GetPrefix("OrdKart_")))
#DEFINE iLabelNum  (&(GetPrefix("LabelNum_")))
#DEFINE iRCena     (&(GetPrefix("RCena_")))
#DEFINE iYesKons   (&(GetPrefix("YesKons")))
#DEFINE iPricePart (&(GetPrefix("PricePart")))
#DEFINE iSCL_BEG   (IF(TYPE(GetPrefix("SCL_BEG")) = "D",&(GetPrefix("SCL_BEG")),CURR_BEG))
#DEFINE iNameGen1  (&(GetPrefix("NameGen1")))
#DEFINE iStrGen1   (&(GetPrefix("StrGen1")))
#DEFINE iStrGen2   (&(GetPrefix("StrGen2")))
#DEFINE iStrGen3   (&(GetPrefix("StrGen3")))
#DEFINE iTypeGen   (IF(TYPE(GetPrefix("TypeGen")) = "L",&(GetPrefix("TypeGen")),.F.))
#DEFINE ilKartVal  (&(GetPrefix("lKartVal")))
#DEFINE icKartVal  (&(GetPrefix("cKartVal")))
#DEFINE iWork_B_Code  (&(GetPrefix("Work_B_Cod")))
#DEFINE iSertif    (IF(TYPE(GetPrefix('Sertif_')) = "A",&(GetPrefix('Sertif_')),{"",.F.}))
#DEFINE iZName     (IF(TYPE(GetPrefix('Z_name_')) = "A",&(GetPrefix('Z_name_')),{"",.F.}))
#DEFINE iSizeLCode (&(GetPrefix("SizeLCode")))

#DEFINE inGenPCode  (IF(TYPE(GetPrefix("nGenPCode")) = "N",&(GetPrefix("nGenPCode")),1))
#DEFINE inGenPName  (IF(TYPE(GetPrefix("nGenPName")) = "N",&(GetPrefix("nGenPName")),1))
#DEFINE inGenPAgent (IF(TYPE(GetPrefix("nGenPAgent")) = "N",&(GetPrefix("nGenPAgent")),1))
#DEFINE iaGenPDop   (IF(TYPE(GetPrefix("aGetPDop")) = "A",&(GetPrefix("aGetPDop")),{.T.,.T./*,.T.,.T.,.T.,.T.*/}))
#DEFINE inGenPAdd   (IF(TYPE(GetPrefix("nGenPAdd")) = "N",&(GetPrefix("nGenPAdd")),1))
#DEFINE iChangeTN_  (IF(TYPE(GetPrefix("ChangeTN_")) = "N",&(GetPrefix("ChangeTN_")),0))

#DEFINE itnGenPCode  (GetPrefix("nGenPCode"))
#DEFINE itnGenPName  (GetPrefix("nGenPName"))
#DEFINE itnGenPAgent (GetPrefix("nGenPAgent"))
#DEFINE itaGenPDop   (GetPrefix("aGenPDop"))
#DEFINE itnGenPAdd   (GetPrefix("nGenPAdd"))

#DEFINE iaSetNds      (&(GetPrefix("aSetNds")))
#DEFINE itaSetNds     (GetPrefix("aSetNds"))
#DEFINE ilNdsFact     (GetStavka(1))
#DEFINE ilAczFact     (GetStavka(2))
#DEFINE ilCshFact     (GetStavka(3))

#DEFINE iCURR_BEG  (&(GetPrefix("CURR_BEG")))
#DEFINE inKolPrice (&(GetPrefix("nKolPrice")))

#DEFINE itKoef      (GetPrefix("Koef_"))
#DEFINE itKoef1     (GetPrefix("Koef1_"))
#DEFINE itNorma     (GetPrefix("Norma_"))
#DEFINE itMarka     (GetPrefix("Marka_"))
#DEFINE itSort      (GetPrefix("Sort_"))
#DEFINE itRazmer    (GetPrefix("Razmer_"))
#DEFINE itProfil    (GetPrefix("Profil_"))
#DEFINE itOrdLabel  (GetPrefix("OrdLabel_"))
#DEFINE itOrdKart   (GetPrefix("OrdKart_"))
#DEFINE itLabelNum  (GetPrefix("LabelNum_"))
#DEFINE itRCena     (GetPrefix("RCena_"))
#DEFINE itYesKons   (GetPrefix("YesKons"))
#DEFINE itPricePart (GetPrefix("PricePart"))
#DEFINE itSCL_BEG   (GetPrefix("SCL_BEG"))
#DEFINE itNameGen1  (GetPrefix("NameGen1"))
#DEFINE itStrGen1   (GetPrefix("StrGen1"))
#DEFINE itStrGen2   (GetPrefix("StrGen2"))
#DEFINE itStrGen3   (GetPrefix("StrGen3"))
#DEFINE itTypeGen   (GetPrefix("TypeGen"))
#DEFINE itlKartVal  (GetPrefix("lKartVal"))
#DEFINE itcKartVal  (GetPrefix("cKartVal"))
#DEFINE itWork_B_Code (GetPrefix("Work_B_Cod"))
#DEFINE itSertif    (GetPrefix('Sertif_'))
#DEFINE itZName     (GetPrefix('Z_name_'))
#DEFINE itSizeLCode (GetPrefix("SizeLCode"))

#DEFINE iIzgotov_  (&(GetPrefix("Izgotov_")))
#DEFINE iGodno_    (&(GetPrefix("Godno_")))
#DEFINE iGTD_      (&(GetPrefix("GTD_")))
#DEFINE iCountry_  (&(GetPrefix("Country_")))
#DEFINE iATTR1  (&(GetPrefix("Attr1_")))
#DEFINE iATTR2  (&(GetPrefix("Attr2_")))

#DEFINE iSCL_SEBE  (&(GetPrefix("SCL_SEBE")))
#DEFINE iSCL_DSEBE (&(GetPrefix("SCL_DSEBE")))

#DEFINE iSCL_SEBEN  (&(GetPrefix("SCL_SEBEN")))
#DEFINE iSCL_DSEBEN (&(GetPrefix("SCL_DSEBEN")))

#DEFINE iSCL_SEBER (&(GetPrefix("SCL_SEBER")))

#DEFINE itSCL_SEBE  (GetPrefix("SCL_SEBE"))
#DEFINE itSCL_DSEBE (GetPrefix("SCL_DSEBE"))
#DEFINE itSCL_SEBER (GetPrefix("SCL_SEBER"))

#define _IE_MENU
