Issue #20003:base totalcost on sum of coitem_unitcost