Hi,
Use this expressions on credit and debit column respectively.
Credit column: =IIF((Fields!Amount.Value >0 ) , Fields!Amount.Value , 0)
Debit column: =IIF((Fields!Amount.Value <0 ) , Fields!Amount.Value, 0)
Hi,
Use this expressions on credit and debit column respectively.
Credit column: =IIF((Fields!Amount.Value >0 ) , Fields!Amount.Value , 0)
Debit column: =IIF((Fields!Amount.Value <0 ) , Fields!Amount.Value, 0)
Hi Megan,
Inventory model (cur) - I never heard of it! It seems to be Russian functionality for maintaining cost in a reporting currency. I'll ignore it and go with 'your items are costed using Weighted average'.
[quote user="Megan Jones"]
i understand it that once the inventory close has happened, transactions that have been closed will never change in value again - is that correct?
[/quote]
No, and you already found one scenario where the cost of a settled issue transaction can change. With the Weight average model, AX will not close (settle) un-invoiced purchase orders. So you cannot have the case that an un-invoiced Purchase order is settled to a Sales order by Inventory close. However, you can adjust the cost of an invoiced purchase order; for example, by adding a charge to it. In this case, the cost of the PO is updated when you add the charge. The cost of the issue transactions that are settled to that PO are updated when you next run Inventory close (or, probably, Recalculation).
It can also happen in production scenarios. If you End a production order, AX can settle the cost of the production order to a sales order. Later, if the purchase order for the raw materials is invoiced at a different cost, the cost of the production order can change, and this can cause the cost of the sales order to change as well.
[quote]
Is it also correct that you can only close inventory for all items
[/quote]
Yes. I'm still not sure what this procedure is solving, but I can understand why you don't want to run inventory close in the middle of a period.
Hi,
Please can I get some advice regarding the recalculation of inventory in AX 2009.
I had an issue where the stock valuation for an item was getting out of sync due to rounding variances. I received advice to do the following:
Please can I have some advice on where this may have gone wrong & also how to fix it going forward? I feel that the crucial point is when you do the recalculation but I don’t know when that should be and what the implications are as I often cant reconcile the change in costs once the recalculation is done
Any help would be appreciated please.
Thanks
Megan
try to install analysis service extension tool from AX installer and configure cubes again
While Analysis server project update/config/deploy/create getting below error
If it means that you're using that from inside AX and not from a separate application, then yes, you can use it.
Your expression should have nested IIF see below
=IIF(Fields!Amount.Value > 0, Fields!Creadit.Value, IIF(Fields!Amount.Value < 0, Fields!Debit.Value, Creadit.Value))
Thank you :)
Hi,
I feel this can be achieved through one of the following ways.
i. One way is to make use of table inheritance (as suggested by Crispin).
Refer below links:
(Table Inheritance Overview [AX 2012])
https://msdn.microsoft.com/en-us/library/gg881053.aspx
(Walkthrough: Creating Base and Derived Tables [AX 2012])
https://msdn.microsoft.com/en-us/library/gg844024.aspx
(When to Use Table Inheritance [AX 2012])
https://msdn.microsoft.com/en-us/library/gg843731.aspx
ii. Another way is to create a posteventhandler to the insert method of tableA and fill in the details of tableB from tableA.
Typically your code looks like below.
Path: \Data Dictionary\Tables\TableA\Methods\insert\PostEventHandler
public static void postinsertEventHandler(XppPrePostArgs _args)
{
TableA tableA = _args.getThis();
TableB tableB;
tableB = TableB::find();
if (tableB.recid == 0)
{
tableB.Field1 = tableA.Field1;
tableB.Field1 = tableA.Field1;
}
}
Refer links:
(How to use Event Handler in Microsoft Dynamics AX 2012:)
https://chaituax.wordpress.com/2014/04/09/how-to-use-event-handler-in-microsoft-dynamics-ax-2012/
(Event Handling in Microsoft Dynamics AX 2012)
iii. Same code can be written in the insert method of TableA after super()
hi ,,
when i create the new record it gets updated in main table.. when the new record is created in maintable it also need to be created in related table ..can any one help me with examples
if you have inventdimid for this site or warehouse , you cannot delete it
i deleted a warehouse which is assigned to a site and assign to another site it give me this error message
"
Site '02' can not be connected to warehouse '0101', since the warehouse has already been used in connection with site '7"
i already deleted site NO 7 but i still have the same error
These fields are not AX fields. are you using any custom view in any other database which reads AX data ? LOT is inventransId in AX.
Above fields doesn't look like AX fields. these must be mapped to AX fields.
This is data from another source, JDE. I'm mapping AX data (Lot) to these fields.
Hi,
Place breakpoints at the following paths(at provided line numbers) and debug the code.
Ensure that the checkbox "Execute business operations in CIL is unmarked" on Options window.
Method of postSalesOrderPackingSlip class FormletterService gets triggered during cancelPackingslip process
\Classes\FormletterService\postSalesOrderPackingSlip(Line #14)
\Classes\SalesPackingSlipJournalPost\updateJournalLine (Line# 53)
Inventory gets updated:
\Classes\SalesPackingSlipJournalPost\updateInventory (Line# 27)
\Classes\SalesPackingSlipJournalPost\postInventory (Line# 33)
Update on SalesLine:
\Classes\SalesFormletterParmDataPackingslip\initSourceLineOnConnection
Hi,
Please use following expression on balance column.
=Fields!Debit.Value + Fields!Credit.Value
Hello Vilmos,
In link it is recommended to use Dynalink but when I try it gives me this message:
"does not contain this query method".
Hi,
Please add the following code to send a notification if there is an update on inventTrans. Test it on your test machine.
Path: \Classes\InventUpd_Physical\updateNow
Declare variables:
public void updateNow(LedgerVoucher _ledgerVoucher) { //Code added InventSum localInventSum; InventDim localInventDim; ReqItemTable localReqItemTable; InventDimParm localInventDimParm; InventOnhand localInventOnhand; InventJournalTrans localInventJournalTrans; InventQty localQty; InventTable localInventTable; //Code added
After commit statement
if (inventCostOnhandCache) { inventCostOnhandCache.clearCache(movement); } ttscommit; //Code added select InventDimId, ItemId,JournalId from localInventJournalTrans where localInventJournalTrans.JournalId == _ledgerVoucher.parmJournalNumber() join ItemId, InventDimId from localInventSum where localInventSum.ItemId == localInventJournalTrans.ItemId join localInventDim where localInventDim.inventDimId == localInventSum.InventDimId && localInventDim.inventDimId == localInventJournalTrans.InventDimId; select firstOnly ItemId from localInventTable where localInventTable.ItemId == localInventJournalTrans.ItemId; localInventDimParm.initFromInventDim(localInventDim); localInventOnhand = InventOnhand::newParameters(localInventSum.ItemId, localInventDim, localInventDimParm); localQty = localInventOnhand.availPhysical(); select MinInventOnhand,MaxInventOnhand from localReqItemTable where localReqItemTable.ItemId == localInventTable.ItemId && localReqItemTable.CovInventDimId == localInventDim.inventDimId; if (localQty < localReqItemTable.MinInventOnhand) { // Send notification; } else if (localQty > localReqItemTable.MaxInventOnhand) { // Send notification; } //Code added
Hi!
I have been trying to make one customization for last two weeks but can't make it as I am new to AX. Please Help me with this somebody. I am even ready to pay 50$ for this particular customization. Please help Please Please Please.
My requirement is, In this form, there is a field Available Physical. this is the actual quantity in the inventory left for all the products.
and this is the form where we enter the minimum and maximum quantity of product seperately. means for each product there is a form like this. all the form like these are connected to one table.
So What we need to do is , we need to compare available physical from that table from the minimum and maximum. and on the update of the available physical quantity, if it gets less then the minimum quantity of any product the notification should be sent to a customized group of people in system administration, else if the physical quantity get more than the maximum quantity notification should be sent to the same group sayingg the inventory increased.