Commit 8691ff8b authored by Isaac's avatar Isaac

Add change form VAT ID to KRA PIN

parent 0d938858
Pipeline #287 failed with stages
......@@ -42,8 +42,8 @@
<div layoutDirection="row" appLayoutGap="10px" layoutAlign="start center">
<mat-form-field appFlex="auto">
<mat-label i18n>VAT ID</mat-label>
<input matInput placeholder="VAT ID" i18n-placeholder type="text" formControlName="vat_id">
<mat-label i18n>KRA PIN</mat-label>
<input matInput placeholder="KRA PIN" i18n-placeholder type="text" formControlName="vat_id">
<mat-error>{{ fieldErrors['vat_id'] }}</mat-error>
</mat-form-field>
<app-icon class="client-align-info-icon" [icon]="vatIdInfo"></app-icon>
......
......@@ -72,7 +72,7 @@ export class ClientEditFormComponent extends DetailsFormBase<IClientModel> imple
fontSize: '20px',
marginLeft: '5px',
tooltipDirection: 'left',
tooltip: $localize`If you have a valid European VAT ID,\nfill it in with the country prefix, e.g. NL123456, DE123456.`
tooltip: $localize`If you have a valid KRA PIN e.g. P052246430R, T000000001R.`
};
public currencyInfo: IIcon = {
name: 'info',
......@@ -383,8 +383,8 @@ export class ClientEditFormComponent extends DetailsFormBase<IClientModel> imple
importantMessage = viesError;
}
this.notificationService.confirmDialog({
title: $localize`VAT ID validation is not available`,
message: $localize`VIES VAT ID validation API server is not available. Your client will be marked as taxable.`,
title: $localize`KRA PIN validation is not available`,
message: $localize`VIES KRA PIN validation API server is not available. Your client will be marked as taxable.`,
importantMessage,
yesButtonName: $localize`Save anyway`,
noButtonName: $localize`Cancel`,
......
......@@ -10,7 +10,7 @@
<p class="fl-detail" i18n>Zip code: {{ object.zip_code }}</p>
<br>
<p class="fl-detail" i18n>Company: {{ object.company | nullValue }}</p>
<p class="fl-detail" i18n>Vat ID: {{ object.vat_id | nullValue }}</p>
<p class="fl-detail" i18n>KRA PIN: {{ object.vat_id | nullValue }}</p>
<br>
<p class="fl-detail" i18n>Email: {{ object.email }}</p>
<p class="fl-detail" i18n>Phone: {{ object.phone }}</p>
......
......@@ -32,8 +32,8 @@
<mat-error>{{fieldErrors['company']}}</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label i18n>VAT ID</mat-label>
<input matInput placeholder="VAT ID" i18n-placeholder type="text" formControlName="vat_id">
<mat-label i18n>KRA PIN</mat-label>
<input matInput placeholder="KRA PIN" i18n-placeholder type="text" formControlName="vat_id">
<mat-error>{{fieldErrors['vat_id']}}</mat-error>
</mat-form-field>
<mat-checkbox formControlName="tax_exempt" [color]="'primary'" i18n>Tax exempt</mat-checkbox>
......
......@@ -590,8 +590,8 @@
<p i18n>Allows issuing invoices a specified number of days before service due date.</p>
<h3 i18n>Auto set EU tax exemption on client add</h3>
<p i18n>
When this option is enabled an European Union Client will be automatically marked as "Tax exempt",
if he fills in a valid VAT ID at sign-up or when client is added by staff.
When this option is enabled a Client will be automatically marked as "Tax exempt",
if he fills in a valid KRA PIN at sign-up or when client is added by staff.
</p>
<h3 i18n>Your home country</h3>
<p i18n>
......
......@@ -1683,7 +1683,7 @@
"1640609344969975994": "To",
"1527588502324821192": " A client is a legal entity, private person, or organization, to which invoices are issued. The services you order are organized under clients. You can have one or more clients and you can assign roles and rights for other users to the clients you own. ",
"3008420115644088420": "Configuration",
"3561870444388042041": "VAT ID",
"3561870444388042041": "KRA PIN",
"9077488336785047062": "Tax exempt automation",
"2367233119314841990": "Tax exempt",
"2404978701390845480": "Do not process",
......@@ -1696,7 +1696,7 @@
"6021375693420723366": "Default currency",
"5944812089887969249": "Groups",
"9149498548977462220": "Custom fields",
"4774906737638836317": "If you have a valid European VAT ID,\nfill it in with the country prefix, e.g. NL123456, DE123456.",
"4774906737638836317": "If you have a valid KRA PIN e.g. P052246430R, T000000001R.",
"4802821651540769937": "New services will use the default currency.\nExisting services are not affected by this change.",
"6022519253772437338": "VIES VAT API is used for EU customers to automatically set tax exempt state.\nTax exempt state is never changed automatically if you select Always/Never tax exempt.",
"4406332535420877790": "If this is checked this client will not be processed by process clients periodic task.\n This effectively disables billing and automatic suspension/termination for this client.",
......@@ -1704,8 +1704,8 @@
"3672448222311420044": "When checked, an order is created automatically\nbased on Configuration > \"New client automation settings\"",
"7157583619493414522": "Save client",
"7201357866999089716": "Could not get client groups",
"4930453461520016929": "VAT ID validation is not available",
"4820951637136917772": "VIES VAT ID validation API server is not available. Your client will be marked as taxable.",
"4930453461520016929": "KRA PIN validation is not available",
"4820951637136917772": "VIES KRA PIN validation API server is not available. Your client will be marked as taxable.",
"7590965072754750003": "Save anyway",
"1299905866528395088": "Client saved successfully",
"8599799524148004286": "Failed to save client",
......@@ -2421,7 +2421,7 @@
"2280948598258315662": "Save message",
"480012815160790325": "City: {$INTERPOLATION} {$START_TAG_SPAN}, {$INTERPOLATION_1}{$CLOSE_TAG_SPAN}",
"2229177999101073902": "Address: {$INTERPOLATION}{$START_TAG_SPAN}, {$INTERPOLATION_1}{$CLOSE_TAG_SPAN}",
"6606082188309093850": "Vat ID: {$INTERPOLATION}",
"6606082188309093850": "KRA PIN: {$INTERPOLATION}",
"6097302883343848258": "Fax: {$INTERPOLATION}",
"4625188608595239079": "Account e-mail address",
"1200737650075932684": "Zip code",
......
......@@ -507,7 +507,7 @@
"1527588502324821192": " A client is a legal entity, private person, or organization, to which invoices are issued. The services you order are organized under clients. You can have one or more clients and you can assign roles and rights for other users to the clients you own. ",
"3008420115644088420": "Configuration",
"1826215573205981970": "Company",
"3561870444388042041": "VAT ID",
"3561870444388042041": "KRA PIN",
"9077488336785047062": "Tax exempt automation",
"2367233119314841990": "Tax exempt",
"2404978701390845480": "Do not process",
......@@ -521,7 +521,7 @@
"6021375693420723366": "Default currency",
"5944812089887969249": "Groups",
"9149498548977462220": "Custom fields",
"4774906737638836317": "If you have a valid European VAT ID,\nfill it in with the country prefix, e.g. NL123456, DE123456.",
"4774906737638836317": "If you have a valid European KRA PIN,\nfill it in with the country prefix, e.g. NL123456, DE123456.",
"4802821651540769937": "New services will use the default currency.\nExisting services are not affected by this change.",
"6022519253772437338": "VIES VAT API is used for EU customers to automatically set tax exempt state.\nTax exempt state is never changed automatically if you select Always/Never tax exempt.",
"4406332535420877790": "If this is checked this client will not be processed by process clients periodic task.\n This effectively disables billing and automatic suspension/termination for this client.",
......@@ -530,8 +530,8 @@
"9075972862347819173": "Create new client",
"7157583619493414522": "Save client",
"7201357866999089716": "Could not get client groups",
"4930453461520016929": "VAT ID validation is not available",
"4820951637136917772": "VIES VAT ID validation API server is not available. Your client will be marked as taxable.",
"4930453461520016929": "KRA PIN validation is not available",
"4820951637136917772": "VIES KRA PIN validation API server is not available. Your client will be marked as taxable.",
"7590965072754750003": "Save anyway",
"1299905866528395088": "Client saved successfully",
"8599799524148004286": "Failed to save client",
......@@ -1373,7 +1373,7 @@
"2229177999101073902": "Address: {$INTERPOLATION}{$START_TAG_SPAN}, {$INTERPOLATION_1}{$CLOSE_TAG_SPAN}",
"6062938507378772268": "Zip code: {$INTERPOLATION}",
"612594075311067264": "Company: {$INTERPOLATION}",
"6606082188309093850": "Vat ID: {$INTERPOLATION}",
"6606082188309093850": "KRA PIN: {$INTERPOLATION}",
"9090737449564444440": "Phone: {$INTERPOLATION}",
"6097302883343848258": "Fax: {$INTERPOLATION}",
"4625188608595239079": "Account e-mail address",
......@@ -3775,7 +3775,7 @@
"1512872272307393353": "Issue invoice before next due date",
"3023922387952913849": "Allows issuing invoices a specified number of days before service due date.",
"6418261091362533143": "Auto set EU tax exemption on client add",
"7073847240358069570": " When this option is enabled an European Union Client will be automatically marked as \"Tax exempt\", if he fills in a valid VAT ID at sign-up or when client is added by staff. ",
"7073847240358069570": " When this option is enabled a Client will be automatically marked as \"Tax exempt\", if he fills in a valid KRA PIN at sign-up or when client is added by staff. ",
"8936408917908660432": " Clients from this country are never marked as \"Tax exempt\" on sign-up. Useful for VAT purposes: clients from your home country should always be charged VAT. ",
"4231256951952758465": " This text is shown at the bottom of the invoice when the client is from a country outside the European Union, or client is from EU and tax value is different than zero. Available variables: client's {$INTERPOLATION} as you define in the staff panel, Tax rules section. ",
"6888731237337627201": " This text is shown at the bottom of the invoice when the client is from EU and the calculated tax is zero. Available variables: client's {$INTERPOLATION} as you define in the staff panel, Tax rules section. ",
......
......@@ -1683,7 +1683,7 @@
"1640609344969975994": "To",
"1527588502324821192": " A client is a legal entity, private person, or organization, to which invoices are issued. The services you order are organized under clients. You can have one or more clients and you can assign roles and rights for other users to the clients you own. ",
"3008420115644088420": "Configuration",
"3561870444388042041": "VAT ID",
"3561870444388042041": "KRA PIN",
"9077488336785047062": "Tax exempt automation",
"2367233119314841990": "Tax exempt",
"2404978701390845480": "Do not process",
......@@ -1696,7 +1696,7 @@
"6021375693420723366": "Default currency",
"5944812089887969249": "Groups",
"9149498548977462220": "Custom fields",
"4774906737638836317": "If you have a valid European VAT ID,\nfill it in with the country prefix, e.g. NL123456, DE123456.",
"4774906737638836317": "If you have a valid European KRA PIN,\nfill it in with the country prefix, e.g. NL123456, DE123456.",
"4802821651540769937": "New services will use the default currency.\nExisting services are not affected by this change.",
"6022519253772437338": "VIES VAT API is used for EU customers to automatically set tax exempt state.\nTax exempt state is never changed automatically if you select Always/Never tax exempt.",
"4406332535420877790": "If this is checked this client will not be processed by process clients periodic task.\n This effectively disables billing and automatic suspension/termination for this client.",
......@@ -1704,8 +1704,8 @@
"3672448222311420044": "When checked, an order is created automatically\nbased on Configuration > \"New client automation settings\"",
"7157583619493414522": "Save client",
"7201357866999089716": "Could not get client groups",
"4930453461520016929": "VAT ID validation is not available",
"4820951637136917772": "VIES VAT ID validation API server is not available. Your client will be marked as taxable.",
"4930453461520016929": "KRA PIN validation is not available",
"4820951637136917772": "VIES KRA PIN validation API server is not available. Your client will be marked as taxable.",
"7590965072754750003": "Save anyway",
"1299905866528395088": "Client saved successfully",
"8599799524148004286": "Failed to save client",
......@@ -2421,7 +2421,7 @@
"2280948598258315662": "Save message",
"480012815160790325": "City: {$INTERPOLATION} {$START_TAG_SPAN}, {$INTERPOLATION_1}{$CLOSE_TAG_SPAN}",
"2229177999101073902": "Address: {$INTERPOLATION}{$START_TAG_SPAN}, {$INTERPOLATION_1}{$CLOSE_TAG_SPAN}",
"6606082188309093850": "Vat ID: {$INTERPOLATION}",
"6606082188309093850": "KRA PIN: {$INTERPOLATION}",
"6097302883343848258": "Fax: {$INTERPOLATION}",
"4625188608595239079": "Account e-mail address",
"1200737650075932684": "Zip code",
......@@ -4363,7 +4363,7 @@
"1512872272307393353": "Issue invoice before next due date",
"3023922387952913849": "Allows issuing invoices a specified number of days before service due date.",
"6418261091362533143": "Auto set EU tax exemption on client add",
"7073847240358069570": " When this option is enabled an European Union Client will be automatically marked as \"Tax exempt\", if he fills in a valid VAT ID at sign-up or when client is added by staff. ",
"7073847240358069570": " When this option is enabled a Client will be automatically marked as \"Tax exempt\", if he fills in a valid KRA PIN at sign-up or when client is added by staff. ",
"8936408917908660432": " Clients from this country are never marked as \"Tax exempt\" on sign-up. Useful for VAT purposes: clients from your home country should always be charged VAT. ",
"4231256951952758465": " This text is shown at the bottom of the invoice when the client is from a country outside the European Union, or client is from EU and tax value is different than zero. Available variables: client's {$INTERPOLATION} as you define in the staff panel, Tax rules section. ",
"6888731237337627201": " This text is shown at the bottom of the invoice when the client is from EU and the calculated tax is zero. Available variables: client's {$INTERPOLATION} as you define in the staff panel, Tax rules section. ",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment