This commit is contained in:
高飞 2025-11-04 14:53:24 +08:00
parent 64cf9e51b6
commit 2cb6138258
1 changed files with 7 additions and 4 deletions

View File

@ -403,12 +403,15 @@ namespace FineUIPro.Web.WeldMat.Stock
if (weld != null)
{
Model.Weld_StockIn stockIn = BLL.StockInService.GetStockInById(this.StockInId);
decimal remainingAmount = Funs.GetNewDecimalOrZero(this.txtAmount.Text.Trim()) - (stockIn.UsingAmount ?? 0);
if (weld.ConvertValue > 0)
if (stockIn != null)
{
this.lbRemainingAmount.Text = (remainingAmount * weld.ConvertValue.Value).ToString("0.####");
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.####");
}
this.lbReAmount.Text = remainingAmount.ToString("0.####");
//if (weld.ConvertValue.HasValue)
//{
// decimal? amountCov = Funs.GetNewDecimal(this.txtWeight.Text.Trim()) / weld.ConvertValue;