6995-testToMaster_2410 #2139

Merged
alexm merged 236 commits from 6995-testToMaster_2410 into master 2024-03-07 07:09:08 +00:00
4 changed files with 18 additions and 15 deletions
Showing only changes of commit f8bf2e02de - Show all commits

View File

@ -197,5 +197,15 @@
"Booking completed": "Booking complete", "Booking completed": "Booking complete",
"The ticket is in preparation": "The ticket [{{ticketId}}]({{{ticketUrl}}}) of the sales person {{salesPersonId}} is in preparation", "The ticket is in preparation": "The ticket [{{ticketId}}]({{{ticketUrl}}}) of the sales person {{salesPersonId}} is in preparation",
"You can only add negative amounts in refund tickets": "You can only add negative amounts in refund tickets", "You can only add negative amounts in refund tickets": "You can only add negative amounts in refund tickets",
"Try again": "Try again" "Try again": "Try again",
"Property is not defined in this model": "La propiedad que ha modificado no existe",
"postcode": "Postcode",
"fi": "NIF/CIF",
"socialName": "Social name",
"street":"Street",
"city":"City",
"countryFk":"Country",
"provinceFk":"Province",
"sageTaxTypeFk":"Sage tax type",
"sageTransactionTypeFk":"Sage transaction type"
} }

View File

@ -342,15 +342,5 @@
"countryFk":"País", "countryFk":"País",
"provinceFk":"Provincia", "provinceFk":"Provincia",
"sageTaxTypeFk":"Tipo de impuesto Sage", "sageTaxTypeFk":"Tipo de impuesto Sage",
"sageTransactionTypeFk":"Tipo de transacción Sage", "sageTransactionTypeFk":"Tipo de transacción Sage"
"transferorFk":"",
"hasToInvoiceByAddress":"",
"isFreezed":"",
"isVies":"",
"isToBeMailed":"",
"isEqualizated":"",
"isTaxDataVerified":"",
"despiteOfClient":"",
"hasIncoterms":"",
"hasElectronicInvoice":""
} }

View File

@ -11,8 +11,7 @@ describe('Client Create', () => {
street: 'WALL STREET', street: 'WALL STREET',
city: 'New York', city: 'New York',
businessTypeFk: 'florist', businessTypeFk: 'florist',
provinceFk: 1, provinceFk: 1
countryFk: 1
}; };
beforeAll(async() => { beforeAll(async() => {

View File

@ -15,6 +15,10 @@ module.exports = Self => {
message: 'Street cannot be empty' message: 'Street cannot be empty'
}); });
Self.validatesPresenceOf('city', {
message: 'City cannot be empty'
});
Self.validatesUniquenessOf('fi', { Self.validatesUniquenessOf('fi', {
message: 'TIN must be unique' message: 'TIN must be unique'
}); });