$TotCst{$this_appcode}{$this_csttype} += $InvAmnt{$ID};