Quantcast
Channel: Iulian Cordobin's Groups Activities
Viewing all articles
Browse latest Browse all 1084

How can i make negative value on query "insert_recordset"

$
0
0

Hi everybody,

I want to copy from table1 to table 2 by insert_recordset but how can i make  PhysicalInvent to negative  value?

my code.

//--------------------------------

TransDate = systemdateget();
CountingID = "TEST";


ttsbegin;
insert_recordset _EXT16_InventCountingByDim (CountingID,itemId,inventDimId,qty,DiffQTY,TransDate )
select CountingID,itemid,InventDimId,PhysicalInvent,negative(PhysicalInvent),TransDate from _inventSum ;
ttscommit;

//--------------------------------

Help me please,

Thank you.


Viewing all articles
Browse latest Browse all 1084

Trending Articles