Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMBCESSMOD-4692: Updated schedule to SAT-SUN and added epoch date fo… #1832

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class ReconcileInvoiceDataBackgroundTask : IBackgroundTask
{
private readonly EventsManager eventsManager;

public string Schedule => "0 */10 13-3 * * MON-FRI"; //Every 10 minutes, between 06:00 AM and 08:59 PM, Monday through Friday
public string Schedule => "0 */10 13-3 * * SAT-SUN"; //Every 10 minutes, between 06:00 AM and 08:59 PM, Saturday and Sunday

public int DegreeOfParallelism => 1;

Expand Down
9 changes: 9 additions & 0 deletions ess/src/API/EMBC.ESS/Resources/Payments/PaymentRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,15 @@ private async Task<ReconcileEtransferResponse> Handle(ReconcileEtransferRequest
await ctx.SaveChangesAsync(ct);
}
}
else
{
//No Valid Supplier/SiteNumber
//SET to epoch date to flag records. This will prevent it from being picked up again
payment.era_invoicedate = new DateTime(2999, 12, 31);
//Save the data
ctx.UpdateObject(payment);
await ctx.SaveChangesAsync(ct);
}
}
}
ctx.DetachAll();
Expand Down