refactor(clientCredit): test and types
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2022-05-12 09:47:47 +02:00
parent 7f46d4e50a
commit 5021315ed4
154 changed files with 565 additions and 558 deletions

View File

@ -47,7 +47,7 @@
"type": "date"
},
"image": {
"type": "String"
"type": "string"
}
},
"relations": {

View File

@ -9,7 +9,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},

View File

@ -8,15 +8,15 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"bic": {
"type": "String"
"type": "string"
},
"name": {
"type": "String"
"type": "string"
}
},
"relations": {

View File

@ -8,35 +8,35 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"bank": {
"type": "String",
"type": "string",
"required": true
},
"account": {
"type": "String",
"type": "string",
"required": true
},
"accountingTypeFk": {
"type": "Number",
"type": "number",
"required": true,
"mysql": {
"columnName": "cash"
}
},
"entityFk": {
"type": "Number",
"type": "number",
"required": true
},
"isActive": {
"type": "Boolean",
"type": "boolean",
"required": true
},
"currencyFk": {
"type": "Number",
"type": "number",
"required": true
}
},

View File

@ -10,20 +10,20 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"description": "Identifier"
},
"host": {
"type": "String"
"type": "string"
},
"api": {
"type": "String"
"type": "string"
},
"user": {
"type": "String"
"type": "string"
},
"password": {
"type": "String"
"type": "string"
}
},
"acls": [{

View File

@ -10,11 +10,11 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"description": "Identifier"
},
"code": {
"type": "String"
"type": "string"
},
"expired": {
"type": "date"

View File

@ -9,7 +9,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
@ -21,7 +21,7 @@
"type": "string"
},
"isUeeMember": {
"type": "Boolean"
"type": "boolean"
}
},
"relations": {

View File

@ -9,17 +9,17 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"forceId": false
},
"date": {
"type": "Date"
},
"m3":{
"type": "Number"
"type": "number"
},
"warehouseFk":{
"type": "Number"
"type": "number"
}
}
}

View File

@ -9,7 +9,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},

View File

@ -13,7 +13,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},

View File

@ -9,7 +9,7 @@
"properties": {
"userFk": {
"id": true,
"type": "Number",
"type": "number",
"required": true
},
"email": {

View File

@ -8,20 +8,20 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"width": {
"type": "Number",
"type": "number",
"required": true
},
"height": {
"type": "Number",
"type": "number",
"required": true
},
"crop": {
"type": "Boolean",
"type": "boolean",
"required": true
}
},

View File

@ -8,32 +8,32 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"name": {
"type": "String",
"type": "string",
"required": true
},
"desc": {
"type": "String",
"type": "string",
"required": true
},
"maxWidth": {
"type": "Number",
"type": "number",
"required": true
},
"maxHeight": {
"type": "Number",
"type": "number",
"required": true
},
"model": {
"type": "String",
"type": "string",
"required": true
},
"property": {
"type": "String",
"type": "string",
"required": true
}
},

View File

