Browse Source

Bug #4170 Add Report Template, Phase Data of Gcl Bills Must Gather

MaiXinRong 8 years ago
parent
commit
3990e5cd7c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      DataModules/ReportMemoryDm/rmGclBillsAddDm.pas

+ 2 - 2
DataModules/ReportMemoryDm/rmGclBillsAddDm.pas

@@ -295,8 +295,8 @@ begin
     GclNode := FindGclNode(stnNode.Rec);
     if Assigned(GclNode) then
     begin
-      GclNode.FP_Quantity[APhaseIndex] := StageRec.ValueByName('GatherQuantity').AsFloat;
-      GclNode.FP_TotalPrice[APhaseIndex] := StageRec.ValueByName('GatherTotalPrice').AsFloat;
+      GclNode.FP_Quantity[APhaseIndex] := GclNode.FP_Quantity[APhaseIndex] + StageRec.ValueByName('GatherQuantity').AsFloat;
+      GclNode.FP_TotalPrice[APhaseIndex] := GclNode.FP_TotalPrice[APhaseIndex] + StageRec.ValueByName('GatherTotalPrice').AsFloat;
     end;
   end;
 end;