New function sell stock started
This commit is contained in:
@ -86,6 +86,7 @@ namespace StockInfo
|
||||
currentStock.ActDate = DateTime.Parse(txtActDate.Text);
|
||||
currentStock.BuyDate = string.IsNullOrWhiteSpace(txtBuyDate.Text) ? DateTime.Today : DateTime.Parse(txtBuyDate.Text);
|
||||
currentStock.ActValue = decimal.Parse(string.IsNullOrEmpty(txtActValue.Text) ? "0" : txtActValue.Text);
|
||||
currentStock.ActAmount = long.Parse(string.IsNullOrEmpty(txtActAmount.Text) ? "0" : txtActAmount.Text);
|
||||
currentStock.SoldDate = null; //DateTime.MaxValue;
|
||||
currentStock.SoldValue = decimal.Parse("0");
|
||||
currentStock.Comment = txtComment.Text;
|
||||
|
||||
Reference in New Issue
Block a user