Forum

Welcome Guest! To enable all features please try to register or login.
baja
#1 Posted : 30 May 2017 17:52:22(UTC)
baja

Rank: Newbie

Joined: 21/03/2014(UTC)
Posts: 5

Imam unešeno 1500 artikala i nisu dodijeljeni PLU kodovi. Kako ih unijeti ali da nije jedan po jedan
mastalosinisa
#2 Posted : 01 June 2017 06:46:26(UTC)
mastalosinisa

Rank: Newbie

Joined: 29/09/2016(UTC)
Posts: 1

1. Napuni sve sa 0
update the_SetItem SET anPLUcode =0

2. Pokreni ovaj upit --Ovo će ti napuniti PLU na šiframa od 1000 pa na gore

DECLARE @id CHAR(16),@plu INT,@uvecanje INT
SET @uvecanje=999
DECLARE igor_cursor CURSOR FOR
SELECT acIdent, anPLUcode
FROM the_SetItem

OPEN igor_cursor

FETCH NEXT FROM igor_cursor
INTO @id, @PLU

WHILE @@FETCH_STATUS = 0
BEGIN
UPDATE the_SetItem
set anPLUcode=anPLUcode+@uvecanje
WHERE acIdent=@id

SET @uvecanje=@uvecanje+1
FETCH NEXT FROM igor_cursor
INTO @id, @PLU

END

CLOSE igor_cursor
DEALLOCATE igor_cursor
Ahmet
#3 Posted : 05 June 2017 17:19:06(UTC)
Ahmet

Rank: Member

Joined: 08/04/2012(UTC)
Posts: 1

Kako napraviti da se automatski dodaje PLU kad se dodaje novi artikal?
Demo
#4 Posted : 06 June 2017 08:41:29(UTC)
Demo

Rank: Advanced Member

Joined: 23/12/2009(UTC)
Posts: 53

Thanks: 2 times
Treba kreirati triger - tabela tHE_SetItem
Ovo je Datalab naplaćivao prije 4-5 godina.
Ne znam kakva je danas politika.
Ako DataLab ne odgovori, ja ću ti poslati.
elviraleka
#5 Posted : 06 June 2017 09:09:39(UTC)
elviraleka

Rank: Advanced Member

Joined: 06/05/2014(UTC)
Posts: 81

Poštovani,

Zahtjev za podršku možete ostvariti slanjem emaila na:

pomoc@datalab.ba
elviral@datalab.ba



Lp
Elvira
Rss Feed  Atom Feed
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Orange-Grey Theme Created by Ingo Herbote (WatchersNET.de)
Powered by YAF 1.9.6.1 Under DNN | YAF © 2003-2025, Yet Another Forum.NET
This page was generated in 0.161 seconds.