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
  • Loading branch information
Eduardo Herrera authored and devinleighsmith committed Jun 21, 2023
1 parent 7e450a2 commit ce1e9be
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 ce1e9be

Please sign in to comment.