Commit 94929c57 authored by liudong1993's avatar liudong1993

1

parent 9a4fb1de
...@@ -105,5 +105,10 @@ namespace Property.Model.Entity ...@@ -105,5 +105,10 @@ namespace Property.Model.Entity
get; get;
set; set;
} }
/// <summary>
/// 账面单价 用于展示 不做计算的
/// </summary>
public decimal ShowUnit_Price { get; set; }
} }
} }
\ No newline at end of file
...@@ -978,6 +978,7 @@ namespace Property.WebApi.Controllers.User ...@@ -978,6 +978,7 @@ namespace Property.WebApi.Controllers.User
x.Id, x.Id,
x.Number, x.Number,
x.Money, x.Money,
x.ShowUnit_Price,
UnitPrice = x.Number == 0 ? 0 : Math.Round((x.Money ?? 0) / (x.Number ?? 1), 2, MidpointRounding.AwayFromZero), UnitPrice = x.Number == 0 ? 0 : Math.Round((x.Money ?? 0) / (x.Number ?? 1), 2, MidpointRounding.AwayFromZero),
SuppliesName = x.SModel.Name, SuppliesName = x.SModel.Name,
x.SuppliesId, x.SuppliesId,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment