2018-04-10 05:48:04 +00:00
|
|
|
{
|
2018-04-24 10:46:07 +00:00
|
|
|
"name": "Sale",
|
2019-09-11 06:12:27 +00:00
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model": "TicketLog",
|
|
|
|
"relation": "ticket",
|
|
|
|
"showField": "concept"
|
|
|
|
},
|
2018-04-24 10:46:07 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "sale"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
2019-04-03 13:16:32 +00:00
|
|
|
"id": true,
|
2022-05-06 11:09:37 +00:00
|
|
|
"type": "number",
|
2019-04-03 13:16:32 +00:00
|
|
|
"description": "Identifier"
|
2018-04-24 10:46:07 +00:00
|
|
|
},
|
|
|
|
"concept": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "string",
|
2019-07-02 10:12:15 +00:00
|
|
|
"required": true
|
2018-04-24 10:46:07 +00:00
|
|
|
},
|
|
|
|
"quantity": {
|
2022-05-06 11:09:37 +00:00
|
|
|
"type": "number"
|
2018-04-24 10:46:07 +00:00
|
|
|
},
|
|
|
|
"price": {
|
2022-05-06 11:09:37 +00:00
|
|
|
"type": "number"
|
2018-04-24 10:46:07 +00:00
|
|
|
},
|
|
|
|
"discount": {
|
2022-05-06 11:09:37 +00:00
|
|
|
"type": "number"
|
2018-04-24 10:46:07 +00:00
|
|
|
},
|
|
|
|
"reserved": {
|
2018-07-03 13:00:16 +00:00
|
|
|
"type": "boolean"
|
2018-04-24 10:46:07 +00:00
|
|
|
},
|
|
|
|
"isPicked": {
|
2022-05-06 11:09:37 +00:00
|
|
|
"type": "number"
|
2018-04-24 10:46:07 +00:00
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "date"
|
2022-05-06 11:09:37 +00:00
|
|
|
},
|
|
|
|
"originalQuantity":{
|
|
|
|
"type": "number"
|
2018-04-24 10:46:07 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"item": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Item",
|
|
|
|
"foreignKey": "itemFk",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"ticket": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Ticket",
|
|
|
|
"foreignKey": "ticketFk",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"isChecked": {
|
|
|
|
"type": "hasOne",
|
|
|
|
"model": "SaleChecked",
|
|
|
|
"foreignKey": "saleFk"
|
|
|
|
},
|
|
|
|
"components": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "SaleComponent",
|
|
|
|
"foreignKey": "saleFk"
|
2018-07-03 13:00:33 +00:00
|
|
|
},
|
2018-11-21 09:09:36 +00:00
|
|
|
"claimBeginning": {
|
|
|
|
"type": "hasOne",
|
|
|
|
"model": "ClaimBeginning",
|
|
|
|
"foreignKey": "saleFk"
|
|
|
|
},
|
2018-07-03 13:00:33 +00:00
|
|
|
"saleTracking": {
|
|
|
|
"type": "hasOne",
|
|
|
|
"model": "SaleTracking",
|
|
|
|
"foreignKey": "saleFk"
|
2019-11-12 13:53:58 +00:00
|
|
|
},
|
2020-03-23 10:21:25 +00:00
|
|
|
"itemShelvingSale": {
|
2019-11-12 13:53:58 +00:00
|
|
|
"type": "hasOne",
|
|
|
|
"model": "ItemShelvingSale",
|
|
|
|
"foreignKey": "saleFk"
|
2018-07-03 13:00:33 +00:00
|
|
|
}
|
2018-04-18 07:47:05 +00:00
|
|
|
}
|
2018-04-10 05:48:04 +00:00
|
|
|
}
|