%PDF- %PDF-
| Direktori : /data/www_bck/varak.net_bck/nextcloud.varak.net/data/monami/files/Programy/ImportDL/ |
| Current File : //data/www_bck/varak.net_bck/nextcloud.varak.net/data/monami/files/Programy/ImportDL/sklada.PRG |
SET DATE german
CLOSE ALL
*SET FILTER TO datvyd >= CTOD("1.1.2015") AND DATVYD <= CTOD("31.1.2015")
SELECT 1
USE cenmat
DELETE ALL
PACK
SELECT 2
USE a
SCAN
SELECT 1
APPEND blank
replace nazmat with b.nazev
replace sklad with 0
replace cismat WITH b.ean
replace ean WITH b.ean
replace sazdph WITH b.dph
replace procen1 WITH b.moc
replace procen5 WITH b.moc/(1+b.dph/100)
replace datpri WITH DATE()
replace ean WITH b.ean
replace icokod WITH 'albatros'
replace posnakcen WITH b.nc
replace nazmatc WITH b.autor
replace nazmatr WITH b.zanr
replace drumat1 WITH 'KV'
endscan
SELECT 3
USE prijem
DELETE ALL
PACK
select 2
use a
scan
SELECT 3
APPEND BLANK
replace cispri with 125
replace sklad with 1
replace cismat WITH b.ean
replace nakcen WITH b.nc*b.ks
replace datpri WITH DATE()
replace mnozst WITH b.ks
replace nazmat with b.nazev
replace drumat1 WITH 'KV'
replace icokod WITH 'albatros'
replace cisdod WITH b.dl
replace um WITH MONTH(datpri)
replace str WITH 'P'
ENDSCAN
USE sklkar
DELETE ALL
PACK
APPEND FROM prijem
USE vydej
DELETE ALL
PACK
close all