Table of contents

Payslips doctype

io.cozy.payslips

Relationships

The eventual related documents - document: {object} - The associated file. ex:

{
  data: {
    _id: "c43645a93831827c7ec512eac3006e51",
    _type: "io.cozy.files"
  }
}

Some more attributes for employee’s payslip

The are some more possible attributes for employee payslips.

Example

{
  "_id": "62e5d80d6e11d19992b7efce794263f0",
  "amount": 2000,
  "date": "2018-02-07T23:00:00.000Z",
  "vendor": "Payfit",
  "metadata": {
    "version": 1
  },
  $relationships: {
    document: { data: { _id: "c43645a93831827c7ec512eac3006e51", _type: "io.cozy.files" } }
  }
}
{
  "_id": "62e5d83d6e11d19992b7efce794263f0",
  "amount": 100,
  "date": "2018-04-07T03:00:00.000Z",
  "vendor": "CESU",
  "isEmployee": true,
  "beneficiary": "Pierre Richard",
  "metadata": {
    "version": 1
  },
  $relationships: {
    payslip: { data: { _id: "c43645a93831827c7ec512eac3006e51", _type: "io.cozy.files" } }
  }
}