@ -9,7 +9,7 @@
"properties": {
"code": {
"id": true,
"type": "String"
"type": "string"
}
},
"relations": {

View File

@ -11,7 +11,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier",
"mysql": {

View File

@ -9,10 +9,10 @@
"properties": {
"id": {
"id": true,
"type": "Number"
"type": "number"
},
"name": {
"type": "String"
"type": "string"
}
},
"relations": {

View File

@ -9,18 +9,18 @@
"properties": {
"id": {
"id": true,
"type": "Number"
"type": "number"
},
"userFk": {
"type": "String",
"type": "string",
"required": true
},
"tableCode": {
"type": "String",
"type": "string",
"required": true
},
"configuration": {
"type": "Object"
"type": "object"
}
},
"relations": {

View File

@ -9,40 +9,40 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"forceId": false
},
"originFk": {
"type": "Number",
"type": "number",
"required": true
},
"userFk": {
"type": "Number"
"type": "number"
},
"action": {
"type": "String",
"type": "string",
"required": true
},
"changedModel": {
"type": "String"
"type": "string"
},
"oldInstance": {
"type": "Object"
"type": "object"
},
"newInstance": {
"type": "Object"
"type": "object"
},
"creationDate": {
"type": "Date"
},
"changedModelId": {
"type": "Number"
"type": "number"
},
"changedModelValue": {
"type": "String"
"type": "string"
},
"description": {
"type": "String"
"type": "string"
}
},
"relations": {

View File

@ -9,7 +9,7 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"forceId": false
},
"username":{

View File

@ -10,17 +10,17 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"forceId": false
},
"name": {
"type": "String"
"type": "string"
},
"code": {
"type": "String"
"type": "string"
},
"isInventory": {
"type": "Number"
"type": "number"
},
"isManaged":{
"type": "boolean"

View File

@ -393,17 +393,17 @@ DROP TEMPORARY TABLE tmp.address;
INSERT INTO `vn`.`clientCredit`(`id`, `clientFk`, `workerFk`, `amount`, `created`)
VALUES
(1 , 1101, 5, 300, DATE_ADD(CURDATE(), INTERVAL -1 MONTH)),
(2 , 1101, 5, 900, DATE_ADD(CURDATE(), INTERVAL -2 MONTH)),
(3 , 1101, 5, 800, DATE_ADD(CURDATE(), INTERVAL -3 MONTH)),
(4 , 1101, 5, 700, DATE_ADD(CURDATE(), INTERVAL -4 MONTH)),
(5 , 1101, 5, 600, DATE_ADD(CURDATE(), INTERVAL -5 MONTH)),
(1 , 1101, 5, 300, DATE_ADD(CURDATE(), INTERVAL -11 MONTH)),
(2 , 1101, 5, 900, DATE_ADD(CURDATE(), INTERVAL -10 MONTH)),
(3 , 1101, 5, 800, DATE_ADD(CURDATE(), INTERVAL -9 MONTH)),
(4 , 1101, 5, 700, DATE_ADD(CURDATE(), INTERVAL -8 MONTH)),
(5 , 1101, 5, 600, DATE_ADD(CURDATE(), INTERVAL -7 MONTH)),
(6 , 1101, 5, 500, DATE_ADD(CURDATE(), INTERVAL -6 MONTH)),
(7 , 1101, 5, 400, DATE_ADD(CURDATE(), INTERVAL -7 MONTH)),
(8 , 1101, 9, 300, DATE_ADD(CURDATE(), INTERVAL -8 MONTH)),
(9 , 1101, 9, 200, DATE_ADD(CURDATE(), INTERVAL -9 MONTH)),
(10, 1101, 9, 100, DATE_ADD(CURDATE(), INTERVAL -10 MONTH)),
(11, 1101, 9, 50 , DATE_ADD(CURDATE(), INTERVAL -11 MONTH)),
(7 , 1101, 5, 400, DATE_ADD(CURDATE(), INTERVAL -5 MONTH)),
(8 , 1101, 9, 300, DATE_ADD(CURDATE(), INTERVAL -4 MONTH)),
(9 , 1101, 9, 200, DATE_ADD(CURDATE(), INTERVAL -3 MONTH)),
(10, 1101, 9, 100, DATE_ADD(CURDATE(), INTERVAL -2 MONTH)),
(11, 1101, 9, 50 , DATE_ADD(CURDATE(), INTERVAL -1 MONTH)),
(12, 1102, 9, 800, CURDATE()),
(14, 1104, 9, 90 , CURDATE()),
(15, 1105, 9, 90 , CURDATE());

View File

@ -9,19 +9,19 @@
"properties": {
"id": {
"id": true,
"type": "Number"
"type": "number"
},
"model": {
"type": "String"
"type": "string"
},
"property":{
"type": "String"
"type": "string"
},
"actionType":{
"type": "String"
"type": "string"
},
"role":{
"type": "String"
"type": "string"
}
}
}

View File

@ -29,7 +29,7 @@
"type": "string"
},
"verifyCert": {
"type": "Boolean"
"type": "boolean"
}
}
}

View File

@ -11,7 +11,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true
}
}

View File

@ -8,7 +8,7 @@
},
"properties": {
"userFk": {
"type": "Number",
"type": "number",
"id": true,
"description": "The user id",
"mysql": {
@ -16,7 +16,7 @@
}
},
"extension": {
"type": "String",
"type": "string",
"required": true
}
},

View File

@ -13,12 +13,12 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"quantity": {
"type": "Number",
"type": "number",
"required": true
}
},

View File

@ -8,12 +8,12 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"description": {
"type": "String",
"type": "string",
"required": true
}
},

View File

@ -12,7 +12,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},

View File

@ -17,7 +17,7 @@
],
"properties": {
"dmsFk": {
"type": "Number",
"type": "number",
"id": true,
"required": true
}

View File

@ -12,7 +12,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
}

View File

@ -9,40 +9,40 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"forceId": false
},
"originFk": {
"type": "Number",
"type": "number",
"required": true
},
"userFk": {
"type": "Number"
"type": "number"
},
"action": {
"type": "String",
"type": "string",
"required": true
},
"changedModel": {
"type": "String"
"type": "string"
},
"oldInstance": {
"type": "Object"
"type": "object"
},
"newInstance": {
"type": "Object"
"type": "object"
},
"creationDate": {
"type": "Date"
},
"changedModelId": {
"type": "Number"
"type": "number"
},
"changedModelValue": {
"type": "String"
"type": "string"
},
"description": {
"type": "String"
"type": "string"
}
},
"relations": {

View File

@ -9,23 +9,23 @@
"validateUpsert": true,
"properties": {
"clientFk": {
"type": "Number",
"type": "number",
"id": true
},
"yearSale": {
"type": "Number"
"type": "number"
},
"claimAmount": {
"type": "Number"
"type": "number"
},
"claimingRate": {
"type": "Number"
"type": "number"
},
"priceIncreasing": {
"type": "Number"
"type": "number"
},
"packingRate": {
"type": "Number"
"type": "number"
}
},
"relations": {

View File

@ -8,12 +8,12 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"description": {
"type": "String"
"type": "string"
}
},
"acls": [

View File

@ -8,12 +8,12 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"description": {
"type": "String",
"type": "string",
"required": true
}
},

View File

@ -8,16 +8,16 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"description": {
"type": "String",
"type": "string",
"required": true
},
"responsability": {
"type": "Number",
"type": "number",
"required": true
}
},

View File

@ -8,12 +8,12 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"description": {
"type": "String"
"type": "string"
}
},
"acls": [

View File

@ -12,7 +12,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},

View File

@ -8,7 +8,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},

View File

@ -14,7 +14,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
@ -43,10 +43,10 @@
"type": "boolean"
},
"longitude": {
"type": "Number"
"type": "number"
},
"latitude": {
"type": "Number"
"type": "number"
},
"isEqualizated": {
"type": "boolean"

View File

@ -15,7 +15,7 @@
"validateUpsert": true,
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},

View File

@ -8,12 +8,12 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"maxAmount": {
"type": "Number"
"type": "number"
}
},
"relations": {

View File

@ -10,12 +10,12 @@
"validateUpsert": true,
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"amount": {
"type": "Number"
"type": "number"
},
"created": {
"type": "date"

View File

@ -13,12 +13,12 @@
},
"properties": {
"dmsFk": {
"type": "Number",
"type": "number",
"id": true,
"required": true
},
"clientFk": {
"type": "Number",
"type": "number",
"required": true
}
},

View File

@ -9,40 +9,40 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"forceId": false
},
"originFk": {
"type": "Number",
"type": "number",
"required": true
},
"userFk": {
"type": "Number"
"type": "number"
},
"action": {
"type": "String",
"type": "string",
"required": true
},
"changedModel": {
"type": "String"
"type": "string"
},
"oldInstance": {
"type": "Object"
"type": "object"
},
"newInstance": {
"type": "Object"
"type": "object"
},
"creationDate": {
"type": "Date"
},
"changedModelId": {
"type": "Number"
"type": "number"
},
"changedModelValue": {
"type": "String"
"type": "string"
},
"description": {
"type": "String"
"type": "string"
}
},
"relations": {

View File

@ -13,12 +13,12 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"clientFk": {
"type": "Number"
"type": "number"
},
"text": {
"type": "string",

View File

@ -8,15 +8,15 @@
},
"properties": {
"clientFk": {
"type": "Number",
"type": "number",
"id": true
},
"companyFk": {
"type": "Number",
"type": "number",
"id": true
},
"amount": {
"type": "Number"
"type": "number"
}
},
"relations": {

View File

@ -14,7 +14,7 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"description": "Identifier"
},
"created": {

View File

@ -8,17 +8,17 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true
},
"code": {
"type": "String"
"type": "string"
},
"type": {
"type": "String"
"type": "string"
},
"isCreatedAsServed": {
"type": "Number"
"type": "number"
}
}
}

