From 3c646b3a8d7d54f12356c59f55ae8ba9af2d87f7 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Thu, 13 Feb 2020 02:23:13 -0500 Subject: [PATCH] add rounding, increment year, dont hardcode plan --- fpvt.frm | 12 ++++++------ fpvt.frx | Bin 19992 -> 19992 bytes handler.bas | 5 ++++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/fpvt.frm b/fpvt.frm index 0ff699d..0b08c7c 100644 --- a/fpvt.frm +++ b/fpvt.frm @@ -345,7 +345,7 @@ Private Sub UserForm_Activate() For i = 1 To sp("package")("totals").Count Select Case sp("package")("totals")(i)("order_season") - Case 2020 + Case 2021 Select Case Me.iter_def(sp("package")("totals")(i)("iter")) Case "baseline" bVol = bVol + sp("package")("totals")(i)("units") @@ -657,7 +657,7 @@ Sub calc_val() 'build json Set adjust = JsonConverter.ParseJson("{""scenario"":" & scenario & "}") - adjust("scenario")("version") = "b20" + adjust("scenario")("version") = handler.plan adjust("scenario")("iter") = handler.basis adjust("stamp") = Format(Date + time, "yyyy-mm-dd hh:mm:ss") adjust("user") = Application.UserName @@ -709,12 +709,12 @@ Sub calc_price() 'build json Set adjust = JsonConverter.ParseJson("{""scenario"":" & scenario & "}") - adjust("scenario")("version") = "b20" + adjust("scenario")("version") = handler.plan adjust("scenario")("iter") = handler.basis adjust("stamp") = Format(Date + time, "yyyy-mm-dd hh:mm:ss") adjust("user") = Application.UserName adjust("source") = "adj" - adjust("version") = "b20" + adjust("version") = handler.plan If opEditSales Then If opPlugVol Then @@ -779,7 +779,7 @@ Sub calc_mval() 'build json Set j = JsonConverter.ParseJson("{""scenario"":" & scenario & "}") - j("scenario")("version") = "b20" + j("scenario")("version") = handler.plan j("scenario")("iter") = handler.basis j("stamp") = Format(Date + time, "yyyy-mm-dd hh:mm:ss") j("user") = Application.UserName @@ -848,7 +848,7 @@ Sub calc_mprice() 'build json Set j = JsonConverter.ParseJson("{""scenario"":" & scenario & "}") - j("scenario")("version") = "b20" + j("scenario")("version") = handler.plan j("scenario")("iter") = handler.basis j("stamp") = Format(Date + time, "yyyy-mm-dd hh:mm:ss") j("user") = Application.UserName diff --git a/fpvt.frx b/fpvt.frx index d7f46560ab44b626fa05dae571282692b5f26aa3..9428be6d23807d2ada33d94f40ce634784d8f5f8 100644 GIT binary patch delta 1491 zcmbVMT})eL82-NV9h^``<*z^o?DU7y@>6@nRQC=AB$PGmT`K7iJnSj1mKPVq*0DPFoCZ;ZeOE9;~gb3}#P6(+X>!)7)6L4 zZ+`uS7ZhJ~Hz;I5BE+PDW%$wmgq5R7iq)0e<455~)o$Z7x#H2(ld1A6J8dc{I#yFT z^-o3WQcaOUYi;`2Rps*Ou^+c#wRVLrK>hJw^}E>uN9aofi+ojeb$O;IAC|z4j<-tT z^?7}HPj{b}FkM4lU*1A7nqOxKy$m-iJ+UG4mw(hNkU6`D}Lk%p--pMqNR z_cRR)4jI}lJ#fqM0z@r7$cqM8v$$y(zO;1W0KtyMMm=hywOiy*L3@u-NWpnr@ae9- zo6i>%eQog64q&!eF;NrzVz%ORec>2^-vS1;wP#R7rl@mLJL9zR<)PETNS46Q&K?YH z9OxFa>6}~3G&k@uo1aX=eNzWK^9(_qUjpZl1a(6SoStZ;Zm0?Q*r10%pUW&{)1b)x zy7!(I^KHiFGC zI@kiUzGk>E*n*w9Ht3+M61$6jvmckgwKSoS?&1%BQ?%1|uiT%)Du2|GOZ)Ce+`d-#-Q_Ll1; zWc&&%Br-@B=Ty)pkHedRdVS)2Hjbt;DMBviFwJg@5tD~x6FdkUXIKf?3fxB0S+5C} zMwVF?JGMW<|Mp$Mw}tCr*bMe+Zhr`JxBI~ug|EWcHjfqF9UIneUTCTn8b2gxunQiW zYVTB8VJ*ZR{uwf{*!o#8DKX|*3d52T=Ux3;`AOq<`Om4Xr#b{y{Skh_Go`9Q?Xsd7L=4f^xw^)MWcM?V0gGyK0LT6k$ye4XcpU*l57&n32U!#3iiZN pcow-0lF|&zQGx~2Cm>I`iW~LXltj)Z}=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