jon/py/jon/db/transfer_items.sql
2023-06-30 17:20:15 +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));