Total Indent and Payment table logic