Stock Transfer Report [message #603091] |
Wed, 11 December 2013 06:48 |
|
Adeel Qadir
Messages: 48 Registered: November 2013 Location: Pakistan
|
Member |
|
|
Hey Experts,
I have little problem to make a report of stock transfer.
i have created success fully stock transfer form that have 2 different warehouse id's (column name = wid)
For Example. I have transferred any item from main warehouse into shop. main warehouse wid is 10 and shop warehouse wid is 7
how can i show one column (wtitle) of two times in one report?
For Example
TO WID = Main Warehouse
From WID = Shop
and report format like
TRID 1
Date 11.12.13
TO Warehouse Main Store (ID = 10)
From Warehouse Shop (ID = 7)
QTY 10
[EDITED by LF: applied [pre] tags to preserve formatting]
[Updated on: Wed, 11 December 2013 10:04] by Moderator Report message to a moderator
|
|
|
|
Re: Stock Transfer Report [message #603138 is a reply to message #603133] |
Wed, 11 December 2013 11:15 |
|
Adeel Qadir
Messages: 48 Registered: November 2013 Location: Pakistan
|
Member |
|
|
Thanks for your quick reply
Yes i have two columns in my report basically it is one column that name wtitle i want to show this one column two times in my report.
Only two tables are involved in this report.
1. Stock Transfer
2. Items Table for pick Transferred item name
3. Warehouse Defining Table for pick warehouses name in "TO" and "FROM"
When i create view and use wtitle of two times this will give error (Duplicate Column)
and when i joined primary keys then data Does not appear and result is blank.
i cant understand how can i manage it ?
View Code is below.
create or replace view stock_trns as
select
s.TRID, (Transfer ID)
s.TRDATE, (Date)
s.TRNO, (Transfer #)
s.ITID, (Item ID Reff Items Table that name is v_items vi)
vi.item_name,(Transferred Item Name Reff Item Table)
s.FWID, (From Warehouse ID)
w.wtitle, (Warehouse name for FWID Reff Warehouse Table)
s.QTY, (Transferred Item Quantity)
s.TWID, (To Warehouse ID)
s.TRREMARKS
from stock_transfer s, v_items vi, warehouse w
where s.itid = vi.itid and s.fwid = w.wid and s.twid = w.wid;
This view is showing Data when i Remove s.twid = w.wid then data will appear.
Know what i do ???????
|
|
|
|
|
|
|
|