You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -364,7 +364,7 @@ public async Task<JsonObject> RunProcessAsync(ID365AppUserService appUserService
364
364
termsName=_BCCASApi.InvoiceHeader.termsName.PadRight(header.FieldLength("termsName")),//setting it to immediate for successful testing, this needs to be dynamic going forward.
365
365
goodsDate=string.Empty.PadRight(header.FieldLength("goodsDate")),//optional field so set to null
366
366
invoiceRecDate=headeritem.First().ofm_invoice_received_date?.ToString("yyyyMMdd"),//ideally is is 4 days before current date
367
-
oracleBatchName=(_BCCASApi.clientCode+fiscalyear?.Substring(2)+"OFM"+(_oracleBatchNumber).ToString("D13")).PadRight(header.FieldLength("oracleBatchName")),//6225OFM00001 incremented by 1 for each header
367
+
oracleBatchName=(_BCCASApi.clientCode+fiscalyear?.Substring(2)+"OFM"+(_oracleBatchNumber).ToString("D5")).PadRight(header.FieldLength("oracleBatchName")),//6225OFM00001 incremented by 1 for each header
368
368
SIN=string.Empty.PadRight(header.FieldLength("SIN")),//optional field set to blank
369
369
payflag=_BCCASApi.InvoiceHeader.payflag,// Static value: Y (separate chq for each line)
370
370
description=Regex.Replace(headeritem.First()?.ofm_facility?.name,@"[^\w $\-]","").PadRight(header.FieldLength("description")),// can be used to pass extra info
@@ -373,7 +373,7 @@ public async Task<JsonObject> RunProcessAsync(ID365AppUserService appUserService
373
373
});
374
374
_controlAmount=_controlAmount+invoiceamount;
375
375
_controlCount++;
376
-
_oracleBatchNumber++;
376
+
377
377
}
378
378
379
379
// break transaction list into multiple list if it contains more than 250 transactions
0 commit comments