RevolutionPrep/netsuite — pull request #105 by keegan-lillo (2014-08-02 01:01:28+00:00)
Title: Fix for credit, payment and refund apply lists not working

I found that with the existing `to_record` method, you could not apply a payment to multiple invoices. It would always only apply to the last one in the.

After looking at the request I found it to be incorrectly constructing the apply list.

Currently it looks like this:

```

5760
true
12

5761
true
34

```

It should look like this:
```

5760
true
12

5761
true
34

```