Merge pull request #5974 from nabinhait/pos_change_amount

Change amount calcualtion in POS if there is write off amount and gl entries in this scenario