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.LastVisit = $"{_lastVisit:yyyy-MM-dd}";
|
||||||
_companyObject.NextVisit = $"{_nextVisit:yyyy-MM-dd}";
|
_companyObject.NextVisit = $"{_nextVisit:yyyy-MM-dd}";
|
||||||
|
|
||||||
if (!VatUtils.ValidateFormat(_companyObject.CountryCode, _companyObject.VatNumber)
|
if (!_companyObject.ValidDateSpan())
|
||||||
|| !_companyObject.ValidDateSpan())
|
|
||||||
{
|
{
|
||||||
|
_toast.ShowError("Dato for næste besøg skal ligge efter sidste besøg.");
|
||||||
_formInvalid = true;
|
_formInvalid = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -85,7 +85,9 @@ public partial class CompanyView : IDisposable
|
||||||
_company.CountryCode = ux.CountryCode.ToLower();
|
_company.CountryCode = ux.CountryCode.ToLower();
|
||||||
|
|
||||||
_enableActivity = _company.ValidVat;
|
_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);
|
vatAddress = PrepareVatAddress(_company);
|
||||||
|
|
||||||
if (_company.Interval == 0)
|
if (_company.Interval == 0)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"appInfo": {
|
"appInfo": {
|
||||||
"name": "Wonky Client",
|
"name": "Wonky Client",
|
||||||
"version": "0.8.40",
|
"version": "0.8.41",
|
||||||
"isBeta": true,
|
"isBeta": true,
|
||||||
"image": "grumpy-coder.png"
|
"image": "grumpy-coder.png"
|
||||||
},
|
},
|
||||||
|
|
|
@ -33,7 +33,7 @@ public class CompanyDto
|
||||||
[MaxLength(30, ErrorMessage = "Du kan højst bruge 30 tegn")]
|
[MaxLength(30, ErrorMessage = "Du kan højst bruge 30 tegn")]
|
||||||
public string City { get; set; }
|
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 VatNumber { get; set; } = "";
|
||||||
|
|
||||||
public string CompanyId { get; set; } = "";
|
public string CompanyId { get; set; } = "";
|
||||||
|
@ -41,6 +41,7 @@ public class CompanyDto
|
||||||
public string SalesRepId { get; set; } = "";
|
public string SalesRepId { get; set; } = "";
|
||||||
|
|
||||||
public string BcId { get; set; } = "";
|
public string BcId { get; set; } = "";
|
||||||
|
|
||||||
[MaxLength(100, ErrorMessage = "Du kan højst bruge 100 tegn")]
|
[MaxLength(100, ErrorMessage = "Du kan højst bruge 100 tegn")]
|
||||||
public string Address1 { get; set; } = "";
|
public string Address1 { get; set; } = "";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue