* refactor: change message of date comparision and refactor code * refactor: commonify function call for sales and purchase invoice * refactor: remove redundant mandatory error validation
* refactor: change message of date comparision and refactor code * refactor: commonify function call for sales and purchase invoice * refactor: remove redundant mandatory error validation