Function: combineLinesIntoPayments()
combineLinesIntoPayments(
lines):CombinedPayment[]
Defined in: src/lib/payroll/index.ts:190
Combine per-assignment lines into one payment per contractor: amounts/hours summed (each line was computed and rounded independently — exactly "computed separately, then combined"), the paid ratio recomputed against the combined rate, and the per-assignment week breakdowns concatenated for the audit trail. All of a contractor's lines share the same per-contractor idempotency key.
Parameters
lines
readonly CombinableLine[]