fix: after applying coupon code, field in_words not updated (#37133)
* fix: after applying coupon code, field in_words not updated
* fix: changed the order of the function set_total_in_words
(cherry picked from commit 03f0abf6de)
Co-authored-by: RitvikSardana <65544983+RitvikSardana@users.noreply.github.com>