From 8ca96f0d30afa5af1d195193a2d8a5e35591281d Mon Sep 17 00:00:00 2001 From: robin Date: Tue, 26 Sep 2017 10:45:56 +0800 Subject: [PATCH] .. --- B3ButcherWeightClient/Main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/B3ButcherWeightClient/Main.cs b/B3ButcherWeightClient/Main.cs index e496693..fc5543f 100644 --- a/B3ButcherWeightClient/Main.cs +++ b/B3ButcherWeightClient/Main.cs @@ -648,7 +648,7 @@ namespace B3ButcherWeightClient { detail1.Set("Goods_Name", detail.Livestock_Name); detail1.Set("GoodsBatch_ID", detail.GoodsBatchID); detail1.Set("SubWeight", detail.SubWeight); - detail1.Set("Weight", detail.Weight); + detail1.Set("Weight", (detail.Weight ?? 0) + (detail.SubWeight ?? 0)); detail1.Set("DateTime", detail.DateTime); details.Add(detail1); }