Skip to content

Commit

Permalink
PSP-6422 : Not possible to save compensation requisition that has a p…
Browse files Browse the repository at this point in the history
…ayee with no payee_cheque (#3279)

Co-authored-by: Eduardo Herrera <Eduardo.Herrera@quartech.com>
  • Loading branch information
eddherrera and Eduardo Herrera authored Jun 21, 2023
1 parent 7e450a2 commit 9d9ccbf
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,12 @@ public PimsCompensationRequisition Update(PimsCompensationRequisition compensati
}
}

if (payeeCheque is not null && payeeCheque.AcqPayeeChequeId > 0)
if(payeeCheque is null)
{
PimsAcqPayeeCheque newCheque = new PimsAcqPayeeCheque() { AcquisitionPayeeId = updatedPayee.AcquisitionPayeeId };
_compensationRequisitionRepository.AddPayeeCheque(newCheque);
}
else if (payeeCheque is not null && payeeCheque.AcqPayeeChequeId > 0)
{
_compensationRequisitionRepository.UpdatePayeeCheque(payeeCheque);
}
Expand Down

0 comments on commit 9d9ccbf

Please sign in to comment.