X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ba9f2104f19d6b467dcffcaa10f6a5e63f01b64e..e1cb00366d40cc3a1b07e065b51ad39c84baf7e6:/sql/Pg-upgrade2/warehouse.pl diff --git a/sql/Pg-upgrade2/warehouse.pl b/sql/Pg-upgrade2/warehouse.pl index e205670c7..f9e59a4e5 100644 --- a/sql/Pg-upgrade2/warehouse.pl +++ b/sql/Pg-upgrade2/warehouse.pl @@ -63,8 +63,8 @@ INSERT INTO bin FROM warehouse, tmp_parts WHERE warehouse.description=$warehouse); INSERT INTO inventory - (warehouse_id, parts_id, bin_id, qty, employee_id, trans_id, trans_type_id) - (SELECT warehouse.id, tmp_parts.id, bin.id, onhand, (SELECT id FROM employee LIMIT 1), nextval('id'), transfer_type.id + (warehouse_id, parts_id, bin_id, qty, employee_id, trans_id, trans_type_id, chargenumber) + (SELECT warehouse.id, tmp_parts.id, bin.id, onhand, (SELECT id FROM employee LIMIT 1), nextval('id'), transfer_type.id, '' FROM transfer_type, warehouse, tmp_parts, bin WHERE warehouse.description = $warehouse AND COALESCE(bin, $bin) = bin.description