Platform upgrade: login auth fix, OCR/OSS upload, system menus and dicts, weather dashboard, weighing and invoice modules
This commit is contained in:
@@ -23,6 +23,7 @@ public class NumberGenerator(AppDbContext db)
|
||||
"PK" => await db.Invoices
|
||||
.Where(x => x.CreatedAt >= todayStart && x.CreatedAt < todayEnd && x.BatchNo != "")
|
||||
.Select(x => x.BatchNo).Distinct().CountAsync(),
|
||||
"GH" => await db.PurchaseTransfers.CountAsync(x => x.CreatedAt >= todayStart && x.CreatedAt < todayEnd),
|
||||
_ => 0
|
||||
};
|
||||
seq = count + 1;
|
||||
|
||||
Reference in New Issue
Block a user