Model xerocreditnotes


Permissions

User GroupCreate?Read?Update?Delete?
adminxxxx
ownerxxxx
user
all

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?Required?
__vNumber
_deletedBooleanfalsex
_idObjectID[Function]
_owner_idObjectIDUser_ownerx
_updated_by_idObjectIDUser_updated_byx
allocationsArray of Mixed[Function]
contactMixed
createdAtDate
credit_note_idString
credit_note_numberString
currency_codeString
currency_rateNumber
dateDatex
fully_paid_on_dateDate
line_amount_typesString
location_idObjectIDLocationx
organisation_idObjectIDOrganisationx
remaining_creditNumber
statusString
sub_totalNumber
totalNumber
total_taxNumber
typeString
updatedAtDate
updated_date_utcDate
xero_tenant_idString

Field Details

__v

{
  "path": "__v",
  "instance": "Number",
  "options": {},
  "validators": []
}

_deleted

{
  "path": "_deleted",
  "instance": "Boolean",
  "options": {
    "default": false,
    "index": true
  },
  "validators": [],
  "defaultValue": false
}

_id

{
  "path": "_id",
  "instance": "ObjectID",
  "options": {
    "auto": true,
    "type": "ObjectId"
  },
  "validators": [],
  "defaultValue": "[Function]"
}

_owner_id

{
  "path": "_owner_id",
  "instance": "ObjectID",
  "options": {
    "link": "User",
    "map_to": "_owner",
    "index": true
  },
  "validators": []
}

_updated_by_id

{
  "path": "_updated_by_id",
  "instance": "ObjectID",
  "options": {
    "link": "User",
    "map_to": "_updated_by",
    "index": true
  },
  "validators": []
}

allocations

{
  "path": "allocations",
  "instance": "Array",
  "options": {
    "type": [
      null
    ]
  },
  "validators": [],
  "defaultValue": "[Function]",
  "arrayType": "Mixed"
}

contact

{
  "path": "contact",
  "instance": "Mixed",
  "options": {},
  "validators": []
}

createdAt

{
  "path": "createdAt",
  "instance": "Date",
  "options": {
    "immutable": true
  },
  "validators": []
}

credit_note_id

{
  "path": "credit_note_id",
  "instance": "String",
  "options": {},
  "validators": []
}

credit_note_number

{
  "path": "credit_note_number",
  "instance": "String",
  "options": {},
  "validators": []
}

currency_code

{
  "path": "currency_code",
  "instance": "String",
  "options": {},
  "validators": []
}

currency_rate

{
  "path": "currency_rate",
  "instance": "Number",
  "options": {},
  "validators": []
}

date

{
  "path": "date",
  "instance": "Date",
  "options": {
    "index": true
  },
  "validators": []
}

fully_paid_on_date

{
  "path": "fully_paid_on_date",
  "instance": "Date",
  "options": {},
  "validators": []
}

line_amount_types

{
  "path": "line_amount_types",
  "instance": "String",
  "options": {},
  "validators": []
}

location_id

{
  "path": "location_id",
  "instance": "ObjectID",
  "options": {
    "link": "Location",
    "index": true
  },
  "validators": []
}

organisation_id

{
  "path": "organisation_id",
  "instance": "ObjectID",
  "options": {
    "link": "Organisation",
    "index": true
  },
  "validators": []
}

remaining_credit

{
  "path": "remaining_credit",
  "instance": "Number",
  "options": {},
  "validators": []
}

status

{
  "path": "status",
  "instance": "String",
  "options": {},
  "validators": []
}

sub_total

{
  "path": "sub_total",
  "instance": "Number",
  "options": {},
  "validators": []
}

total

{
  "path": "total",
  "instance": "Number",
  "options": {},
  "validators": []
}

total_tax

{
  "path": "total_tax",
  "instance": "Number",
  "options": {},
  "validators": []
}

type

{
  "path": "type",
  "instance": "String",
  "options": {},
  "validators": []
}

updatedAt

{
  "path": "updatedAt",
  "instance": "Date",
  "options": {},
  "validators": []
}

updated_date_utc

{
  "path": "updated_date_utc",
  "instance": "Date",
  "options": {},
  "validators": []
}

xero_tenant_id

{
  "path": "xero_tenant_id",
  "instance": "String",
  "options": {},
  "validators": []
}