From 678c0cafc97d073c692f5b15d29b76c6f393964d Mon Sep 17 00:00:00 2001 From: Trowbridge Date: Tue, 5 Mar 2019 11:39:35 -0500 Subject: [PATCH] form updates --- fpvt.frm | 27 +++++++++++++++++---------- fpvt.frx | Bin 25624 -> 25624 bytes 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/fpvt.frm b/fpvt.frm index bee6bc9..10f3c6d 100644 --- a/fpvt.frm +++ b/fpvt.frm @@ -14,6 +14,7 @@ Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Public mod_adjust As Boolean +Public month() As Variant Option Explicit @@ -102,11 +103,11 @@ End Sub Private Sub UserForm_Activate() - Dim s_tot As Object + Dim sp As Object Dim i As Long Dim ok As Boolean - Set s_tot = handler.scenario_totals(handler.scenario, ok) + Set sp = handler.scenario_package(handler.scenario, ok) If Not ok Then fpvt.Hide @@ -118,18 +119,18 @@ Private Sub UserForm_Activate() '---show existing adjustment if there is one---- fpvt.mod_adjust = False - For i = 1 To s_tot("x").Count - Select Case s_tot("x")(i)("order_season") + For i = 1 To sp("package")("totals").Count + Select Case sp("package")("totals")(i)("order_season") Case 2020 - Select Case s_tot("x")(i)("iter") + Select Case sp("package")("totals")(i)("iter") Case "copy" - fpvt.tbBaseVol.Text = Format(s_tot("x")(i)("units"), "#,###") - fpvt.tbBaseVal.Text = Format(s_tot("x")(i)("value_usd"), "#,###") - If s_tot("x")(i)("units") <> 0 Then fpvt.tbBasePrice.Text = Format(s_tot("x")(i)("value_usd") / s_tot("x")(i)("units"), "#.000") + fpvt.tbBaseVol.Text = Format(sp("package")("totals")(i)("units"), "#,###") + fpvt.tbBaseVal.Text = Format(sp("package")("totals")(i)("value_usd"), "#,###") + If sp("package")("totals")(i)("units") <> 0 Then fpvt.tbBasePrice.Text = Format(sp("package")("totals")(i)("value_usd") / sp("package")("totals")(i)("units"), "#.000") Case "adjustment" - fpvt.tbPadjVol.Text = Format(s_tot("x")(i)("units"), "#,###") - fpvt.tbPadjVal.Text = Format(s_tot("x")(i)("value_usd"), "#,###") + fpvt.tbPadjVol.Text = Format(sp("package")("totals")(i)("units"), "#,###") + fpvt.tbPadjVal.Text = Format(sp("package")("totals")(i)("value_usd"), "#,###") End Select End Select @@ -139,6 +140,12 @@ Private Sub UserForm_Activate() fpvt.tbFcVal.value = Format(CDbl(fpvt.tbBaseVal.value) + CDbl(fpvt.tbPadjVal.value), "#,###") fpvt.tbFcPrice.value = Format(CDbl(fpvt.tbFcVal.value) / CDbl(fpvt.tbFcVol.value), "#.000") + '---------------------------------------populate monthly------------------------------------------------------- + + '--parse json into variant array for loading-- + + + Application.StatusBar = False End Sub diff --git a/fpvt.frx b/fpvt.frx index 1ac50a2edecbe2aa3b8870916608e46bf237a96a..0bb483a1cc7240acff77f30fd7c4ed77f762f35f 100644 GIT binary patch delta 1296 zcmZWnT})eb6u|1; zk!T;5k^E+|nPBuqGc;s+6SD_1HTtkDfW>Iyd@#Q3QGM`f@x^lsTeN%mpL5T-zw`0? zotyXB&HL=m+qKo_U;EUtq!ep&tiJ4)eq#F}u`Vb4KZIgqt|B5fRYr=H5k+h+R54C@ zM;m91$8RlvuoY!ncc-Esifxsp#KRR4rFi(6nM8fXPbgMK6!C?>E4zt?XJC~PMeH!} z%mQ;)591K)GV+-mu5^{yGRBR1UQQ!z?B*R-+#tho%2&o8tFY^;QEv2pQH>9*hXk90 zLqyW^0~{75JCiVJ?Zg9VjjbSJ(Gv!XmeZ>F#?r@R{6+5@ioV~(1o=W1Bi1P)o6h4y z>m{PE&ZZ|8VRoA6BkEKb?wxd^cB}#0Cp{>fHKI?}@T>h;_m09}Rfo2rEZn|&yf>5) zmb0&-+I_5SEp9WjqS>!eF1rnkm#iqc>{P4)zr+jtfCbmRo$7LuY{&blHrvZUq*%29JF@$~F7VSe!h9gnvVLi)C@%+l3>6KDF3*V364` z78q(7;5fdO>)|-An&YlUmM*3iWSU{!+tIS>{BJ5Qr}O1h({usXg6-Hm(@Ay~TZ0XV zcx%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