Skip to content

Commit

Permalink
terminado
Browse files Browse the repository at this point in the history
  • Loading branch information
franjuarez committed Jun 16, 2022
1 parent 4a1bd90 commit 07f0c3b
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions 07-SF2/ServiciosFinancieros-Solucion.st
Original file line number Diff line number Diff line change
Expand Up @@ -1296,10 +1296,15 @@ report
! !


!AccountSummary methodsFor: 'private' stamp: 'pa 6/16/2022 15:25:11'!
!AccountSummary methodsFor: 'private' stamp: 'FRJ 6/16/2022 18:48:52'!
resetTransactionSummary

^ accountSummary := OrderedCollection new! !

!AccountSummary methodsFor: 'private' stamp: 'FRJ 6/16/2022 18:48:52'!
transactionsSummary

accountSummary := OrderedCollection new.
self resetTransactionSummary.
bankAccount transactionsReportRepresentation: self.! !


Expand Down Expand Up @@ -1342,13 +1347,18 @@ Report subclass: #TransferNet
poolDictionaries: ''
category: 'ServiciosFinancieros-Solucion'!

!TransferNet methodsFor: 'main protocol' stamp: 'pa 6/16/2022 12:37:10'!
!TransferNet methodsFor: 'main protocol' stamp: 'FRJ 6/16/2022 18:50:05'!
report

transferNet := 0.
self resetTransferNet.
bankAccount transactionsReportRepresentation: self.
^transferNet! !

!TransferNet methodsFor: 'main protocol' stamp: 'FRJ 6/16/2022 18:50:05'!
resetTransferNet

^ transferNet := 0! !


!TransferNet methodsFor: 'transaction representation' stamp: 'pa 6/16/2022 12:37:45'!
depositRepresentationOnReport: aTransferDeposit.
Expand Down Expand Up @@ -1389,6 +1399,12 @@ Report subclass: #TreePrinterReport
poolDictionaries: ''
category: 'ServiciosFinancieros-Solucion'!

!TreePrinterReport methodsFor: 'tree structure - private' stamp: 'FRJ 6/16/2022 18:33:57'!
resetPortfolioTree

portfolioTree := ''.
treeDepth := 0! !

!TreePrinterReport methodsFor: 'tree structure - private' stamp: 'pa 6/16/2022 14:27:24'!
spacing

Expand All @@ -1400,11 +1416,10 @@ spacing
! !


!TreePrinterReport methodsFor: 'main protocol' stamp: 'pa 6/16/2022 14:50:34'!
!TreePrinterReport methodsFor: 'main protocol' stamp: 'FRJ 6/16/2022 18:33:57'!
report

portfolioTree := ''.
treeDepth := 0.
self resetPortfolioTree.
bankAccount accountAccept: self.
^portfolioTree ! !

Expand Down

0 comments on commit 07f0c3b

Please sign in to comment.