Now, two functionalities that we need another application add, as well as delete because we need to
add transactions as we and we also need to get the ability to delete one writer for that purpose.
Will be adding two functions into our app that is going to have the ability to add transactions as well
as delete them.
And then one of them will passing into expense sheet because that's where deletion part is going to
occur and when is going to be passed on new transactions and figure out which one is going to pass one
new transaction that is going to be the property, right?
So let's just create the two functions.
So let me just zoom it.
OK, so the first option is going to be the add function that is going to add properties in order.
It should be counted as transactions.
Transactions and this is going to be an out of function that is going to take our transactions as a
parameter.
And.
Its function is going to be it is going to set you the setup function so that it can set up transactions.
They're going to take a transaction and it is going to return transactions.
With a new area.
As well as are all transactions.
OK, so having to have a new I that we just made, as well as our old ones, so this means that no one
is going to be shown first and later will come on all the transactions that we did in the past.
So we have set up our search function or let's just put it into a new transaction because it needs to
access our transactions properly.
So let's just put it our transactions equal to.
And transactions.
So we have passed a certain transaction functions.
Now it's time to create another function that is going to delete the transactions.
So for that purpose, move into your app file and then just create a function known as fast.
This is going to take the ideal transition that is to be deleted, otherwise how they're they're going
to know which transition is supposed to be deleted, right?
So let's just move it.
Now we just said transactions.
And this time we are going to further out the transaction that we want to delete.
So again, transactions don't filter.
Now it is going to return as an area of numbers and transactions.
Equal to.
Transactions that it should not be equal to the idea that has been passed to us, so what are they going
to do if the I.D. matches it won't be passing that it won't be passing that particular element?
I suppose if I just delete the fifth bag, the groceries, but then it is going to come to the of function
and it is not going to match until unless it is going to pay.
But if it is going to match right, then the condition is going to be false, then it won't be returning
that particular element.
So that's how I will be deleting a transaction.
Now we need to pass the delete transaction to expert transaction so that it can have the properly deleted.
So let's just name a delete transactions and parcel the function delete transactions.
So we have almost completed our app section.
Now what remains is the mix sides.
So let's make it now.