RP-1851: complete update logic for inventory sale discount offline