Skip to content

Commit

Permalink
remove bal from fixedAsset
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowbean committed Nov 2, 2023
1 parent 112e93b commit 409f267
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions absbox/local/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -1078,14 +1078,14 @@ def mkAsset(x):
("ByRateCurve", [mkDatePattern(accDp), rate]))
return mkTag(("StepUpLease", [{"originTerm": originTerm, "startDate": startDate, "paymentDates": mkDatePattern(dp), "originRental": dailyRate} | mkTag("LeaseInfo"), dailyRatePlan, 0, remainTerms, mkAssetStatus(status)]))
case ["固定资产",{"起始日":sd,"初始余额":ob,"初始期限":ot,"残值":rb,"周期":p,"摊销":ar,"产能":cap}
,{"余额":bal,"剩余期限":rt}] \
,{"剩余期限":rt}] \
|["FixedAsset",{"start":sd,"originBalance":ob,"originTerm":ot,"residual":rb,"period":p,"amortize":ar
,"capacity":cap}
,{"balance":bal,"remainTerm":rt}]:
,{"remainTerm":rt}]:
return mkTag(("FixedAsset",[{"startDate":sd,"originBalance":ob,"originTerm":ot,"residualBalance":rb
,"period":freqMap[p],"accRule":mkAccRule(ar)
,"capacity":mkCapacity(cap)} | mkTag("FixedAssetInfo")
,bal,rt]))
,rt]))
case _:
raise RuntimeError(f"Failed to match {x}:mkAsset")

Expand Down

0 comments on commit 409f267

Please sign in to comment.