I used this class to update the ledger account with dimension on the journal, now the ledger account updated with the only ledger without dimensions!
↧
Forum Post: RE: AxdDimensionUtil::getLedgerAccountId is not working
↧
Forum Post: RE: Invoicing a purchase order that has a procurement category with fixed asset
For example a user will create a purchase order with 1 line. Say It has a qty of 1 and net amount of 150. matching policy is setup as none. It has fixed asset number ,value model of sl and transaction type acquisition. Its sitting in received status. Basically the a job comes along and looks for this PO number in code. All i'm doing is looking up the Purchase order in code, setting up all the parameters in vendInvoiceInfoTable and vendInvoiceInfoLine and finally calling the invoice function below. Now this works for any other situation fine. But again, when the users sets a procurement category , and on the fixed assets tab chooses what i mentioned above. This will not go against the expense in the posting profile setup and doesn't require it because it goes against the fixed asset as a capital expenditure (which is allowed on the front end) and is what we want. But when I try to run this code from x++, it looks for that expense if its setup instead of just realizing that I have a fixed asset set on that line and to go against the fa instead. I'm not sure if you guys really understand my issue but that's whats happening and I just wanted to know how to do this from code because it works from the front end... purchFormLetterInvoice = PurchFormLetter_Invoice::newFromSavedInvoice(vendInvoiceInfoTable); purchFormLetterInvoice.showQueryForm(false); purchFormLetterInvoice.update(vendInvoiceInfoTable, vendInvoiceInfoTable.Num, systemdateget());
↧
↧
Forum Post: RE: DimensionDefaultingEngine::insertDimensionSpecifer has been incorrectly called
LedgerTransferOpening
↧
Forum Post: RE: Facing an error while creating inter-componany PO "Cannot insert multiple records in Affiliation for sales order (RetailSalesAffiliation). loyalty program: 0, 0. in ax2012
I guess so, as the error looks.
↧
Forum Post: RE: Excel adding, Office integration
What you mean by 'added custom fields in excel'. Is this std entity or a new one.
↧
↧
Blog Post: 2019-R7 Payroll Update
Work has begun on the 2019-R7 Payroll update.Documentation for the included fixes will be included here once available.
↧
Forum Post: RE: Excel adding, Office integration
Its standard entity. I created extension of standard entity and added my custom fields in entity. Added custom fields in standard data entity --> custom field visible in excel--> attached newly created excel template in Office integration (document template) --> but while loading data (in downloaded excel) throwing error and only 1 records visible in excel.
↧
Forum Post: RE: Product image not showing in my POS
You will need to make sure that "Default product attribute group" is assigned to the retail channel you are testing in. Go to Channel categories and product attributes (under Retail/Channel setup) and make sure you can see the store you are testing in with assigned default product attribute group you modified.
↧
Forum Post: RE: Preprocess SSRS Report Issue
Hi Shan, Is below post for same issue or a different issue, community.dynamics.com/.../we-are-getting-a-head-blocker-for-the-query
↧
↧
Forum Post: RE: Proforma invoice with direct delivery
I select All for the Quantity and only the lines fulfilled out of our own warehouse show in the form and show on the proforma.
↧
Forum Post: RE: DimensionDefaultingEngine::insertDimensionSpecifer has been incorrectly called
Maybe your dimension data is somehow corrupted, since you have reported another issue in the dimension / ledger account area ( community.dynamics.com/.../axddimensionutil-getledgeraccountid-is-not-working). I suggest you debug your scenario to understand what exact data constellation causes AX to throw this error.
↧
Forum Post: RE: Replacing Sales Order invoice number in x++
First you need to find the place in code where the invoice number is initialized. Did you already find it? Before writing any code there, you need to consider the process. What if the user invoices the order in multiple parts? Or creates one invoice from multiple orders? How do you want it to work in those scenarios?
↧
Forum Post: RE: Replacing Sales Order invoice number in x++
This is coming from an integration and will be a 1 line sales order and invoiced immediately so not worried about that. No i'm looking where to set this haven't found that yet.
↧
↧
Forum Post: RE: Replacing Sales Order invoice number in x++
You can check cross references for CustInvoiceJour.InvoiceId field and see which methods write to this field. This general advice will help you find such info yourself in the future, cross references are your friend!
↧
Forum Post: RE: Replacing Sales Order invoice number in x++
I know it ends up there.. but i'm just trying to find how to set that when i'm setting up my Sales order.. i'm using salesTable, SalesLines. SalesParmTable and SalesParmLine , SalesFormLetter
↧
Forum Post: RE: Replacing Sales Order invoice number in x++
Hi Sirus49, We don't know how and when are you invoicing the orders.. invoicing right after the order creation in same call or afterwards. Anyway, here is how you can make it work: 1. Store the invoice number in a field on the sales order. 2. When you post the invoice, instead of using the number sequence, get the value from salesTable.customField where you will store the invoice number. Once you initialize, system will post using the same invoice number. By default there is no invoice number setup on sales order, it's retrieved during invoicing routine but in your case you will get it from the field where you store data. you won't be able to save this in salesParmTable/line/salesformletter as they are all initialized from salesTable/line only. This will make sure your codebase always work whether you call invoicing routine from external system or from within AX. Be cautious about partial invoicing and what should happen in these cases. If your orders are fulfilled outside then just invoice the entire order in single invoice. Thanks, Satish Panwar Please help verify answer(s) if they guide you in right direction so other community members can also benefit from your question with verified answer.
↧
Forum Post: RE: Seguridad en las libretas de direcciones
Hi Risasi, Seems like you posted the same question yesterday in this form in English and today posting in different language. Please know this is English language form. Also the language is not going to change the response folks have provided, I happen to recognize this by looking at screenshot. Please don't post in any language other than English.
↧
↧
Forum Post: RE: Replacing Sales Order invoice number in x++
I'm not doing any partial invoicing , literally just creating and invoicing the entire sales order in 1 shot. no concerns here just need to override the invoice number. Ok but where exactly do I initiate where I can override with the new invoice number.. " it's retrieved during invoicing routine but in your case you will get it from the field where you store data" how do i override this part?
↧
Forum Post: RE: Replacing Sales Order invoice number in x++
Did you already find where the invoice number is assigned to the invoice? In the same area you might notice that SalesId is actually also initialized and written to CustInvoiceJour. So, when you find this standard code, you can use the SalesId to get your SalesTable, and if SalesTable.CustomField (your new field) has value, use it as invoice number instead of fetching invoice number from number sequence. Is it now clear on high level?
↧
Forum Post: RE: Replacing Sales Order invoice number in x++
Hi Nikoloas, I think Sirus is looking for actual code where he can set it. and we are asking him to utilize cross reference to find out the actual codebase.
↧