Fixed overwrite address on first save wo/quote/pm bug

This commit is contained in:
2021-11-10 23:08:56 +00:00
parent cb4c6e01e8
commit 348e6d3388
3 changed files with 11 additions and 0 deletions

View File

@@ -465,6 +465,9 @@ namespace AyaNova.Biz
private async Task AutoSetAddressAsync(PM newObj)
{
if(!string.IsNullOrWhiteSpace(newObj.PostAddress) || !string.IsNullOrWhiteSpace(newObj.Address))
return;
if (newObj.CustomerId == 0)
return;

View File

@@ -437,6 +437,9 @@ namespace AyaNova.Biz
private async Task AutoSetAddressAsync(Quote newObj)
{
if(!string.IsNullOrWhiteSpace(newObj.PostAddress) || !string.IsNullOrWhiteSpace(newObj.Address))
return;
if (newObj.CustomerId == 0)
return;

View File

@@ -463,6 +463,11 @@ namespace AyaNova.Biz
private async Task AutoSetAddressAsync(WorkOrder newObj)
{
if(!string.IsNullOrWhiteSpace(newObj.PostAddress) || !string.IsNullOrWhiteSpace(newObj.Address))
return;
if (newObj.CustomerId == 0)
return;