* style.css:
* UserPost.aspx: * Estimate.cs: * Writting.cs: * WorkFlowController.cs: * NpgsqlContentProvider.cs: * FrontOfficeApiController.cs: Fixed the GetEstimate function, refactoring
This commit is contained in:
parent
f6616286a6
commit
8fee293665
7 changed files with 48 additions and 35 deletions
|
|
@ -13,6 +13,8 @@ namespace yavscModel.WorkFlow
|
|||
public decimal Ciffer {
|
||||
get {
|
||||
decimal total = 0;
|
||||
if (Lines == null)
|
||||
return total;
|
||||
foreach (Writting l in Lines)
|
||||
total += l.UnitaryCost * l.Count;
|
||||
return total;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ namespace yavscModel.WorkFlow
|
|||
{
|
||||
public decimal UnitaryCost { get; set; }
|
||||
public int Count { get; set; }
|
||||
public string ProductReference { get; set; }
|
||||
public long ProductReference { get; set; }
|
||||
public string Description { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue