Models

Mongoose Docs for SupplyPayment model

undefined
Field Name Field Type Comment Required Default Min Max Nested Schema
code String True
date String False
payment Number False
payment_to ObjectID False
payment_from ObjectID False
rounding_account ObjectID False
transaction[].id_invoice ObjectID False
transaction[].nominal_payment Number False
transaction[].nominal_bill Number False
transaction[].downpayment ObjectID False
transaction[]._id ObjectID False
transaction Array False
status String False waiting
rejected_description String False
timestamps.created_at String False () => moment().format()
timestamps.created_by ObjectID False
history[].code String False
history[].date String False
history[].payment Number False
history[].payment_to ObjectID False
history[].payment_from ObjectID False
history[].rounding_account ObjectID False
history[].transaction[].id_invoice ObjectID False
history[].transaction[].nominal_payment Number False
history[].transaction[].nominal_bill Number False
history[].transaction[].downpayment ObjectID False
history[].transaction[]._id ObjectID False
history[].transaction Array False
history[].status String False waiting
history[].rejected_description String False
history[].timestamps.created_at String False () => moment().format()
history[].timestamps.created_by ObjectID False
history[].timestamps.updated_at String False () => moment().format()
history[].timestamps.updated_by ObjectID False
history[]._id ObjectID False
history Array False
_id ObjectID False
__v Number False