Possible Bug in DI with Gross Profit? Please confirm.

The following works:
1) Add an Inventory Item and set the "Items per Sales Unit" field to "0.1". The "Items per Purchase Unit" is set to "1".
2) Create a goods receipt for 1 purchase unit.
3) Create an A/R invoice for 1 unit.
This should add a line item for 0.1 inventory units and set the price to 0.1 * <itemprice> which it does.
4) Click on the Gross Profit money bag and everything displays correctly. The journal entry for COGS is also correct.
What doesn't work:
If you try the above using the DI API then the journal entry for COGS is correct, but when you find the A/R invoice and click the gross profit money bag then it shows that you sold the item at a loss since it uses the full purchase price unit vs the partial sales unit.
If you then go an manually add an A/R invoice for the item added through DI API then gross profit calculates correctly.
There seems to be a problem with the gross profit when you add the invoice through DI API. Is there a parameter when adding SO or AR Invoices that I could be missing?
System Info:
SBO 2005 A (6.80.123)
SQL Server
Document Settings > Base Price Origin set to Item Cost

More information:
After further research I found that the DI API is setting the unit to the Sales Unit (which is correct), but it sets the price to the Inventory Unit price.
When I set the price via the DI API to what it should be then the discount column was set to 90%.
Is this by design? If so, what do I need to do to correct this problem?

