This commit is contained in:
parent
c13b49c7cd
commit
5eda1388ef
|
@ -9,8 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
### Added
|
||||
|
||||
-
|
||||
-
|
||||
|
||||
### Changed
|
||||
|
||||
-
|
||||
- Se permite añadir Proveedores con la misma razón social pero con países distintos
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE `vn`.`supplier` ADD UNIQUE (name, countryFk);
|
|
@ -16,10 +16,6 @@ module.exports = Self => {
|
|||
message: 'The social name cannot be empty'
|
||||
});
|
||||
|
||||
Self.validatesUniquenessOf('name', {
|
||||
message: 'The supplier name must be unique'
|
||||
});
|
||||
|
||||
if (this.city) {
|
||||
Self.validatesPresenceOf('city', {
|
||||
message: 'City cannot be empty'
|
||||
|
|
Loading…
Reference in New Issue