Custom Invoice posting problem in MSD axapta

Some time Ax system not allowed to post custom invoice or sales order due to some restriction in coding.If sales order created in other currency instead of dollars then that type of problem come.

To resolve that problem you can take following action.

Go to SalesFormLetter_Invoice class there one method name is Journal post-> just put debug on that method you will able to find solution.