View File

@ -15,7 +15,7 @@
"type": "date"
},
"amount": {
"type": "Number"
"type": "number"
}
},
"relations": {

View File

@ -12,7 +12,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
@ -55,16 +55,16 @@
"type": "boolean"
},
"credit": {
"type": "Number"
"type": "number"
},
"creditInsurance": {
"type": "Number"
"type": "number"
},
"iban": {
"type": "string"
},
"dueDay": {
"type": "Number"
"type": "number"
},
"isEqualizated": {
"type": "boolean",
@ -105,7 +105,7 @@
"type": "boolean"
},
"quality": {
"type": "Number"
"type": "number"
},
"isVies": {
"type": "boolean"

View File

@ -8,7 +8,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},

View File

@ -10,7 +10,7 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"description": "Identifier"
},
"started": {

View File

@ -10,11 +10,11 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"description": "Identifier"
},
"credit": {
"type": "Number"
"type": "number"
},
"created": {
"type": "date",
@ -23,7 +23,7 @@
}
},
"grade": {
"type": "Number"
"type": "number"
}
},
"relations": {

View File

@ -8,26 +8,26 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"description": "Identifier",
"id": true
},
"fiscalName": {
"type": "String",
"type": "string",
"required": true
},
"street": {
"type": "String"
"type": "string"
},
"nif": {
"type": "String",
"type": "string",
"required": true
},
"phone": {
"type": "String"
"type": "string"
},
"email": {
"type": "String"
"type": "string"
}
}
}

View File

@ -9,19 +9,19 @@
},
"properties": {
"id": {
"type": "Number"
"type": "number"
},
"created": {
"type": "Date"
},
"amount": {
"type": "Number"
"type": "number"
},
"defaulterSinced": {
"type": "Number"
"type": "number"
},
"hasChanged": {
"type": "Number"
"type": "number"
}
},
"relations": {

View File

@ -8,7 +8,7 @@
},
"properties": {
"freightPickUpPrice": {
"type": "Number"
"type": "number"
}
},
"acls": [{

View File

@ -9,14 +9,14 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"description": "Identifier"
},
"name": {
"type": "String"
"type": "string"
},
"code": {
"type": "String"
"type": "string"
}
},
"acls": [

View File

@ -14,15 +14,15 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"description": "Identifier"
},
"description": {
"type": "String",
"type": "string",
"required": true
},
"amount": {
"type": "Number",
"type": "number",
"required": true
},
"shipped": {
@ -32,7 +32,7 @@
"type": "date"
},
"greugeTypeFk": {
"type": "Number",
"type": "number",
"required": true
}

View File

@ -8,12 +8,12 @@
},
"properties": {
"code": {
"type": "String",
"type": "string",
"description": "Identifier",
"id": true
},
"name": {
"type": "String"
"type": "string"
}
},
"acls": [

View File

@ -9,11 +9,11 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"description": "Identifier"
},
"name": {
"type": "String"
"type": "string"
}
}
}

View File

@ -9,11 +9,11 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"description": "Identifier"
},
"code": {
"type": "String"
"type": "string"
},
"created": {
"type": "date"

View File

@ -9,15 +9,15 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"description": "Identifier"
},
"description": {
"type": "String",
"type": "string",
"required": true
},
"code": {
"type": "String",
"type": "string",
"required": true
}
},

