case 3982

This commit is contained in:
2021-09-26 15:21:13 +00:00
parent 19e7c59a54
commit efe1aedb2c
2 changed files with 7 additions and 2 deletions

View File

@@ -164,9 +164,12 @@ namespace AyaNova.Biz
po.VendorEmailAddressViz = vnd.EmailAddress;
po.VendorContactViz = vnd.Contact;
po.VendorContactNotesViz = vnd.ContactNotes;
po.VendorAccountNumberViz = vnd.AccountNumber;
var PoStatusEnumList = await AyaNova.Api.Controllers.EnumListController.GetEnumList(
StringUtil.TrimTypeName(typeof(PurchaseOrderStatus).ToString()),
UserTranslationId,
CurrentUserRoles);
po.StatusViz = PoStatusEnumList.Where(x => x.Id == (long)po.Status).Select(x => x.Name).First();
}

View File

@@ -32,6 +32,8 @@ namespace AyaNova.Models
public DateTime? OrderedDate { get; set; }
public DateTime? ExpectedReceiveDate { get; set; }
public PurchaseOrderStatus Status { get; set; }
[NotMapped]
public string StatusViz { get; set; }
public long? ProjectId { get; set; }
[NotMapped]
public string ProjectViz { get; set; }