EDI order template copy-id repair
authorBill Erickson <berick@esilibrary.com>
Wed, 26 Dec 2012 14:40:10 +0000 (09:40 -0500)
committerBill Erickson <berick@esilibrary.com>
Wed, 26 Dec 2012 14:40:10 +0000 (09:40 -0500)
Copy ID in the EDI order template comes from lineitem-detail not from
the lineitem.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/sql/Pg/950.data.seed-values.sql

index 2c50b16..665d5fb 100644 (file)
@@ -8184,7 +8184,7 @@ $$
                                 owning_lib => owning_lib,
                                 location => location,
                                 collection_code => collection_code,
-                                copy_id => li.id, # for INC_COPY_ID
+                                copy_id => lid.id, # for INC_COPY_ID
                                 quantity => 1
                             });
                         END;