cloud code modification for owe/paid