Round off total in invoice
In round off we will consider an account which is under 'Indirect Expense' and having default flag 18.
In Invoice table an extra field will require to show the invoice total is rounded off or not with flag.
If round off option is selected only that time this function will work.
Round off amount will calculate as : actual total - amount after selecting round off.
Example: If invoice total is 100.40 and after selecting round off the amount will be 100.00
Then the amount will be 0.40.
So this amount can be Dr or Cr depend on invoice type and getting profit or loss after round off.
If in the above situation if the invoice type is sales then their is loss of 0.40. So here is Round Off account is Expense and their for the amount will be Dr in expense account. So at the time of creating voucher will consider an extra account 'Round Off' and the amount will Dr/Cr in to that account.
Similarly in above situation if the invoice type is purchase then their is profit of 0.40.
So here Round Off account will be Cr.