Skip to content

Commit

Permalink
EMBCESSMOD-4682: Updated schedule to SAT-SUN and added epoch date for…
Browse files Browse the repository at this point in the history
… invoices missing supplier numbers
  • Loading branch information
KyleKayfish committed Oct 26, 2023
1 parent 6ba8a84 commit bcd26a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
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

0 comments on commit bcd26a2

Please sign in to comment.