pegaga1979
17th January 2019, 05:18
Hi Gurus,
I'm having issue when print inventory balance whereby, if the warehouse never has transactions, it follow data at above the line.
For example:
Item whse Qty
A W1 123
A W2 0
B W2 111
so result in report:
Item W1 W2
A 123 0
B 123 111
and my coding is:
select whwmd215.*
from whwmd215
where whwmd215.item=:tibom010.sitm
selectdo
if strip$(whwmd215.cwar) = "PHNRC" then
cwara.qhnd = whwmd215.qhnd
else if strip$(whwmd215.cwar) = "PHN01" then
cwarb.qhnd = whwmd215.qhnd
else if strip$(whwmd215.cwar) = "PHNCS" then
cwarc.qhnd = whwmd215.qhnd
endif
endif
endif
selectempty
if strip$(whwmd215.cwar) = "PHNRC" then
cwara.qhnd = "0"
else if strip$(whwmd215.cwar) = "PHN01" then
cwarb.qhnd = "0"
else if strip$(whwmd215.cwar) = "PHNCS" then
cwarc.qhnd = "0"
endif
endif
endif
endselect
Need your assistance where i'm doing wrong.
Your guidance is highly appreciated.
Thank you.
I'm having issue when print inventory balance whereby, if the warehouse never has transactions, it follow data at above the line.
For example:
Item whse Qty
A W1 123
A W2 0
B W2 111
so result in report:
Item W1 W2
A 123 0
B 123 111
and my coding is:
select whwmd215.*
from whwmd215
where whwmd215.item=:tibom010.sitm
selectdo
if strip$(whwmd215.cwar) = "PHNRC" then
cwara.qhnd = whwmd215.qhnd
else if strip$(whwmd215.cwar) = "PHN01" then
cwarb.qhnd = whwmd215.qhnd
else if strip$(whwmd215.cwar) = "PHNCS" then
cwarc.qhnd = whwmd215.qhnd
endif
endif
endif
selectempty
if strip$(whwmd215.cwar) = "PHNRC" then
cwara.qhnd = "0"
else if strip$(whwmd215.cwar) = "PHN01" then
cwarb.qhnd = "0"
else if strip$(whwmd215.cwar) = "PHNCS" then
cwarc.qhnd = "0"
endif
endif
endif
endselect
Need your assistance where i'm doing wrong.
Your guidance is highly appreciated.
Thank you.