Fixed overwrite address on first save wo/quote/pm bug
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user