View File

@ -8,7 +8,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
@ -23,7 +23,7 @@
"type": "string"
},
"outstandingDebt": {
"type": "Number"
"type": "number"
},
"isIbanRequiredForClients": {
"type": "boolean"

View File

@ -13,7 +13,7 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"description": "Identifier"
},
"started": {
@ -24,11 +24,11 @@
"type": "date"
},
"amount": {
"type": "Number",
"type": "number",
"required": true
},
"period": {
"type": "Number"
"type": "number"
}
},
"relations": {

View File

@ -8,7 +8,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier",
"mysql": {

View File

@ -8,7 +8,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier",
"mysql": {

View File

@ -9,18 +9,18 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"uri": {
"type": "String"
"type": "string"
},
"apiKey": {
"type": "String"
"type": "string"
},
"title": {
"type": "String"
"type": "string"
}
}
}

View File

@ -9,27 +9,27 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"sender": {
"type": "String",
"type": "string",
"required": true
},
"destination": {
"type": "String",
"type": "string",
"required": true
},
"message": {
"type": "String",
"type": "string",
"required": true
},
"statusCode": {
"type": "Number"
"type": "number"
},
"status": {
"type": "String"
"type": "string"
},
"created": {
"type": "Date"

View File

@ -21,6 +21,7 @@ describe('Client Credit', () => {
rowsBefore = await models.ClientCredit.find({
where: {clientFk: instance.id},
order: 'created DESC',
}, options);
await models.ClientCredit.create({
@ -31,6 +32,7 @@ describe('Client Credit', () => {
rowsAfter = await models.ClientCredit.find({
where: {clientFk: instance.id},
order: 'created DESC',
}, options);
await tx.rollback();
@ -39,6 +41,11 @@ describe('Client Credit', () => {
throw e;
}
const FirstRowsBefore = rowsBefore[0];
const FirstRowsAfter = rowsAfter[0];
expect(FirstRowsAfter.id).toBeGreaterThan(FirstRowsBefore.id);
expect(rowsBefore.length).toBeGreaterThanOrEqual(clientConfig.maxCreditRows);
expect(rowsAfter.length).toEqual(clientConfig.maxCreditRows);
});

View File

@ -8,7 +8,7 @@
},
"properties": {
"code": {
"type": "String",
"type": "string",
"id": true,
"description": "Identifier"
},

View File

@ -8,7 +8,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},

View File

@ -8,7 +8,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},

View File

@ -8,30 +8,30 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"merchantFk": {
"type": "Number"
"type": "number"
},
"clientFk": {
"type": "Number"
"type": "number"
},
"receiptFk": {
"type": "Number"
"type": "number"
},
"amount": {
"type": "Number"
"type": "number"
},
"response": {
"type": "Number"
"type": "number"
},
"errorCode": {
"type": "String"
"type": "string"
},
"status": {
"type": "String"
"type": "string"
},
"created": {
"type": "Date"

View File

@ -9,40 +9,40 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"forceId": false
},
"originFk": {
"type": "Number",
"type": "number",
"required": true
},
"userFk": {
"type": "Number"
"type": "number"
},
"action": {
"type": "String",
"type": "string",
"required": true
},
"changedModel": {
"type": "String"
"type": "string"
},
"oldInstance": {
"type": "Object"
"type": "object"
},
"newInstance": {
"type": "Object"
"type": "object"
},
"creationDate": {
"type": "Date"
},
"changedModelId": {
"type": "String"
"type": "string"
},
"changedModelValue": {
"type": "String"
"type": "string"
},
"description": {
"type": "String"
"type": "string"
}
},
"relations": {

View File

@ -13,11 +13,11 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"description": "Identifier"
},
"description": {
"type": "String",
"type": "string",
"required": true
}
},

View File

@ -9,21 +9,21 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"description": "Identifier"
},
"ref": {
"type": "String",
"type": "string",
"required": true
},
"serial": {
"type": "String"
"type": "string"
},
"issued": {
"type": "date"
},
"amount": {
"type": "Number"
"type": "number"
},
"created": {
"type": "date"
@ -35,7 +35,7 @@
"type": "date"
},
"hasPdf": {
"type": "Boolean"
"type": "boolean"
}
},
"relations": {

View File

@ -8,16 +8,16 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"description": "Identifier",
"id": true
},
"description": {
"type": "String",
"type": "string",
"required": true
},
"code": {
"type": "String",
"type": "string",
"required": true
}
},

View File

@ -8,7 +8,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
@ -16,7 +16,7 @@
"type": "date"
},
"code": {
"type": "String"
"type": "string"
},
"rate": {
"type": "number"
@ -25,10 +25,10 @@
"type": "number"
},
"type": {
"type": "String"
"type": "string"
},
"isActive": {
"type": "Boolean"
"type": "boolean"
}
},
"relations": {

View File

@ -8,21 +8,21 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"nickname": {
"type": "String"
"type": "string"
},
"serial": {
"type": "String"
"type": "string"
},
"TIPOOPE": {
"type": "String"
"type": "string"
},
"description": {
"type": "String"
"type": "string"
}
},
"relations": {

View File

@ -13,7 +13,7 @@
"description": "Identifier"
},
"name": {
"type": "String"
"type": "string"
},
"isWithheld": {
"type": "number"

View File

@ -8,12 +8,12 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"name": {
"type": "String"
"type": "string"
}
},
"acls": [

View File

@ -8,12 +8,12 @@
},
"properties": {
"id": {
"type": "String",
"type": "string",
"id": true,
"description": "Identifier"
},
"name": {
"type": "String"
"type": "string"
},
"showOrder": {
"type": "number"

View File

@ -13,12 +13,12 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"code": {
"type": "String",
"type": "string",
"required": true
}
},

View File

@ -12,7 +12,7 @@
},
"properties": {
"itemFk": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
}

View File

