Renaming columns of POS default control
form calculation using SQL or AX query
I'm having a challenge representing either of the 2 queries in AX. Either one works, but I'm not getting the desired results in AX.
A third option is to write in AX query, but I'm not getting the "is null" correct when using the Option 1 approach. When using the Option 2 approach, I don't know how to set a join to a constant value. I've probably been looking at it too long - any advice is appreciated.
Option1
Select PTP.AMOUNTMST, PTP.CATEGORYID, PTP.PROJTRANSTYPE, PTP.INVENTTRANSID
From PROJTRANSPOSTING PTP
LEFT JOIN SALESLINE SL ON SL.INVENTTRANSID = PTP.INVENTTRANSID
Where PTP.PROJID ='P_xx'AND PTP.TRANSACTIONORIGIN != 14
AND(PTP.POSTINGTYPE = 134 OR PTP.POSTINGTYPE = 123 OR PTP.POSTINGTYPE = 121)
AND(SL.SALESID isnullOR SL.INVENTREFTYPE != 3) -- not SalesId = ''
Option 2
Select PTP.AMOUNTMST, PTP.CATEGORYID, PTP.PROJTRANSTYPE, PTP.INVENTTRANSID
From PROJTRANSPOSTING PTP
LEFT JOIN SALESLINE SL ON SL.INVENTTRANSID = PTP.INVENTTRANSID AND SL.INVENTREFTYPE = 3
Where PTP.PROJID ='P_xx'AND PTP.TRANSACTIONORIGIN != 14
AND(PTP.POSTINGTYPE = 134 OR PTP.POSTINGTYPE = 123 OR PTP.POSTINGTYPE = 121)
AND(SL.SALESID isnull)
Option 1 in AX query
ds1 = qr.query().addDataSource(tablenum(ProjTransPosting));
ds2 = ds1.addDataSource(tablenum(SalesLine));
ds2.joinMode(JoinMode::OuterJoin);
ds2.relations(false);
ds2.addlink(fieldnum(ProjTransPosting,InventTransId),fieldnum(SalesLine,InventTransId));
ds2.addlink(fieldnum(ProjTransPosting,ProjId),fieldnum(SalesLine,ProjId));
//ds2.addlink(fieldnum(SalesLine,InventRefType),any2int(InventRefType::Production)); //todo: either figure this out...
ds1.addRange(fieldnum(ProjTransPosting,ProjId)).value(strfmt('%1',queryValue(_projId+'*')));
ds1.addRange(fieldNum(ProjTransPosting,TransactionOrigin)).value(strfmt('!%1',queryValue(ProjOrigin::ItemRequirement)));
ds1.addRange(fieldnum(ProjTransPosting,PostingType)).value(strfmt('%1 || %2 || %3',
queryValue(LedgerPostingType::ProjNeverLedger),
queryValue(LedgerPostingType::ProjWIPCostvalue),
queryValue(LedgerPostingType::ProjCost)));
qstr1 = "SalesLine.SalesId ==''";
ds2.addRange(fieldnum(SalesLine,InventRefType)).value(strfmt('!%1 || ' + qstr1, queryValue(InventRefType::Production))); // ...or this
AX2012 R3 - Payment File Format for RBS
Hi All
Was wondering is there is a way on getting Payment File export formats for Major Banks (Otherwise we will need to build from Scratch)
I require an export for RBS Bank (Royal Bank of Scotland)
Thanks
AP Vendor Master File / Buyer Vendor Master File
Hello - I am new to AX and am working with an existing AP Vendor Master File that contains many duplicates to accommodate multiple addresses within a single supplier. In my experience with other major ERP software, there is often a Master Buyer Vendor file that relates (one-to-many) to the AP Vendor Master file to accommodate for this and avoid duplicate AP Vendor records. Does this exist in AX and if so, can you please identify the table name and relationships, or where this data is available in user guides? I am aware of the Commodity Code aspect of the AP Vendor file but am hoping there may be yet another alternative option. Thank you!
Auto serial number registration for Product receipt from purchase order
Hi All,
I am using AX12 R3 - CU8. If anyone has configured to register serial number why doing PO product receipt through scan machine or upload from excel file?
My current process:
- Raise a PO for invetory item- Send to vendor - vendor deliver all items including the list of serial number.
- Create a product receipt - line - Registration - Manual assign serial number for each item.
Issue: Create an extra work load for inventory staff, incorrect serial number by manual entering.
Therefore i am looking for a new process which I can use mobile device to scan serial number and auto register them through product receipt.
I have tested Warehosue mobile device protal but it still can't link serial number to my product receipt.
Did any one have done this procee?
TIA.
Regards,
Hien Nguyen
Finding link between GENERALJOURNALENTRY and LEDGERJOURNALTRANSACCRUAL
Hi,
I looking for at way using SQL to make a statement where I get some dimension informations on my finacial transactions together with the Accrual identification and start date.
I have the script below I'm using to find the transactions with the dimensions but I can't find the path to the LEDGERJOURNALTRANSACCRUAL table.
Would anyone know if there is a path and how it looks?
Br,
Anders
Use a local form object in a extension method in class
Hi Everyone.
I am implementing the extension form/datasource/control methods using event handler, I have found information about how to do this.
But now I'm facing a little problem, I'm extending the CustOpenTrans form, I have created a method to execute when the "Mark" Checkbox will be modified, but I need use in the extension method a local CustVendOpenTransManager object that is declared in the CustOpenTrans form as a local variable.
I tried access it through the sender parameter of the event method like the form controls or datasources but it not works.
Thanks in advance
Jose Fuentes
VAT Chargeable to Project Expense
Hi there,
May I ask for your expertise on this scenario on Sales Tax?
Value Added Tax (VAT) on VATable purchases and expenses related to a project is chargeable to expense. But there is also a Withholding Tax (WTax) which is computed against the amount (exclusive of VAT) and is recorded upon invoice.
Example:
PO amount (exclusive of VAT) 1,000
Input VAT (12%) 120 charge to project expense instead of VAT
Withholding tax (1% of 1,000) (100)
Amount Payable 1,020
Accounting Entry: Dr Cr
Project Expenses 1,120
Withholding Tax 100
Accounts Payable 1,020
Sales tax is setup as follows:
Tax group Tax Codes Tax Rate
VAT & Wtax Input VAT 12%
WTax 1%
*Price does not include sales tax
Is there a way to make this work in AX 2012 R3?
Many Thanks.
Error when performing Company Deletion from Company Accounts
Hi,
I am little stuck with one error.
When I am deleting company from company accounts, getting an error as:
Cannot a delete a record in Document references(DocuRef).
'Type:The SQL database has issued an error'
Is it related to some kind of memory space or something else?
Please suggest way to find solution.
Thanks in advance
Customer statistics report for all customers at once
Hi Everyone,
I have a question about Customer Statistics report (AX 2012 R3 CU12)
In Accounts Receivable > All Customers there is a button on Action pane in Invoice tab called Period statistics
which shows very useful data about customer's invoices and payments and average days delay during specific periods
My questions - is there any possibility to have such a report for all customers in one form in order to perform comparison analysis? It's not dat useful to see only one customer per form
Any suggestions are appreciated, even if you can explain how (which table) can be exported in excel (e.g. through add-ins).
Just want to see such data for all customer at one view.
Thanks in advance!
Trace Parser for customers ListPage
Update Financial Dimension data
There is a new requirement from a client. He wants to add an additional Financial Dimension. The Dimension name is "Factory" and this will be used on filtering the Detailed Trial Balance Report as one of the primary dimension sets.How do i update already posted journals so that they will include this new Financial dimension which was not available at the time of posting.
Process for GST Calculation on Prepayment
Hello,
Thank you in advance.
Can anyone explain the Process of GST calculation on Prepayment in purchase as well as sale.
Example- I created a P.O with 1000 rupees and GST 18%. so total amount for the PO- 1180.
Nopw i go for Prepayment of fix value - 500. so when i go for the invoice for the prepayment value that time it shuld be 500 and 18% of 500. it menks total prepayment of invoice value will be 590,but in prepayment invoice level GST is not calcaulating.
when i got to sattlement of prepayment in payment journal that time also GST is not calculating.
so, any one please explain where i miss the process for prepayment.
Reply will be highly appreciated.
Regards
Subrat
Purchase order workflow in AX 2012
Hi peers,
Is it possible to enable workflow without Active change management enabled for the Purchase order?
Workflow stopped error without any additional info
Hello,
When user submitted a PR workflow, on certain step it stopped with no additional info. Same is happening when user tries to "Resume" the workflow.
The case is that when I try to resume, with the same roles as user the workflow is completed without any error.
We try to see event log for the time when error occurred for user and this is what we see:
"Microsoft.Dynamics.AX.Framework.Workflow.Runtime SysWorkflowQueue-resume SysWorkflowEvaluationProvider-evaluate SysWorkflowEvaluationProvider-evaluateCondition
at Microsoft.Dynamics.AX.Framework.Workflow.Runtime.AxWorkflowService.Evaluate(ActivityContext context)
at Microsoft.Dynamics.AX.Framework.Workflow.Runtime.ConditionalGateway.Execute(NativeActivityContext context)
at System.Activities.NativeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)"
I can't understand what the problem is.
Did you have some same case and if yes, how to resolve it?
Thanks.
Unable to see Dynamics for 365 Operations in Product name of lcs
Hi,
I'm trying to apply a gst patch for India for AX 2012 r2 for my organization. So i'm following steps from "India GST installation and setup" document from this URL - https://mbs.microsoft.com/customersource/northamerica/AX/downloads/tax-regulatory-updates/GST-India
I open lcs from an organizational account to create a project. But i'm unable to see Dynamics for 365 operations in the products section.
I'm not sure why but just followings steps mentioned in the document. I'm stuck at the very first step itself. GST is going to roll out on july 1st and we've still not tested the feature. Please help me give an alternate solution to download patch without involving Dynamics 365 operations procedure or help me populate the product while creating a project.
When i created a project for first time, i was able to see dynamics 365 for operations selection. But i deleted the project to start fresh as i was getting some error after certificate download step. Since then, i was never able to see the product when i create a project. Please HELP!!
GST India Built in reports by Microsoft
Good Morning,
Are there any built-in any GST Reports for AXAPTA 2012 r3.
or we have to build new reports .
Please throw some light .
Regards.Have a great day.
How to add value to lookup form
Can't find fixed asset when do depreciation
Dear All Experts,
can someone help me? i have a problem when i want to create depreciation using depreciation proposal there is no Fixed asset that i want to depreciation in this month but not all fixed asset, just some fixed asset like FA.242,243, and 244 when i check to the database the depreciation status is "255" that means "False", i must to change the status to "1" that means "True" so after this i can depre for the fixed asset number FA.242,243,244.
Can someone help me why in some fixed asset, AX automatically change the status of depreciation to false?
Thanks,
Christoper
Giving line discount in POS using Blank Operations
Hi All,
I am trying to give line discount in POS using blank operations. But discount is not reflecting. I am using below code:
foreach (var item in transaction.SaleItems)
{
item.LinePctDiscount = 12;
item.LineDiscount = (item.Price * 12 / 100);
item.CalculateLinePercentDiscount();
}
Discount amount should reflect in transaction summary also.
Please help. I do not want to use application.RunOperation(PosisOperations.LineDiscountPercent, 12);
Your early response will be appreciated.
Thanks
Santosh