mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-16 19:56:32 +02:00
Enable automatic delivery validation for designated suppliers
Add automatic delivery validation logic to the reconciliation process, enabling auto-validation for deliveries from suppliers configured for automatic reconciliation when the delivery status is 'delivered' and a BL number is present. Includes a new method to retrieve supplier details and updates to documentation. Replit-Commit-Author: Agent Replit-Commit-Session-Id: b163d4c0-de5e-4f4e-a9c0-aed4c7049718 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/b163d4c0-de5e-4f4e-a9c0-aed4c7049718/FyjZ5oh
This commit is contained in:
1 parent
f7891cda01
commit
c79ac79a91
3 files changed
+32
No files matched your search
@@ -470,6 +470,11 @@ export class DatabaseStorage implements IStorage {
|
||||
return await db.select().from(suppliers).orderBy(suppliers.name);
|
||||
}
|
||||
|
||||
async getSupplier(id: number): Promise<Supplier | undefined> {
|
||||
const [supplier] = await db.select().from(suppliers).where(eq(suppliers.id, id));
|
||||
return supplier;
|
||||
}
|
||||
|
||||
async createSupplier(supplier: InsertSupplier): Promise<Supplier> {
|
||||
const [newSupplier] = await db.insert(suppliers).values(supplier).returning();
|
||||
return newSupplier;
|
||||
|
||||
Reference in new issue
Block a user