diff --git a/db/changes/10260-holidays/00-ACL.sql b/db/changes/10260-holidays/00-ACL.sql
index 1f8045bc7c..e72e6fa73b 100644
--- a/db/changes/10260-holidays/00-ACL.sql
+++ b/db/changes/10260-holidays/00-ACL.sql
@@ -1 +1,2 @@
-INSERT INTO salix.ACL (model, property, accessType, permission, principalType, principalId) VALUES ('Image', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee')
\ No newline at end of file
+INSERT INTO salix.ACL (model, property, accessType, permission, principalType, principalId) VALUES ('Image', '*', 'WRITE', 'ALLOW', 'ROLE', 'employee');
+INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES ('PayDem', '*', 'READ', 'ALLOW', 'ROLE', 'employee');
\ No newline at end of file
diff --git a/db/changes/10260-holidays/00-entryObservation.sql b/db/changes/10260-holidays/00-entryObservation.sql
new file mode 100644
index 0000000000..6184cf3bd9
--- /dev/null
+++ b/db/changes/10260-holidays/00-entryObservation.sql
@@ -0,0 +1,14 @@
+CREATE TABLE `vn`.`entryObservation` (
+ id int NOT NULL AUTO_INCREMENT,
+ entryFk int NOT NULL,
+ observationTypeFk TINYINT(3) UNSIGNED,
+ description TEXT,
+ PRIMARY KEY (id),
+ CONSTRAINT entry_id_entryFk
+ FOREIGN KEY (entryFk) REFERENCES entry(id),
+ CONSTRAINT observationType_id_observationTypeFk
+ FOREIGN KEY (observationTypeFk) REFERENCES observationType(id)
+);
+
+ALTER TABLE `vn`.`entryObservation`
+ADD UNIQUE INDEX `entryFk_observationTypeFk_UNIQUE` (`entryFk` ASC,`observationTypeFk` ASC);
\ No newline at end of file
diff --git a/db/changes/10260-navidad/00-acl.sql b/db/changes/10260-navidad/00-acl.sql
deleted file mode 100644
index 9fba4786b7..0000000000
--- a/db/changes/10260-navidad/00-acl.sql
+++ /dev/null
@@ -1,2 +0,0 @@
- INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
- VALUES ('PayDem', '*', 'READ', 'ALLOW', 'ROLE', 'employee');
diff --git a/modules/entry/back/model-config.json b/modules/entry/back/model-config.json
index 0e37b947ff..eddef9c410 100644
--- a/modules/entry/back/model-config.json
+++ b/modules/entry/back/model-config.json
@@ -7,5 +7,8 @@
},
"EntryLog": {
"dataSource": "vn"
+ },
+ "EntryObservation": {
+ "dataSource": "vn"
}
}
diff --git a/modules/entry/back/models/entry-observation.js b/modules/entry/back/models/entry-observation.js
new file mode 100644
index 0000000000..77d15d85c3
--- /dev/null
+++ b/modules/entry/back/models/entry-observation.js
@@ -0,0 +1,9 @@
+const UserError = require('vn-loopback/util/user-error');
+
+module.exports = Self => {
+ Self.rewriteDbError(function(err) {
+ if (err.code === 'ER_DUP_ENTRY')
+ return new UserError(`The observation type can't be repeated`);
+ return err;
+ });
+};
diff --git a/modules/entry/back/models/entry-observation.json b/modules/entry/back/models/entry-observation.json
new file mode 100644
index 0000000000..535735d839
--- /dev/null
+++ b/modules/entry/back/models/entry-observation.json
@@ -0,0 +1,37 @@
+{
+ "name": "EntryObservation",
+ "base": "Loggable",
+ "log": {
+ "model": "EntryLog",
+ "relation": "entry"
+ },
+ "options": {
+ "mysql": {
+ "table": "entryObservation"
+ }
+ },
+ "properties": {
+ "id": {
+ "id": true,
+ "type": "Number",
+ "description": "Identifier"
+ },
+ "description": {
+ "type": "String",
+ "required": true
+ }
+ },
+ "relations": {
+ "entry": {
+ "type": "belongsTo",
+ "model": "Entry",
+ "foreignKey": "entryFk"
+ },
+ "observationType": {
+ "type": "belongsTo",
+ "model": "ObservationType",
+ "foreignKey": "observationTypeFk",
+ "required": true
+ }
+ }
+}
diff --git a/modules/entry/front/index.js b/modules/entry/front/index.js
index e92f23fc19..14aecc8dbf 100644
--- a/modules/entry/front/index.js
+++ b/modules/entry/front/index.js
@@ -10,6 +10,7 @@ import './latest-buys-search-panel';
import './descriptor';
import './descriptor-popover';
import './card';
+import './note';
import './summary';
import './log';
import './buy';
diff --git a/modules/entry/front/note/index.html b/modules/entry/front/note/index.html
new file mode 100644
index 0000000000..5f3c7f77e7
--- /dev/null
+++ b/modules/entry/front/note/index.html
@@ -0,0 +1,72 @@
+