Skip to content

Commit

Permalink
Remove IMM EFT payment logic
Browse files Browse the repository at this point in the history
  • Loading branch information
bcgov-hl committed Oct 24, 2024
1 parent 2538912 commit 410bb5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ public async Task<JsonObject> RunProcessAsync(ID365AppUserService appUserService
PONumber = string.Empty.PadRight(header.FieldLength("PONumber")),// sending blank as not used by feeder
invoiceDate = headeritem.First().ofm_revised_invoice_date?.ToString("yyyyMMdd") ?? headeritem.First().ofm_invoice_date?.ToString("yyyyMMdd"), // set to current date
invoiceType = invoiceamount < 0 ? "CM" : "ST",// static to ST (standard invoice)
payGroupLookup = (pay_method == ecc_payment_method.IMMEFT)? "IMM EFT N" : string.Concat("GEN ", pay_method, " N"),//GEN CHQ N if using cheque or GEN EFT N if direct deposit
payGroupLookup = string.Concat("GEN ", pay_method, " N"),//GEN CHQ N if using cheque or GEN EFT N if direct deposit
remittanceCode = _BCCASApi.InvoiceHeader.remittanceCode.PadRight(header.FieldLength("remittanceCode")), // for payment stub it is 00 always.
grossInvoiceAmount = (invoiceamount < 0 ? "-" : "") + Math.Abs(invoiceamount).ToString("0.00", System.Globalization.CultureInfo.InvariantCulture).PadLeft(header.FieldLength("grossInvoiceAmount") - (invoiceamount < 0 ? 1 : 0), '0'), // invoice amount come from OFM total base value.
CAD = _BCCASApi.InvoiceHeader.CAD,// static value :CAD
Expand Down

0 comments on commit 410bb5e

Please sign in to comment.