The total weak discrepancy of a partially ordered set