Update Document line with a new Item Code...
Hi.
This is all done using the DI Server.
I am updating a sales order with two lines - it looks like this:
ItemCode____Qty
651_________10
00028________5
I update line 2 so the sales order now looks like this to this:
651_________10
651__________8
All I pass in is the two values 651 and 10 (and a taxcode etc)
Now... if I take a look at the sales orders GL - before and after the update - It looks like this
(before)
ItemCode_____Qty______GL Account
651___________10_____ _SYS00000000235
00028__________5_____ _SYS00000000237
(after)
651___________10_____ _SYS00000000235
651____________8_____ _SYS00000000237
So it does not change the GL Account to fit the new Item... It looks like I need to find the GL Revenue Account for the new item myself. How do I find this?
Method or SQL is more than welcome...
Regards,
Allan C. E. Rasmussen
Hi Allan,
your Stored Procedure is good for GLMethod = 'L' but if GLMethod of Item is 'W' or is 'C' your code is not good.
Case is "W"
SELECT RevenuesAc FROM OWHS Where WhsCode = @WhsCode
Case is "C"
SELECT OITB.RevenuesAc FROM OITM INNER JOIN OITB ON OITM.ItmsGrpCod = dbo.OITB.ItmsGrpCod Where OITM.ItemCode = @ItemCode
Regards,
Claudio
Similar Messages
-
my computer was restarted and now i want to connect and update my iphone with a new itunes. how do i do this without losing all my stuff on my iphone?
i didnt get a chance to back my phone up before the comp crashed
will i lose any of my stuff?When you open iTunes and plug in iPhone (iPod) to computer, it appear in the left bar. Then just simply right click on you iPhone (iPod) and choose Transfer Purchases, this should copy your purchased items to your computer.
Hope this help -
i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created. As i dont have the access to the earlier id anymore.
You cannot. The apps are assigned to that Apple ID and there is nothing you can do to change that. You could choose to download them again with the new Apple ID, any paid apps will need to be purchased again.
Hope that helps. -
I updated my iPhone with the new update..and then it turned off...instead of turning back on it tells me to plug it into iTunes..and when I do iTunes tells me that my phone is in recovery mode and needs to be restored..is there anything I can do without restoring it?
Same thing happened here ~ tech guy at a local authorized Apple repair store said it had something to do with improper backup from which the restore would be made. Still have a phone that asks to be connected to Itunes but won't do anything else . . . frustrated.
-
i have updated my phone with the new 6 IOS. Since doing this my icloud account keeps saying that verification failed and the certificate for service is invalid. Folowin this problem my phone also does not recognise my other iphone contacts so i cannot facetime or send imessage
You don't need an app. You need couple's counseling. I believe what you want to do may also be illegal in many jurisdictions.
-
Document line with price zero in SBO 2007 A
Hi All
We have a DI API AddOn that occationally has to create a document line with the total price of zero.
In SBO 2005 A we just set SBODocument.Lines.Price = 0, but that doesn't work in SBO 2007 A.
In 2007A when we set SBODocument.Lines.Price = 0 it takes the price from the pricelist as though we had not entered a price at all. If we set SBODocument.Lines.Price to something else that zero it does correctly take the price we entered.
We have tried to set SBODocument.Lines.UnitPrice or SBODocument.Lines.LineTotal to zero in stead but it gives the same result.
Any help appriciated.
Rgds
Jesper CarstensenSorry, my mistake.
The solution WAS indeed to set SBODocument.Lines.UnitPrice = 0
Rgds
Jesper Carstensen -
iPod updates 2 touch with the new software, and from the update they are not connected with Time phase. They appear calling but never they enter the calls. I make calls with other users and if one connects but in these two not from the update
I use Firefox 95% of the time, and there's no problem with flash content (and I'm still at .55 - downloaded .64 last week but I haven't got round to making the change yet). At the rate they've been changing it recently it may well be out of date already .
I've been trying it in Safari, too with no problems apart from You Tube, but that's because I'm blocking Google cookies.
One thought does occur - if your Flash preferences are set to block all Local Storage, it may be that the problem site is trying to use Flash cookies (LSOs). I had this problem recently with the BBC iPlayer streaming content. Little Snitch notified an attempt to connect to a new URL - emp.bbci.co.uk.
If I disallowed it, no streaming; when I allowed the connection, it still wouldn't stream, so I did a bit of digging and came to the conclusion that it was trying to set a Flash cookie. When I unblocked, lo and behold - streaming resumed as normal.
I now have LSOs blocked in a more subtle way that lets the site think it's being set (but it ain't) and the streaming still works.
As for permissions repair - always repair from local; the permissions on the original disc will have been superceded by updates and new installations of Apple software.
DU needs to be reading the packages on the HD, not the (now out of date) install disc.
The recurring repair messages are normal and don't mean anything's wrong. As long as the final message is 'repair complete' there's no need to dwell on it.
http://support.apple.com/kb/TS1448 (for Leopard and Snow Leopard - Lion no doubt has it's own set). -
I update my iPad with the new version 7.0.3 and my game Hay Day also was updated, but with another Apple ID that is not mine, how can i change and put my Appel Id ??
Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID
Apple ID FAQs > http://support.apple.com/kb/HT5622 -
I am trying to update my apps using a new user ID. I have changed it and I can't get it to change in the App Store. It keeps asking me for a password for my old ID??
YOu can't update your apps with the new apple id. All apps are tied to the apple id that was used to purchased it, you will need to enter your password from you old id to update.
-
I downloaded pages with an old apple id, now i cant update to ios5 with my new apple id
I downloaded pages with an old apple id, now i cant update to ios5 with my new apple id
Content is tied to the account that bought/downloaded it and it can't be copied or transferred to a different account - for apps only that account can download updates to them. So if you downloaded it via one account and then created a new account, you will need to use the original account to download updates or authorise it on your computer's iTunes.
-
I hve been creat a new apple id. Bt with this id i couldn't update my old app. It's require my earlier id's password . So is there any way that I could update my app with my new apple id?
Not without deleting it and then downloading it from the new Apple ID.
(96053) -
HT1438 will my ipad 2 update this summer with the new update
Can/will my IPad 2 update this summer with the new apple update?
The iPad 2 can be updated to IOS 7.1 now.
-
i changed my apple id and password but how can i update my iphone with the new apple id and password?i changed my apple id and password but how can i update my iphone with the new apple id and password?
You have to delete the old account, provide the password for the ID when prompted to turn off Find My iPhone, then sign back in with the ID you wish to use. This deletes the account and your iCloud data from your device, but not from iCloud. Provided you are signing back into the same account, your iCloud data will reappear on your device when you sign back in.
To avoid losing photo stream photos that are not in your camera roll, save them to your camera roll before deleting the account (open your my photo stream album, tap Select, tap the photos, tap the share icon -- box with upward facing arrow, then tap Save to Camera Roll). -
I owe 27 dollars on itunes and i got a 25 dollar itunes card if i were to update my account with my new credit card would the 27 dollars be deducted from my credit card or would the itunes gift card pay for the 25 and my card would pay for the $2 left.
Generaly, if you have an iTunes card and a valid credit card, you have the option of charging your purchases to eiher one or the other? By default, it goes to your iTunes card, but you can override that.
-
since updating my 4s with the new 7.0.2 my front camera is not working, all I see is blurred colors. Anyone know how I can fix this?
Yes... remove your finger from the camera lense.
Maybe you are looking for
-
Hello, I've bought an iPod nano 7 because I wanted to have full control over my music. The Shuffle comes with a robust clip for sports. Is there any robust accessory available for iPod nano 7 with clip, I can use for running and in the gym? Arm bands
-
Payment run for vendor failing "FM FI_PAYMENT_BANK_CHAIN_SET
Hi All, Request your help with an issue that I am facing while doing Payment Run for a Vendor. Payment run is failing with the error "Internal error: FM FI_PAYMENT_BANK_CHAIN_SET,exception: CONVERSION_ERROR". The Bank Settings have been maintained an
-
Hi all,<BR><BR>I'm looking for any white paper discussing Essbase 9 improvements over 7.x. Can anyone point me to any link?<BR><BR>Regards,<BR>Gerd
-
Is axis ptz 215 ip camera compatible with labview?
Hi I am working with labview for my final year project and am trying to find a ip camera which will work in labview. I wish to use the axis 215 ptz but want to make 100% sure that I will be able to capture video input from it before I purchase it. so
-
Finding the exact left edge of text
Hi. I am trying to get a rectangle to surround my SimpleText by making the rectangles height and width the same as the text height and width. It does a pretty good job if the first letter is "W" or a similar wide letter, but if the first letter is "h