@ -9,40 +9,40 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"forceId": false
},
"originFk": {
"type": "Number",
"type": "number",
"required": true
},
"userFk": {
"type": "Number"
"type": "number"
},
"action": {
"type": "String",
"type": "string",
"required": true
},
"changedModel": {
"type": "String"
"type": "string"
},
"oldInstance": {
"type": "Object"
"type": "object"
},
"newInstance": {
"type": "Object"
"type": "object"
},
"creationDate": {
"type": "Date"
},
"changedModelId": {
"type": "Number"
"type": "number"
},
"changedModelValue": {
"type": "String"
"type": "string"
},
"description": {
"type": "String"
"type": "string"
}
},
"relations": {

View File

@ -8,17 +8,17 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true
},
"code": {
"type": "String"
"type": "string"
},
"itemFk": {
"type": "Number"
"type": "number"
},
"warehouseFk": {
"type": "Number"
"type": "number"
}
},
"relations": {

View File

@ -8,12 +8,12 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"quantity": {
"type": "Number"
"type": "number"
},
"created": {
"type": "Date"

View File

@ -8,24 +8,24 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"shelve": {
"type": "String"
"type": "string"
},
"shelvingFk": {
"type": "String"
"type": "string"
},
"itemFk": {
"type": "Number"
"type": "number"
},
"deep": {
"type": "Number"
"type": "number"
},
"quantity": {
"type": "Number"
"type": "number"
},
"created": {
"type": "Date"

View File

@ -13,23 +13,23 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"value": {
"type": "String"
"type": "string"
},
"itemFk": {
"type": "Number",
"type": "number",
"required": true
},
"tagFk": {
"type": "Number",
"type": "number",
"required": true
},
"priority": {
"type": "Number",
"type": "number",
"required": true
}
},

View File

@ -13,21 +13,21 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"effectived": {
"type": "Boolean"
"type": "boolean"
},
"itemFk": {
"type": "Number"
"type": "number"
},
"countryFk": {
"type": "Number"
"type": "number"
},
"taxClassFk": {
"type": "Number"
"type": "number"
}
},
"relations": {

View File

@ -8,12 +8,12 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"priority": {
"type": "Number"
"type": "number"
}
},
"relations": {

View File

@ -8,12 +8,12 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"name": {
"type": "String"
"type": "string"
}
},
"acls": [

View File

@ -8,12 +8,12 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"name": {
"type": "String"
"type": "string"
}
},
"acls": [

View File

@ -8,25 +8,25 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"name": {
"type": "String",
"type": "string",
"required": true
},
"isFree": {
"type": "Boolean"
"type": "boolean"
},
"sourceTable": {
"type": "String"
"type": "string"
},
"unit": {
"type": "String"
"type": "string"
},
"isQuantitative": {
"type": "Boolean",
"type": "boolean",
"mysql": {
"columnName": "isQuantitatif"
}

View File

@ -8,12 +8,12 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"warehouseFk": {
"type": "Number"
"type": "number"
},
"shipped": {
"type": "date",
@ -22,22 +22,22 @@
}
},
"quantity": {
"type": "Number",
"type": "number",
"mysql": {
"columnName": "amount"
}
},
"price": {
"type": "Number"
"type": "number"
},
"rate": {
"type": "Number"
"type": "number"
},
"created": {
"type": "date"
},
"saleFk": {
"type": "Number"
"type": "number"
}
},
"relations": {

View File

@ -9,11 +9,11 @@
"properties": {
"orderFk": {
"id": true,
"type": "Number"
"type": "number"
},
"ticketFk": {
"id": true,
"type": "Number"
"type": "number"
}
},
"relations": {

View File

@ -8,7 +8,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
@ -20,44 +20,44 @@
}
},
"clientFk": {
"type": "Number",
"type": "number",
"required": true,
"mysql": {
"columnName": "customer_id"
}
},
"addressFk": {
"type": "Number",
"type": "number",
"required": true,
"mysql": {
"columnName": "address_id"
}
},
"agencyModeFk": {
"type": "Number",
"type": "number",
"required": true,
"mysql": {
"columnName": "agency_id"
}
},
"companyFk": {
"type": "Number",
"type": "number",
"required": true,
"mysql": {
"columnName": "company_id"
}
},
"note": {
"type": "String"
"type": "string"
},
"sourceApp": {
"type": "String",
"type": "string",
"mysql": {
"columnName": "source_app"
}
},
"isConfirmed": {
"type": "Number",
"type": "number",
"mysql": {
"columnName": "confirmed"
}
@ -81,7 +81,7 @@
}
},
"total": {
"type": "Number"
"type": "number"
}
},
"relations": {

View File

@ -8,15 +8,15 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
"name": {
"type": "String"
"type": "string"
},
"ubication": {
"type": "String"
"type": "string"
}
}
}

View File

@ -9,40 +9,40 @@
"properties": {
"id": {
"id": true,
"type": "Number",
"type": "number",
"forceId": false
},
"originFk": {
"type": "Number",
"type": "number",
"required": true
},
"userFk": {
"type": "Number"
"type": "number"
},
"action": {
"type": "String",
"type": "string",
"required": true
},
"changedModel": {
"type": "String"
"type": "string"
},
"oldInstance": {
"type": "Object"
"type": "object"
},
"newInstance": {
"type": "Object"
"type": "object"
},
"creationDate": {
"type": "Date"
},
"changedModelId": {
"type": "Number"
"type": "number"
},
"changedModelValue": {
"type": "String"
"type": "string"
},
"description": {
"type": "String"
"type": "string"
}
},
"relations": {

View File

@ -11,7 +11,7 @@
},
"properties": {
"id": {
"type": "Number",
"type": "number",
"id": true,
"description": "Identifier"
},
@ -22,10 +22,10 @@
"type": "date"
},
"kmStart": {
"type": "Number"
"type": "number"
},
"kmEnd": {
"type": "Number"
"type": "number"
},
"started": {
"type": "date"
@ -40,13 +40,13 @@
}
},
"cost": {
"type": "Number"
"type": "number"
},
"m3": {
"type": "Number"
"type": "number"
},
"description": {
"type": "String"
"type": "string"
}
},
"relations": {

Some files were not shown because too many files have changed in this diff Show More