fn apply_pm_settlement_projection_write( conn: &mut PgConnection, write: &PmSettlementProjectionWrite, ) -> QueryResult<usize>