built v0.8.41
This commit is contained in:
parent
6844e0ce6f
commit
86ba3a3f5a
4 changed files with 8 additions and 5 deletions
|
@ -141,9 +141,9 @@ namespace Wonky.Client.Pages
|
|||
_companyObject.LastVisit = $"{_lastVisit:yyyy-MM-dd}";
|
||||
_companyObject.NextVisit = $"{_nextVisit:yyyy-MM-dd}";
|
||||
|
||||
if (!VatUtils.ValidateFormat(_companyObject.CountryCode, _companyObject.VatNumber)
|
||||
|| !_companyObject.ValidDateSpan())
|
||||
if (!_companyObject.ValidDateSpan())
|
||||
{
|
||||
_toast.ShowError("Dato for næste besøg skal ligge efter sidste besøg.");
|
||||
_formInvalid = true;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -85,6 +85,8 @@ public partial class CompanyView : IDisposable
|
|||
_company.CountryCode = ux.CountryCode.ToLower();
|
||||
|
||||
_enableActivity = _company.ValidVat;
|
||||
// override if canvas which has account property as empty string or "NY"
|
||||
_enableActivity = _company.Account == "NY" || string.IsNullOrWhiteSpace(_company.Account) ? 1 : 0;
|
||||
|
||||
vatAddress = PrepareVatAddress(_company);
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"appInfo": {
|
||||
"name": "Wonky Client",
|
||||
"version": "0.8.40",
|
||||
"version": "0.8.41",
|
||||
"isBeta": true,
|
||||
"image": "grumpy-coder.png"
|
||||
},
|
||||
|
|
|
@ -33,7 +33,7 @@ public class CompanyDto
|
|||
[MaxLength(30, ErrorMessage = "Du kan højst bruge 30 tegn")]
|
||||
public string City { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "ORG/VAT/CVR er ikke et gyldigt nummer")]
|
||||
[MaxLength(20, ErrorMessage = "Du kan højst bruge 20 tegn")]
|
||||
public string VatNumber { get; set; } = "";
|
||||
|
||||
public string CompanyId { get; set; } = "";
|
||||
|
@ -41,6 +41,7 @@ public class CompanyDto
|
|||
public string SalesRepId { get; set; } = "";
|
||||
|
||||
public string BcId { get; set; } = "";
|
||||
|
||||
[MaxLength(100, ErrorMessage = "Du kan højst bruge 100 tegn")]
|
||||
public string Address1 { get; set; } = "";
|
||||
|
||||
|
|
Loading…
Reference in a new issue