From 3680d550c7991141aa75ebaebda32343c5393733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Tue, 4 Aug 2020 09:56:02 +0800 Subject: [PATCH] Added a movie to the accounting_sample command in the accounting application. --- accounting/management/commands/accounting_sample.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/accounting/management/commands/accounting_sample.py b/accounting/management/commands/accounting_sample.py index 019ec57..f87ed0b 100644 --- a/accounting/management/commands/accounting_sample.py +++ b/accounting/management/commands/accounting_sample.py @@ -157,11 +157,19 @@ class Command(BaseCommand): -14, ((6273, "電影—復仇者聯盟", 80),), ((2141, "電影—復仇者聯盟", 80),)) + p.add_transfer_transaction( + -13, + ((6273, "電影—2001太空漫遊", 80),), + ((2141, "電影—2001太空漫遊", 80),)) p.add_transfer_transaction( -11, ((2141, "電影—復仇者聯盟", 80),), ((1113, "電影—復仇者聯盟", 80),)) + p.add_expense_transaction( + -13, + ((6273, "公車—262—民生社區→頂溪捷運站", 30),)) + p.add_expense_transaction( -2, ((6272, "午餐—排骨飯", random.randint(40, 200)),