Files
jon/jon/db/transfer_items.sql
T
2023-08-11 14:37:51 +02:00

6 lines
322 B
SQL

INSERT INTO garfield.inventory_correction (item_id, delta, correction_comment)
VALUES (%(from_item_id)s, -%(amount)s, CONCAT('Umbuchung auf ', %(to_item_id)s));
INSERT INTO garfield.inventory_correction (item_id, delta, correction_comment)
VALUES (%(to_item_id)s, %(amount)s, CONCAT('Umbuchung von ', %(from_item_id)s));