hi
 
I have not tried this out but to give an example
 
checkdate method of inventUpd_physical will create an instance of inventonhand class as follows:
 
                        inventOnhand = InventOnhand::newPhysicalUpdate(movement,inventTrans.inventDim(),true);
                        if (! inventOnhand.checkItemDraw(qtyNow,allowNegativePhysical))
                            return false;
pass your new parameter above to create inventonhand which is date specific.
 
setInventSum method of class InventSum after
 
this.findSumJoin is executed change the variables to adjust the transaction that have happend between todays date and the date of the transaction. Here you can use the code which is used by the report that I have mentioned.
 
I know this sounds complicated but its actually very easy (once you get your head around the code *s*
 
regards
 
harry
 
 
 
 
 
 
While creating and instance of inventonhand
class InventOnHand method checkItemDraw.

James Flavell <[EMAIL PROTECTED]> wrote:
Thanks Harry,
 
Are you suggesting I dont use the standard Axapta class/method used in reports like physical inventory?
 
My first step is to find the place where I should change the onhand check, can you give any hint as to the class I should looking in?
 
Thanks
James
 
-----Original Message-----
From: Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Harry (Harshawardhan Deshpande
Sent: 04 October 2005 15:56
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: RE: [Axapta-Knowledge-Village] Negative onhand check

hi James
 
should be a piece of cake.
 
take on hand inventory as of today and then i.e. 3td October and then adjust it for transactions between 29th Sept and 3rd October. The code to do this is also there in standard axapta (used for inventory on hand report ) and not I dont think there will be big performance implications.
 
regards
 
harry

James Flavell <[EMAIL PROTECTED]> wrote:

Thanks Harry,

But any chance can advise is there a single class/method that does checks this variable and does the onhand check?

The reason is my customer wants to considered changing the onhand check to be based on stock 'as at' the inventory posting date of the transaction....

BTW has anyone ever tried or considered such a modification. I understand it has performance impact but my customer really wants to avoid at start of month that someone can back date an out going transaction to the previous month even when there was really no stock at that time, example:

1) Actual date 3rd Oct, user enters RAF into Axapta (posting date 3rd Oct) so onhand becomes 10
2) Actual date 3rd Oct, user enters sales delivery or invoice into Axapta (posting date 29 Sept) - - this is allowed by system as onhand is 10 but should not be allowed as onhand at 29th Sept was zero.

Thanks
James

-----Original Message-----
From: Axapta-Knowledge-Village@yahoogroups.com [mailto:Axapta-Knowledge-Village@yahoogroups.com] On Behalf Of Harry (Harshawardhan Deshpande
Sent: 03 October 2005 16:03
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: Re: [Axapta-Knowledge-Village] Negative onhand check


hi James

setParmAllowDefault will set allowNegativePhysical and this variable is used throughout inventupdate

regards

harry

James Flavell <[EMAIL PROTECTED]> wrote:
Hi ,

Hopefully a fairly easy/std questions:

Where is the code that Axapta checks whether negative inventory is allowed based on inventory model setting and then looks up the onhand qty (if not allowed) for any inventory posting?

Thanks
James



Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.

Sharing the knowledge on Axapta.




YAHOO! GROUPS LINKS

 Visit your group "Axapta-Knowledge-Village" on the web.

 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]

 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.


Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.

Sharing the knowledge on Axapta.



SPONSORED LINKS
Business finance course Business to business finance Small business finance
Business finance consultant Business finance magazine Business finance uk


YAHOO! GROUPS LINKS




Reply via email to