Monday, March 12, 2018

Nav Purchase Transaction Impact on Chart of Account

Purchase Cycle :

When a Item is purchased in MS Dynamics NAV using purchase order and purchase invoice some accounts are credited and other accounts are debited. So for functional side we must know what is the major impact. Let's see the impact in detail.

Step 1. Create an Item.

Choose any of the default Item Template to complete the Item Setup.

Step 2. Create Purchase Quote and click on Create Order.

Once this is done your quote will be converted to Order and we are receiving the order and now we will check what is the impact of receiving on accounting level.

+ in NAV means Debit and - means Credit for accounting purpose only.

For Inventory concept of sign is same.

Step 3 : When we receive a PO there is no impact on Accounting Side.


Step 4 : Lets post the Receipt using purchase Invoice Page.

When we post the invoice we get this final result.

In this final result we will check the COA in GL Entry which Account is debited and which account is credited.

1.G/L Entry :

Vendor Account Credited by 750

and

Purch. Payable Account is debited by 600 and VAT 150

What is the impact of payment for vendor invoice on G/L Account?


Now, vendor account is debited 
5410 is debited by 750
&
5310 Liability Account is credited by 750.

Sunday, March 11, 2018

Tutorial 20 What is Exception Handling in Dotnet ?

What is Exception Handling ?

Exception handling is very important in dotnet because this is a coding structure based on variables 

and basic programming structure.

Here , Dotnet framework is providing us a method to check unwanted  errors from our development and coding.

We are implementing it using 3 blocks of code :

1. try :

This block is used to complete the task.

2. catch (exception ex)

This block carries the exception and here we can also catch any  exception occurring in the code.

3. finally

This block is the final code to be executed when certain error occurs in our code structure.


What is inner class exception in Dotnet and how we handle the same?

Whenever there is an exception which depend on another exception it is termed as inner exception handling.

For Example : 

Exception 1 : We want to write the exception in a log file and send it to client.

Exception 2 : We want to divide by Zero some integer value.

So in this scenario we need to implement the solution using inner class exception. To use this exception we will use a constructor of exception class.


Can we create our own Exception class and how?

Yes we can easily create exception class defined by us and add our own exception which we cant get 

in standard dotnet framework class. We will achieve this using Inheritance concept which is 

inheriting from dotnet exception class.


What is abusing in exception handling?

Abusing exception handling means for one program you need to write multiple catch blocks.
see for example.

Tutorial 19 What is multicast Delegate in Dotnet?

 What is Multicast ?

Multi Casting means when a variable is pointing to one or more functions.

Multi Casting in Delegates means when one delegate instanced variable is pointing to one or more functions.


In this example of multi casting delegates we need to follow these steps :

Step 1 : Define Delegate as done in point 1.

Step 2 : Define Variables of Delegate.

Step 3 : Creating Instances of Delegate and also we can add the instance of variable.

Step 4 : Define Methods of instances.