Common Update Query
Kod korisnika gdje se vise nikako ne moze srediti cijena za vrednovanje, zadnji nacin je upis nc iz artikla.
update p
set p.anStockPrice = m.anBuyPrice
from tHE_move g
inner join tHE_MoveItem p on g.acKey = p.acKey
inner join tPA_SetDocType d on g.acDocType = d.acDocType
inner join tHE_SetItem m on p.acIdent = m.acIdent
where d.acType = 'M' and g.adDate = '2025-09-01'