In this report i have marked one line..if this width 30,i need to multiply by a number 0.3 and if the width =30,it multiplies by 0.37...how to use this logic here..??? anyone can help??
In this report i have marked one line..if this width < 30,i need to multiply by a number 0.3 and if the width >=30,it multiplies by 0.37...how to use this logic here..??? anyone can help??
Declare @FromDate Datetime
Declare @ToDate Datetime
Declare @SCCode nvarchar(30)
select @FromDate = min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]'
select @ToDate = max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]'
--Rcpt from PRDN (Condition checked for Return component exclusion also)
SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,
T2.DocNum AS 'WorkOrderNo',
b.DocNum as 'Issue Doc No',
ISNULL(d.DocNum,'') as 'Receipt Doc No',
b.U_IssPSCName as 'SubContractor Name',
T2.ItemCode as 'FG Item Code',
T3.ItemName as 'FG Item Name',
T2.PlannedQty as 'FG Planned Qty',
T2.U_OD as 'OD',
T2.U_ID as 'ID',
T2.U_OD/25.4 as 'Inches',
(T2.U_OD-T2.U_ID)/2 as 'Width',
0 as 'FG Pending Qty',
0 as 'FG Receipt Qty',
'' as 'Issue Item Code',
'' as 'Issue Item Name',
Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',
0 as 'Issue Item - Return Quantity',
'' as 'Return Doc No',
SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',
SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'
from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntry
INNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCode
LEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode not in (a.ItemCode)
LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode INNER JOIN OIGN d on c.DocEntry = d.DocEntry
WHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'
GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,T2.PlannedQty,T2.U_OD,T2.U_ID, T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2
UNION ALL
SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,
T2.DocNum AS 'WorkOrderNo',
b.DocNum as 'Issue Doc No',
ISNULL(d.DocNum,'') as 'Receipt Doc No',
b.U_IssPSCName as 'SubContractor Name',
T2.ItemCode as 'Item Code',
T3.ItemName as 'Item Name',
T2.PlannedQty as 'Planned Qty',
T2.U_OD as 'OD',
T2.U_ID as 'ID',
T2.U_OD/25.4 as 'Inches',
(T2.U_OD-T2.U_ID)/2 as 'Width',
(Select (T2.PlannedQty - (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum))) as 'Pending Qty',
(Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum) as 'Receipt Qty',
a.ItemCode as 'Issued Item Code',
a.Dscription as 'Issued Item Name',
Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',
(Select (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode))) as 'Issue Item - Return Quantity',
(ISNULL((Select (Select a2.DocNum from OIGN a2 where a2.DocEntry = a1.DocEntry) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode)),'')) as 'Return Doc No',
SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',
SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'
from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntry
INNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCode
LEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode in (a.ItemCode)
LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode LEFT JOIN OIGN d on c.DocEntry = d.DocEntry
WHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'
GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,T2.PlannedQty,T2.U_OD,T2.U_ID,T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2,a.ItemCode,a.Dscription order by T2.DocNum desc
Hi,
Try this:
Declare @FromDate Datetime
Declare @ToDate Datetime
Declare @SCCode nvarchar(30)
select @FromDate = min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]'
select @ToDate = max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]'
--Rcpt from PRDN (Condition checked for Return component exclusion also)
SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,
T2.DocNum AS 'WorkOrderNo',
b.DocNum as 'Issue Doc No',
ISNULL(d.DocNum,'') as 'Receipt Doc No',
b.U_IssPSCName as 'SubContractor Name',
T2.ItemCode as 'FG Item Code',T3.ItemName as 'FG Item Name',T2.PlannedQty as 'FG Planned Qty',T2.U_OD as 'OD',T2.U_ID as 'ID',T2.U_OD/25.4 as 'Inches',(T2.U_OD-T2.U_ID)/2 as 'Width',case when ((T2.U_OD-T2.U_ID)/2) <30 then ((T2.U_OD-T2.U_ID)/2) *0.3 end, 0 as 'FG Pending Qty',0 as 'FG Receipt Qty','' as 'Issue Item Code','' as 'Issue Item Name',Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',0 as 'Issue Item - Return Quantity','' as 'Return Doc No',SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntryINNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCodeLEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode not in (a.ItemCode)LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode INNER JOIN OIGN d on c.DocEntry = d.DocEntryWHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,T2.PlannedQty,T2.U_OD,T2.U_ID, T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2UNION ALL SELECT T2.U_STKNO as 'PRN No', T2.PostDate as Date,T2.DocNum AS 'WorkOrderNo',
b.DocNum as 'Issue Doc No',
ISNULL(d.DocNum,'') as 'Receipt Doc No',
b.U_IssPSCName as 'SubContractor Name',
T2.ItemCode as 'Item Code',T3.ItemName as 'Item Name',T2.PlannedQty as 'Planned Qty',T2.U_OD as 'OD',T2.U_ID as 'ID',T2.U_OD/25.4 as 'Inches',(T2.U_OD-T2.U_ID)/2 as 'Width',case when ((T2.U_OD-T2.U_ID)/2) >=30 then ((T2.U_OD-T2.U_ID)/2) *0.37 end, (Select (T2.PlannedQty - (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum))) as 'Pending Qty',(Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum and a1.ItemCode in (b1.itemcode) where b1.DocNum = t2.DocNum) as 'Receipt Qty',
a.ItemCode as 'Issued Item Code',
a.Dscription as 'Issued Item Name',
Sum(ISNULL(a.Quantity,0)) as 'Total Issue Quantity',
(Select (Select ISNULL(sum(a1.Quantity),0) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry
where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode))) as 'Issue Item - Return Quantity',
(ISNULL((Select (Select a2.DocNum from OIGN a2 where a2.DocEntry = a1.DocEntry) from IGN1 a1 inner join OWOR b1 on a1.BaseRef = b1.DocNum inner join WOR1 b2 on b1.DocEntry = b2.DocEntry where b1.DocNum = t2.DocNum and a1.ItemCode in (b2.itemcode)),'')) as 'Return Doc No',
SUM(ISNULL(a.U_IssPTotWeight,0)) as 'Total Issue Weight',
SUM(ISNULL(c.U_Quantity,0)) as 'Total Receipt Weight'
from OWOR T2 inner join WOR1 T4 on T2.DocEntry = T4.DocEntry
INNER JOIN OITM T1 ON T1.ItemCode = T4.ItemCode inner join OITM T3 on T3.ItemCode = T2.ItemCode
LEFT join IGE1 a on T2.DocNum = a.BaseRef Inner JOIN OIGE b on a.DocEntry = b.DocEntry and T4.ItemCode in (a.ItemCode)
LEFT JOIN IGN1 c ON c.BaseRef = T2.DocNum and T2.ItemCode = c.ItemCode LEFT JOIN OIGN d on c.DocEntry = d.DocEntry
WHERE b.Series in('101','20') and T2.PostDate >= @FromDate and T2.PostDate <= @ToDate and b.U_IssPSCName = '[%2]'
GROUP BY T2.U_STKNO, T2.PostDate, T2.DocNum, b.DocNum, d.DocNum, b.U_IssPSCName,T2.ItemCode,T3.ItemName,
T2.PlannedQty,T2.U_OD,
T2.U_ID,T2.U_OD/25.4,(T2.U_OD-T2.U_ID)/2,a.ItemCode,a.Dscription
order by T2.DocNum desc
Thanks & Regards,
Nagarajan
Similar Messages
-
i upgrade my 3gs to os 6.1 but starting then all my manually installed apps does work and every time I open them, it asks me to log in to my apple account but responds that my password is incorrect. I tried to change my password but i never received the confirmation email. Does anyone know how to fix this?
Hi,
iChat (it would help to know which version) can accept Apple IDs as valid AIM Screen Names.
However if you have iChat 5 or earlier you cannot use ones ending in @me.com or @icloud.com issued by iCloud. (they can be used in iChat 6 or Messages as these versions make a double login to AIM and Apple to allow the use of the password).
In addition if you are using an Apple ID for an AIM Screen Name the password still needs to keep to the 16 character limit that AIM has.
AN @mac.com name can be used on any version of iChat (Until the 30th June 2014)
As it does not need a double check with Apple you can use it to log in to the AIM Web pages
Login here with an AIM Name registered at AIM or and @mac.com name and see if you get any suspended account messages.
Sometimes account can be suspended. Usually because something has triggered the "Unusual Activity" item.
About a year ago many @mac.com users that travelled out of their own country found themselves suspended when they got home.
If the Name checks out of if an Apple ID the password in known to be 16 characters or Less then do this:-
In Lion upwards open a Finder Window and use the Go Menu whilst holding down the ALT key.
Select the Library that appears in the menu list.
Navigate to Preferences.
(If you have version earlier than Lion the just navigate to ~/Library/Preferences (that's the Library in you Home - Little House icon - folder)
Fnd com.apple.ichat.aim.plist (even if you are using Messages)
Drag the file to the Trash and Restart the app.
7:39 pm Thursday; May 29, 2014
iMac 2.5Ghz i5 2011 (Mavericks 10.9)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad -
I was just accessing Screwfix when it happened. It's a complete mystery. Now Mozilla Firefox is shown as Screwfix all the time
I have Firefox 6.0 running on Vista.
I have a sneaking suspicion that the subprogram that "clears the cache", et al., has a problem eliminating incomplete, erroneous, "currently in use", or "infinite loop" items, such that it freezes when trying to do so.
After some experimentation, I found that the easiest way to resolve this is to do the following (it's easier than it looks):
(1) Close all Firefox tabs and Firefox windows
(2) Run the Task Manager and stop all "Firefox" processes (i.e., it's possible that more than one may be running, even if you did all of step (1)).
(3) Go to the Firefox cache folder, usually located at <your system drive>\Users\<your personal named folder>\AppData*\Local\Mozilla\Firefox\Profiles\<something>.default\Cache, and wipe out everything that appears under that directory (n.b., you shouldn't require Administrative level clearance to do this; if so, try doing this in "Safe Mode"). ''{*AppData may be a "hidden" folder}''
(4) Run Firefox, then select Tools -> Options ->
Advanced -> Network -> Clear Now.
(5) Close Firefox.
(6) Restart Firefox.
Firefox ran considerably faster after I did this.
Good luck! -
hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus
Try the suggestions here to see if they resolve your problem:
http://support.apple.com/kb/ts1559
If these don't work you may have a hardware problem. Visit an Apple store for an evaluation or contact Apple Support. -
Hello
THIS IS RAZA
I GOT A MACBOOK PRO
I HAVE A PROBLEM. PROBLEM IS how to solve this problem i have uploaded in .... all the time few days later on i face this problem in safari..... anyone can help me please.....thanksThis is a scam. Do not phone these people, at best they will charge you for unnecessary 'cleaning' and at worst they will gain access to your Mac and steal your data. You've probably managed to install some 'adware' which is producing this fake warning. 'Adwaremedic' should remove it and is safe to use - please see
http://www.adwaremedic.com/index.php -
I have been having this problem since the 4th of this month. I tried to open iTunes and this error message came up: "iTunes was not installed correctly. Please reinstall iTunes error 7 windows error 126". There is nothing else that comes up but if anyone can help or know anything about it I will greatly appreciate it.
Have you tried google for this Error Message...
http://support.microsoft.com/kb/959077 -
01 **********65 3 i have to unlock my iphone n this is my serial num anyone can help
<Edited by Host>Only the carrier the device is locked to can authorize the unlock of your phone. Contact them.
-
i just buy a imac 27inch when after intalling everthing for windows 7 and all the drivers i need and goes to the restard part my imac just goes to a black screen with a blinking cursel and it just wont proceed anyone can help me with this?
Support articles for things like this would be here:
http://www.apple.com/support/bootcamp -
Hi I am wondering if anyone can help me. I have two albums in my photos app other than the camera roll that i cant seem to get rid of. They contain duplicates of the photos i already have in my camera roll. One is called Photo Library, and the other is called iphone. It's using alot of space and I don't know how to delete them. Please HELP!!
those are photos that have been synced to your phone from your computer. plug in your phone to your computer, open itunes, select 'photos' tab from the top, and uncheck 'sync photos'
this will erase the photos from your phone that are not in the camera roll -
I have been using iphone 5. Whenever I open the Game Center, The green screen of accounts comes up and it get stuck. Nothing happens after that. If anyone can help me please.
Refer to this article to delete SC files:
iTunes for Windows in Windows XP or Windows 2000 doesn't open after upgrading
http://support.apple.com/kb/TS1776
Then proceed to repair your QuickTime on Control Panel>Add n Remove Programs >highlight QuickTime, click CHANGE button, then REPAIR. -
hello
i´m trying to do a proyect that requires modulate and demodulate a text in QAM. i´ve been trying this for days but i can´t come up with a solution, I can not retrieve the text I am modulating and i do not understand why. I am new to using Labview and would appreciate some help.
if anyone can help that would be great.
i have attached the vi that i´ve done.
thank you very much
Attachments:
intentoproyectocom2.vi 78 KBI beleive they used the same concept that they did in iOS. One folder deep. If you think they should implement somehting more, then please use the feedback links in the forums FAQs to leave your comments and suggestions.
Jason -
If anyone can help i would be hugely grateful, I'm literally pulling my hair out.
I bought the Airport express so i could surf the web and wireless play music through my stereo simultaneously. Can I do this? I've managed to play music wirelessly from my macbook to the express/stereo, however i cant surf the web because i can only presume i haven't set up the express to join my sky network. So therefore the only way to surf the web at the moment is swap wireless devices from express back to my current sky network, then the airplay stops obviously.
I've tried to join the express to my sky network/netgear router, at face value it looks simple. The sky network name automatically comes up and then all i have to do is select the correct wireless security which i haven't got a clue which one my sky/netgear router is using, then type in the password which i presume is the network key number on the back of the netgear router? However its not connecting?? I am doing something wrong?
Can someone please give me some guidence on how to connect express to my current network?and then all i have to do is select the correct wireless security which i haven't got a clue which one my sky/netgear router is using
Suggest that you ask Sky what type of wireless security that is used on the devices that they provide.
Once you have that information, you can choose the correct matching setting when you configure the AirPort Express to "join" the Sky wireless network.
The "password" would be the normal phrase that you use to connect to your wireless network at the present time. -
when my ipod connect to computer,windowss want me to format the ipod,and when the process is running suddenly windows said"unable to format this disk"and my ipod can't connect to itunes. anyone can help me?
Check the iPod Hardisk, with DiskDiagnostic as posted here by tt2
https://discussions.apple.com/message/17776595#17776595
It wont fix your problem, but help us both, in troubleshooting, and reducing frivolous suggestions.
If your report says high Realloc or Pending Sector, then it's time to have your hardisk replaced.
Have a nice day! -
The popup LOV is very slow in APEX 4.0, did anyone can help on this?
The popup LOV is very slow in APEX 4.0, did anyone can help on this?
Wherever I try to open a popup LOV windows , I am always be very patient to wait the window show . Even if only a very few record to show.
Edited by: daniel.luo on 2010/7/28 上午 7:52Hi Daniel,
it probably doesn't matter how many records you show if you have an ORDER BY clause in your SQL statement. Because the database still has to do all the work to return you the first result set.
Is the query itself fast if you execute it in "SQL Workshop"?
Have you already tried the setting "Fetch" = "No Fetch"? Is the window now opening faster? I just want to rule out that it's a generic problem, but I think it has to do with your SQL statement.
Was the popup LOV for this SQL statement faster in 3.2?
Regards
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins -
I am using macbook air and thrying to print wireless over time capsule with a lexmark 5600/6600 series, i can print test page but only this. Anyone can help?
Check here, if this can help:
http://support.apple.com/kb/HT4670?viewlocale=en_US
Maybe you are looking for
-
Help me please
-
Hi, i have problem with my labview programing which in associate with cRio-9025 which also doing the data acquisition of temperature. below is my programing, pls help me to check on it, see error did i made. Apprecite it, thanks Attachments: asas.pn
-
Macbook Pro Needs Windows CD in drive to boot to Windows
Have a Mac book Pro (Early 2011..8,2) that was setup for dual boot. OSX (10.6.8) and Windows 7. Due to a issue with the hard drive I had to backup data and rebuild which worked fine for OSX but unable to get Windows 7 to boot correctly. Holding Down
-
Publishing to 2 different locations
I have a mobile me site that I made on i-web. I would like to make a completely separate website for a friend and publish it to a different server like "go daddy" how do I use iweb to create or publish to 2 different servers?
-
ITunes says my macbook pro is not authorized to download purchases from my ipad
I have an iPad and when I tried to sync it with my MacBook Pro the iTunes said it could not transfer 4 apps because my computer was not authorized. It is authorized. I am so frustrated and don't know what to do. I have a second iPad for my daughte