Hi,
I have this code currently :
if (_isEditable)
Endorsements.Clear();
Meaning whenever I raised a quotation and being approved, and being edited again and sent for approve, all my saved endorsements will be cleared.
Now I would like to change the code if the quotation is already approved, then being edited and sent for approval -- I still wants my endorsements remain there. The clear only need to happen when the ProposalStatus is Incomplete.
I am doing the checking in this way --> If _isEditable true and previous last transaction proposal status is Approved, don;t clear the endorsement.
Is this right?
if (_isEditable && previouslasttransaction=Approved)
{
}
else
{
Endorsements.Clear();
}
How to write the previous last transaction? Am I supposed to get it from the ProposalID?
Durga