This commit is contained in:
parent
64cf9e51b6
commit
2cb6138258
|
|
@ -403,12 +403,15 @@ namespace FineUIPro.Web.WeldMat.Stock
|
|||
if (weld != null)
|
||||
{
|
||||
Model.Weld_StockIn stockIn = BLL.StockInService.GetStockInById(this.StockInId);
|
||||
if (stockIn != null)
|
||||
{
|
||||
decimal remainingAmount = Funs.GetNewDecimalOrZero(this.txtAmount.Text.Trim()) - (stockIn.UsingAmount ?? 0);
|
||||
if (weld.ConvertValue > 0)
|
||||
{
|
||||
this.lbRemainingAmount.Text = (remainingAmount * weld.ConvertValue.Value).ToString("0.####");
|
||||
}
|
||||
this.lbReAmount.Text = remainingAmount.ToString("0.####");
|
||||
}
|
||||
//if (weld.ConvertValue.HasValue)
|
||||
//{
|
||||
// decimal? amountCov = Funs.GetNewDecimal(this.txtWeight.Text.Trim()) / weld.ConvertValue;
|
||||
|
|
|
|||
Loading…
Reference in New Issue