Skip to content

JPK

Narzedzia

Podsumowanie JPK powinien byc zgodny z raportem 10.01

Po wygenerowaniu jes podsumowanie

Liczba PZ: 651 Suma PZ: 1711771.85 Liczba WZ: 5 Suma WZ: 10004.25 Liczba RW: 1097 Suma RW: 1466493.97 Liczba MM: 16 Suma MM: 63727.60

dla magazynu odbywa sie przez

SQL
accounting.fn_getDocumentsForJPK

Krok 3 sprawdzic dokumenty MM- MM+ powinny byc zgodne

Generalnie oni przesuwaja mm i zwracaja w tych samych cenach indeksy z regeneracja np literka r wiec mm- musza byc rowne mm+

SQL
1
2
3
4
    select d.documentType,sum(sysItemValue) from document.document d inner join document.documentline dl
    on d.documentid =dl.documentid  where   documentDate >= '2018-05-01'  and documentDate <= '2018-05-31'
    and warehouseID in ('0198FCF9-209B-4A67-A761-8059A9FA460F','935A1F64-28DF-40C2-9044-FBB43D456310' )
    group by d.documentType

Krok 4 Sprawdzic procedure testowa

SQL
 [document].[test_balanceCheck]

Krok 5 Przeliczyc stan jesli cos jest nei tak lub po zmianach na dokumentach

SQL
1
2
3
4
5
6
7
8
9
select distinct
    'exec [wms].[stockBalanceFix] @itemID = '''+ cast(dl.itemid  as varchar(36)) + ''' , @documentID= '''+  cast(d.documentid as varchar(36)) + ''', @username=''test'''
from
    document.document d inner join
    document.documentline dl on d.documentid = dl.documentid
where
    dl.status =1
    and  d.documentDate >= '2018-05-01'
    and d.documentDate <= '2018-05-31'