Fix import script regressions

This commit is contained in:
2025-02-02 01:40:05 -05:00
parent 8a43da502a
commit 06b0f1251e
3 changed files with 62 additions and 24 deletions

View File

@@ -148,7 +148,7 @@ CREATE TABLE purchase_orders (
received INT DEFAULT 0,
received_date DATE COMMENT 'Date of first receiving',
last_received_date DATE COMMENT 'Date of most recent receiving',
received_by INT,
received_by VARCHAR(100) COMMENT 'Name of person who first received this PO line',
receiving_history JSON COMMENT 'Array of receiving records with qty, date, cost, receiving_id, and alt_po flag',
FOREIGN KEY (pid) REFERENCES products(pid),
INDEX idx_po_id (po_id),