Skip to content

Commit

Permalink
Added seperate field for postalcode and city for client
Browse files Browse the repository at this point in the history
Also adjusted config.ts and clients.ts to have property for postalcode
  • Loading branch information
JochemVH1 committed Jul 3, 2024
1 parent 360e76a commit 0adba15
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions backend/src/models/clients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export interface IClient {
name: string;
address: string;
city: string;
postalCode: string;
country: string;
telephone: string;
btw: string;
Expand Down
1 change: 1 addition & 0 deletions backend/src/models/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface ICompanyConfig {
name: string;
address: string;
city: string;
postalCode: string;
btw: string;
bank: string;
iban: string;
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/client/models/ClientConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const defaultClientProperties: FullFormConfig = [
{key: 'slug', updateOnly: true},
{key: 'address'},
{key: 'city'},
{key: 'postalCode'},
{key: 'country', component: 'CountrySelect'},
{key: 'telephone', component: 'phone'},
{key: 'contact', suffix: 'user'},
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/trans.en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ export const trans = {
name: 'Client',
btw: 'Tax',
address: 'Street & Nr',
city: 'Postal code & City',
city: 'City',
postalCode: 'Postal code',
country: 'Country',
slug: 'Name in the url',
contactEmail: 'Email contact person',
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/trans.nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ export const trans = {
name: 'Klant',
btw: 'BTW',
address: 'Straat & Nr',
city: 'Postcode & Stad',
city: 'Stad',
postalCode: 'Postcode',
country: 'Land',
slug: 'Bedrijfsnaam in de url',
contactEmail: 'Email contact persoon',
Expand Down

0 comments on commit 0adba15

Please sign in to comment.