web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Auto invoice inter-company purchase orders, when invoicing the sales order

(0) ShareShare
ReportReport
Posted on by 196

Hi All,

I am trying to do a seemingly simple thing without success.

I try to follow the scenario described here:

https://technet.microsoft.com/en-us/library/aa498226.aspx

(Create and invoice an intercompany purchase order for internal use [AX 2012])

If I understand correctly the article, it claims two things: creating an inter-company sales order causes the automatic creation of a matching inter-company purchase order in the "other" company.

Then, when invoicing the sales order, the purchase order is supposed to be automatically invoiced.

The first step works well (inter-company purchase order is automatically created in the other company, with all the correct values), however when I invoice the sales order, nothing happens on the purchase order side (or even when I ship the sales order, the purchase order does not get received).

I have to go and manually invoice the inter-company purchase order.

What I have done?

1. setup the inter-company relation, and selected the "Post Invoice Automatically" check boxes for Original Sales Order and Inter-company purchase order groups.

2. Marked the sales order as a "Direct Delivery"

3. Used an item of type "Service"

Tested on R2 and R3

Has anyone managed to get the inter-company auto-invoicing to work?

What am I missing?

Zvika

*This post is locked for comments

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Zvika, The link you sent around shows the purchase order as the starting Point of the intercompany chain. Have you tried setting up the IC-purchase order first that automatically triggers the creation of the IC-sales order and then tried to post the IC-SalesOrder packing slip and invoice? Ludwig

  • ZvikaR Profile Picture
    196 on at

    Thanks Ludwig,

    I can see how the article can be interpreted that way.

    However, when I try to post the inter-company purchase invoice I now get the cryptic error message "Cannot find invoice XXXXXX in company ceu with parmId = ."

    I got it on our internal environment and thought it has to do with some specific setup, but I am seeing the exact same message in the demo Contoso environment.

    Are you managing to get this to work on your own environment?

  • ZvikaR Profile Picture
    196 on at

    The full error message is:

    Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.

      at Dynamics.Ax.Application.FormletterService.Run() in FormletterService.run.xpp:line 221

      at Dynamics.Ax.Application.FormletterService.Postpurchaseorderinvoice(PurchFormLetterInvoiceContract _contract) in FormletterService.postPurchaseOrderInvoice.xpp:line 14

      at FormletterService::postPurchaseOrderInvoice(Object , Object[] )

      at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeInstanceCall(Object instance, String MethodName, Object[] parameters)

      at Dynamics.Ax.Application.SysOperationServiceController.Runoperation(Boolean _async) in SysOperationServiceController.runOperation.xpp:line 93

      at Dynamics.Ax.Application.SysOperationServiceController.runServiceOperation(Object[] parameters) in SysOperationServiceController.runServiceOperation.xpp:line 22

      at SysOperationServiceController::runServiceOperation(Object[] )

      at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

      at Dynamics.Ax.Application.SysDictClass.invokeStaticMethod(Object[] _params) in SysDictClass.invokeStaticMethod.xpp:line 26

      at SysDictClass::invokeStaticMethod(Object[] )

      at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

      at Microsoft.Dynamics.Ax.Xpp.PredefinedFunctions.runAsInvoke(String className, String staticMethodName, Object[] parms, Object[]& exportInfolog)

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Zvika, This is something you need to debug with a developer. The message does not give the indication that a user can fix it by doing something in the AX client. Best regards, Ludwig

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Prashant Singh Profile Picture

Prashant Singh 2

#1
nmaenpaa Profile Picture

nmaenpaa 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans