Skip to content

Commit

Permalink
Merge pull request #424 from ucdavis/JCS/AeRequestedChange
Browse files Browse the repository at this point in the history
Has a valid character set
  • Loading branch information
jSylvestre authored Jun 27, 2024
2 parents c2679ed + 71f57c9 commit ac54418
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sloth.Core/Services/AggieEnterpriseService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,19 +126,19 @@ public async Task<IGlJournalRequestResult> CreateJournal(Source source, Transact
line.PpmSegmentString = transfer.FinancialSegmentString;
if(string.IsNullOrWhiteSpace(transaction.Description))
{
line.PpmComment = transfer.Description.SafeTruncate(40);
line.PpmComment = transfer.Description.StripToErpName(40);
}
else
{
if(transaction.Description.Contains(transfer.Description) && transfer.Description.Length > transaction.Description.Length)
{
//Payments may have a transaction description like "Funds Distribution INV 7284-001" and a transfer description like "Funds Distribution" we want to use the transaction description
//Grow may have a transaction description like "McGuire_Jarman - Hort Innovation Lab" and a transfer description like "[S] GH183 (EH) / 104sqft________________" we want to use the transfer description
line.PpmComment = transfer.Description.SafeTruncate(40);
line.PpmComment = transfer.Description.StripToErpName(40);
}
else
{
line.PpmComment = transaction.Description.SafeTruncate(40);
line.PpmComment = transaction.Description.StripToErpName(40);
}
}

Expand Down

0 comments on commit ac54418

Please sign in to comment.