Similar Messages

  • Possible bug: Saving array with extended and double precision to spreadshee​t

    If one concatenates a double precision array and an extended precision array with the "build array" vi and then saves using "Write to Spreadsheet File" vi any digits to the right of the decimal place are set to zero in the saved file. This happens regardless of the format signifier input (e.g. %.10f) to the  "Write to Spreadsheet File" vi.
    I am on Vista Ultimate 32 bit and labview 9.0
    This is a possible bug that is easily circumvented by converting to one type before combining arrar to a spreadsheet. Nonetheless, it is a bug and it cost me some time.
    Solved!
    Go to Solution.
    Attachments:
    Spreadsheet save bug.vi ‏9 KB

    Hi JL,
    no, it's not a bug - it's a feature
    Well, if you would look more closely you would recognize the "Save to Spreadsheet" as polymorphic VI. As this polymorphic VI doesn't support EXT numbers internally (it only supports DBL, I64 and String) LabVIEW chooses the instance with most accuracy: I64 (I64 has 64 bits precision, DBL only 53...). So your options are:
    - set the instance to use as DBL (by right-click and "Select type...")
    - make a copy of this VI, save it with a different name and make it support EXT numbers (don't rework the polymorphic VI as you would break compatibility with other LV installations or future revisions)
    And yes, those coercion dots always signal some conversions - you should atleast check what's going on there...
    Message Edited by GerdW on 05-21-2010 10:01 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • TS4124 I have noticed an imatch icon that is a cloud with an arrow, please confirm the meaning as I don't want to assume.

    What is the iMatch icon that is a cloud with an arrow pointing down. Please confirm as I don't want to assume before I delete files.

    .a4p is an Authorware v.4 (Windows) project.
    Interesting you have it as a .pkg...usually that's a published-on-a- Mac extension, if I recall.
    At any rate, can you put the file up on a Box, Dropbox, FTP, etc...and send me a URL?
    I should be able to published it so you can view the project (it would be an .exe).
    It can't be converted to anything though - not without manual effort.

  • Possible Bug/Feature Request with Workspace export routine

    I ran into a situation today where my apex database server is dieing and I need to get everything off it fast! I need get every workspace and application on it and to my horror I found no way to mass grab the applications for export. This seems like a natural maintaince thing that you would have the option to export the applications with the workspaces but to my amazement, this was not so. Is there a way I can quickly export every application on the server without going into each workspace and exporting app by app? Also would it be possible to update the workspace export in future versions to give a list of applications within the workspace so you could include an export of those applications with the workspace? Were running 3.1.2 here.

    David:
    This thread has some information related to your questions
    Exporting/Importing a *Bunch* of Applications
    Varad

  • Possible bug during logout with Time Machine and File Vault enabled?

    I have File Vault enabled on my machines so when I logout from them they do a backup to my Time Capsule.
    *I don't login as root!*
    Yesterday when I logged of everything was normal in the beginning.
    All windows were closed and the progressbar showed up with the backup. Approx: halvway in the backup the finder was showned again.
    See image: http://www.liajnad.se/wp-content/uploads/2009/07/leopard-logout.jpg
    I couldnt open o terminal window as root but I was able to browse around in the filesystem as root even though I hadn't login as root.
    Anyone else seen this problem?

    Just to clarify, the new finder that was started had *root privilegies!*

  • Possible bug in GDM with new user

    Hi, I created a user in the system settings app in gnome and I set the password to be set at first login, but now logging out of the current user and trying to login to the new user without the password on gdm I just get nothing where 'create new UNIX password' used to be.
    So I cant create a password for a new user from GDM in 3.6 like I could in 3.4. It might be a bug?
    To get around this you can obviously just run
    passwd 'user'
    Is this just me?

    It's not just you. You should open a bug report upstream.

  • Possible bug for emails with a large number of recipients

    When receiving emails which was also sent to a large number of people (more than can fit in two lines), it then displays the text 'and 10 more..." or however more there are. Clicking on this text is supposed to then display all the email addresses the email was sent to. However clicking on this is for some reason doing nothing. Is this a bug, or am I the only one having this problem?

    When receiving emails which was also sent to a large number of people (more than can fit in two lines), it then displays the text 'and 10 more..." or however more there are. Clicking on this text is supposed to then display all the email addresses the email was sent to. However clicking on this is for some reason doing nothing. Is this a bug, or am I the only one having this problem?

  • Can someone with Photoshop CS5 please confirm they have this bug.

    Open a jpeg file so there is just a background layer in the Photoshop document. Then in the Actions Palette load the Adobe action set "Image Effects" and run the action last action in the set "Fluorescent Chalk" on my Windows 32 bit machine if fails in step "Hide current layer" it generates a Photoshop pop-up message "Hide" is not currently available "Continue" or "Stop". If I hit continue I loose the layer that the actions was trying to protect by hiding it. I loose the layer because it did not hide and was merged in the last step "Merge Visible".  In previous versions of Photoshop the action worked because you could hide the background layer when it was the only layer in a document in Photoshop CS5 on my machine this is not possible.

    Are you actually trying this stuff, Zeno?
    R e a d   v e r y  c a r e f u l l y...
    Neon Edges absolutely does NOT work on a flat document in Photoshop CS3.
    The terminology I'm using:
    "flat" = just a background - no layers.
    "work" = completes without error and creates a result that looks even vaguely like neon edges.
    -Noel

  • The ComponentWorks, which are based on ActiveX technology, should work with Delphi ? Please confirm that point.

    Thanks.

    ComponentWorks (Measurement Studio for Visual Basic) is comprised of ActiveX controls that can be used in any ActiveX container application. However, we only provide technical support via phone and e-mail for Visual Basic and Visual C++ integration questions and issues.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • A/R Credit Memo Gross Profit calculated incorrectly

    My client created an A/R Credit Memo by opening an A/R Invoice and copying to the A/R Credit Memo.  They deleted all the rows in the credit memo, changed the type to Service, typed a description, added the correct G/L account, and entered the total amount.  The controller of the company looked at the Sales Analysis for the Business Partner by clicking on the graphic icon on the BP form.  He noticed the Gross Profit for the above credit memo showed the exact gross profit as the original invoice from which it was copied, except the value was negative.  The original gross profit was -$73,777 so the Sales Analysis report was significantly incorrect.  I think this is a bug in how the gross profit was calculated on the credit memo.  Am I correct?

    Gordon,
    I totally agree with you.  I told them to not do this any more. 
    I was just wondering if maybe the calculation should be been performed using the final numbers on the Credit Memo instead of using numbers from the original invoice.  Should I raise this issue to SAP?

  • Huge and negative  gross profit

    HI experts!
    I have problem with gross profit in Sales Analysis. On each Sales Order, i have some Items which don'nt have item cost ( Item cost =0) and gross profit are caculated 100%. But in Sales Analysis, i got strange result  of gross profit is huge number of gross profit and % gross profit.
    I can nmot explain this. Could you advice me some idieas.
    Thanks!

    Hi
    Check This Threads It will Help u:
    Gross Profit
    Gross Profit
    gross Profit
    Gross Profit !!
    Gross Profit
    Giri

  • Gross profit for service invoices

    Hi Dear;
    how can i set gross profit for the service invoices?
    best regards;

    Hi Dany,
    Currently Business One can only work with Gross Profit on Items. However, in future release 8.8 version, methods for calculating gross profit have been improved. Users can calculate gross profit for both item and service types invoices.
    Regards,
    Candice Ren
    SAP Business One Forums Team

  • Possible Bug with Drag-and-Drop Being Published via HTML5 - Getting "Undefined" Error When Dragging Object

    Hello,
    I came up with a way to use drag-and-drop interactions that will take advantage of file input so that I may create a drag-and-drop interaction that uses one draggable object over and over allowing multiple scoring/tracking possibilities.  Example use...is having the draggable object be dynamic in that it randomly changes its text so that a learner can drag a term it's possible classification.........thus allowing the possibility of having many terms easily loaded without having to redo a drag-and-drop interaction for each needed terms/classifications updates/changes.
    My Issue: When using a variable to represent the text for a draggable Smart Shape object, I'm getting the error message "undefined" when, clicking/pressing on the object, as well as during the drag of the object. This issue occurs when publishing the project in an HTML5 format.  Flash interestingly enough seems to work perfect...but we are not interested in publishing via Flash any longer.
    To better help you explore this error message, I've set up a test project so that you can see when and how the "undefined" message shows up during a drag-and-drop interaction.  I've also included the Captivate 8 project file used to make the exploration project I'm sharing in this post.
    Link to Captivate project I created for you all to explore "undefined" error message": http://iti.cscc.edu/drag_and_drop_bug/
    Link to this Captivate 8 Project file: http://iti.cscc.edu/drag_and_drop_bug.cptx
    It's pretty interesting how things react in this demo, please try the following actions to see some interesting happenings:
    Drag the Yellow (or variable drag box) to the drag target.
    Drag Black Hello square to Drag target and click undo or reset - watch the undefined message come up on the Yellow (or variable drag box).
    Drag the Yellow (or variable drag box) to the drag target and then use the undo or reset.
    Move both draggable boxes to the drag target and use the undo and reset buttons...
    Anyhow, I know you all are sharp and will run the demo through its paces.
    I'd really be very honored if anyone help me figure out how I could (when publishing out to HTML5) no longer have the "undefined" error message show up when using drag-and-drop with a variable for shape text. This technique has been well received at the college I work at...and I have many future project requests for using such an idea on a variety of similar interactions. I'd love see a solution or see if this might be a bug Adobe may be able to fix!
    I tried to find a solution to the issue documented here for quite some time, but I was not able to find anyone with this problem much less attempting the idea I'm sharing in the help request -  save the darn "undefined" message that comes up!
    Many thanks in advance for any help and/or direction that you all may be able to provide,
    Paul

    Hello,
    I just wanted to supply a minor update related to my drag-and-drop question/issue stated above:
    I did another test using Captivate 7, and found that the undefined error (publishing as HTML5) does not appear and the variable data remains visible - except the variable data turns very small and does not honor any font size related settings.
    I did go ahead and submit this to Adobe as a possible bug today.
    Thanks again for any help related to this issue.  If the issued documented above is solved, it will allow many amazing things to be done using Captivate's drag-and-drop for both regular type projects as well as interaction development for iBooks! 
    Matter of fact if this issue gets fixed, I'll publish a Blog entry (or video) on way's I've used Captivate's drag-and-drop to create dynamic learning activities for Higher Ed. and for use in iBooks.
    ~ Paul

  • Possible bug with iTunes 11 ?? (with Smart Playlists)

    Hi folks
    New to Apple Support, but after upgrading to iTunes 11 earlier today (on my Mac Mini) I've discovered a potential bug / difference in the way it operates compared to earlier versions. Can someone else try something similar and see if they get the same result - I think I read somewhere that v11 is not available on Windows yet, so I cant compare what happens there
    I've imported all our CD's into iTunes, and we've set up several Smart Playlists (SP). Using the Rating setting for the songs, we can break them up into groups, eg
    Rating 0 = not yet processed
    Rating 1 = not interested in listening to again
    Rating 2 = kids songs (for our children)
    Rating 3 = christmas songs
    Rating 4 = songs i like, but my wife probably wouldnt
    Rating 5 = songs we both like - good for background music etc
    Using Home Sharing to our iPad's rocks !!
    Now, onto the bug.
    Using the SP that has just songs with Rating 0, I could play any song, set the Rating to whatever, and naturally once set, that disappears from the SP
    In all earlier versions of iTunes, playback would continue with the next song, so I could set that Rating, etc etc. Worked really well to churn through a chunk of songs in say 15 minute blocks
    With iTunes v11, playback stops as soon as I set the Rating.
    How can you help ?????????? Set up a smart playlist with whatever criteria you like - make sure you have a number of songs returned and ensure Live Updating is set, have a song playing, and make that song no longer valid for that SP. Anyone doing this in earlier versions of iTunes should have the next song begin, and if this is a bug, then those using iTunes 11 will have playback stop
    Sorry for the long post, but in order to determine a potential bug, you need to describe the situation and how to test it.
    Thanks for reading
    PS I'm on a 2010 Mac Mini with OSX v10.7.x (whatever the current release of that is) and just upgraded to iTunes 11

    Soo, maybe it isnt possible bug, but the way Apple have changed iTunes when going to v11. Stooopid
    Anyway, found this link about downgrading to an earlier version. I've just completed it and found one or two "errors" in the method, which I'll detail below
    http://www.emacconsulting.com/apple/itunes/downgrade-itunes-11-to-itunes-10-7/
    In the latter part of the instructions
    11) Open your iTunes Music Folder.
    If you never moved your iTunes folder it’s located here:
    Your HD/Your User/Music/iTunes
    Or go to the Finder type:  Command + Shift + G
    Paste this into the the dialog:  ~/Music/iTunes
    If you moved it to another hard drive, you will know where to locate your iTunes folder.
    12) Open the “Previous iTunes Libraries” folder.
    13) Find the most recent copy of the “iTunes Library 2012-xx-xx.itl” file.
    Normally it will the last file at the bottom of the list.
    14) Drag a copy of the file into the iTunes folder.
    15) Delete the “iTunes Library” file.
    16) Change the name of the “iTunes Library 2012-xx-xx.itl” to ”iTunes Library” with no .itl extension.
    In #11, I simply went to "My HD"/Users/"My User"/Music/iTunes
    Copied the latest .itl and moved it up a directory level
    The old file in #15 is called "iTunes Library.itl" - which I renamed, and renamed the copied version back to "iTunes Library.itl" = though I do have extensions showing, some people may not and hence wont see the .itl
    Anyway all is fixed in my world, and when I launched v10.7, it asked me if I wanted to upgrade to v11 - I said No and not to prompt me again. Playcount issue is resulved, as is changing SmartList criteria with playback continuing
    Apple - please correct these bugs before releasing any new versions of iTunes... you've made a very large number of people unhappy

  • NetStream.send not working in Flash Player 11.2 Beta with Cirrus, Please confirm if it is a bug

    Title
    NetStream.send not working in Flash Player 11.2 Beta with Cirrus, Please confirm if it is a bug or feature
    Description
    Problem Description:
    NetStream.send can not send data to peerstreams when using with cirrus. Conflict with documents.
    Sorry for tag the build as 11.0.1.3 while the bug is actually on 11.2 beta since the bug report system didn't have 11.2 beta yet.
    If you are not responsible for 11.2 beta bug fix, please help a hand to handle this bug to 11.2 team.
    This bug is "killing" to your application, so we really appreciate your help. Thanks.
    ==Publisher==
    nc.connect("rtmfp://");
    var ns:NetStream = new NetStream(nc, NetStream.DIRECT_CONNECTIONS);
    ns.publish("sendtest");
    ...//after connection success.
    ns.send("clientfunction", "ok"); // this line cannot reach subscribers. even if subscribers have client object correctly.
    ==Subscriber==
    nc.connect("rtmfp://");
    var ns:NetStream = new NetStream(nc, cirrusid);
    var client:Object = new Object();
    client.clientfunction = clientfunction; // target function
    ns.client = client;
    ns.play("sendtest");
    Steps to Reproduce:
    1. compile the code in the attachment to SendTestExample.swf (not be able to paste it here)
    2. run it under flash player 11.2.202.19 beta
    3. run it under flash player 11
    Actual Result:
    HeartBeat is:
    Start HeartBeat:
    send hello
    send hello
    send hello
    which means NetStream.send was not able to call "clientfunction" as expected.
    Expected Result:
    Start HeartBeat:
    send hello
    in client function: hello
    send hello
    in client function: hello
    send hello
    in client function: hello
    which can call into the clientfunction as flash player 11 did.
    Any Workarounds:
    I can not find it out since it's an api level bug. But this can be very important for lots of applications which rely on send to do rpc.
    Test Configuration
    IE8, Firefox under Windows 7
    Also have problem under Windows XP (but not well tested on this platform)
    App Language(s)
    ALL
    OS Language(s)
    ALL
    Platform(s)
    Windows 7
    Browser(s)
    Internet Explorer 8.0
    ==Attachment==
    package {
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.events.NetStatusEvent;
        import flash.events.TimerEvent;
        import flash.media.Video;
        import flash.net.NetConnection;
        import flash.net.NetStream;
        import flash.text.TextField;
        import flash.utils.Timer;
        import flash.utils.setTimeout;
        public class SendTestExample extends Sprite
            public static var statusArea:TextField;
            var ncServer:NetConnection = new NetConnection();
            var nsServer:NetStream;
            var ncClient:NetConnection = new NetConnection();
            var nsClient:NetStream;
            var timer:Timer = new Timer(1000);
            public function SendTestExample() {
                ncServer.addEventListener("netStatus", onNCStatusServer);
                ncServer.connect("rtmfp://p2p.rtmfp.net","99f72ccbed0948d7589dc38a-3ce1b2616680");
                statusArea = new TextField();
                status("status");
                statusArea.x = 0;
                statusArea.y = 0;
                statusArea.border = true;
                statusArea.width = 200;
                statusArea.height = 350;
                addChild(statusArea);
            function onNCStatusServer(event:NetStatusEvent):void {
                status("Step 1:");
                status("server: " + event.info.code);
                status("id: " + ncServer.nearID);
                switch (event.info.code) {
                    case "NetConnection.Connect.Success":
                        nsServer = new NetStream(ncServer, NetStream.DIRECT_CONNECTIONS);
                        nsServer.addEventListener(NetStatusEvent.NET_STATUS, onNSStatusServer);
                        nsServer.publish("sendtest");
                        ncServer.removeEventListener(NetStatusEvent.NET_STATUS, onNCStatusServer);
                        ncClient.connect("rtmfp://p2p.rtmfp.net","99f72ccbed0948d7589dc38a-3ce1b2616680");
                        ncClient.addEventListener("netStatus", onNCStatusClient);
                    case "NetStream.Publish.BadName":
                        //status("Please check the name of the publishing stream" );
                        break;
            function onNCStatusClient(event:NetStatusEvent):void {
                status("Step 2:");
                status("client: " + event.info.code);
                status("id: " + ncClient.nearID);
                switch (event.info.code) {
                    case "NetConnection.Connect.Success":
                        nsClient = new NetStream(ncClient, ncServer.nearID);
                        var c:Object = new Object();
                        c["clientfunction"] = clientfunction;
                        nsClient.client = c;
                        nsClient.play("sendtest");
                        ncClient.removeEventListener(NetStatusEvent.NET_STATUS, onNCStatusClient);
                        //setTimeout(sendHello, 5000);
                    case "NetStream.Publish.BadName":
                        //status("Please check the name of the publishing stream" );
                        break;
            protected function onNSStatusServer(event:NetStatusEvent):void {
                status("nsserver: " + event.info.code);
                if (event.info.code == "NetStream.Play.Start") {
                    status("Start HeartBeat:");
                    this.timer.addEventListener(TimerEvent.TIMER, function (e:Event):void {
                        sendHello();
                    this.timer.start();
            protected function sendHello():void {
                status("send hello");
                nsServer.send("clientfunction", "hello");
            protected function status(msg:String):void
                statusArea.appendText(msg + "\n");
                trace("ScriptDebug: " + msg);
            protected function clientfunction(event:Object):void {
                status("in client function: " + event);

    Thanks for reporting. I can reproduce the bug in house. We will investigate.
    Calise

Maybe you are looking for