Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AE UTBM
Sith
Commits
93211d8a
Commit
93211d8a
authored
Dec 21, 2016
by
Krophil
Committed by
Skia
Dec 21, 2016
Browse files
operations added in populate
parent
1457a7bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/management/commands/populate.py
View file @
93211d8a
...
...
@@ -295,10 +295,17 @@ Cette page vise à documenter la syntaxe *Markdown* utilisée sur le site.
ca
.
save
()
gj
=
GeneralJournal
(
name
=
"A16"
,
start_date
=
date
.
today
(),
club_account
=
ca
)
gj
.
save
()
credit
=
AccountingType
(
code
=
74
,
label
=
"Someone gave us money"
,
movement_type
=
'CREDIT'
)
credit
=
AccountingType
(
code
=
'
74
'
,
label
=
"Someone gave us money"
,
movement_type
=
'CREDIT'
)
credit
.
save
()
debit
=
AccountingType
(
code
=
607
,
label
=
"Had to pay a beer"
,
movement_type
=
'DEBIT'
)
debit
=
AccountingType
(
code
=
'
607
'
,
label
=
"Had to pay a beer"
,
movement_type
=
'DEBIT'
)
debit
.
save
()
t
=
AccountingType
(
code
=
'602'
,
label
=
"Gros test de malade"
,
movement_type
=
'DEBIT'
)
t
.
save
()
Operation
(
journal
=
gj
,
date
=
date
.
today
(),
amount
=
32.3
,
remark
=
"..."
,
mode
=
"CASH"
,
done
=
True
,
accounting_type
=
t
,
target_type
=
"USER"
,
target_id
=
skia
.
id
).
save
()
t
=
AccountingType
(
code
=
'60'
,
label
=
"..."
,
movement_type
=
'DEBIT'
)
t
.
save
()
Operation
(
journal
=
gj
,
date
=
date
.
today
(),
amount
=
32.3
,
remark
=
"..."
,
mode
=
"CASH"
,
done
=
True
,
accounting_type
=
t
,
target_type
=
"USER"
,
target_id
=
skia
.
id
).
save
()
Operation
(
journal
=
gj
,
date
=
date
.
today
(),
amount
=
46.42
,
remark
=
"An answer to life..."
,
mode
=
"CASH"
,
done
=
True
,
accounting_type
=
t
,
target_type
=
"USER"
,
target_id
=
skia
.
id
).
save
()
Operation
(
journal
=
gj
,
date
=
date
.
today
(),
amount
=
666.42
,
remark
=
"An answer to life..."
,
mode
=
"CASH"
,
done
=
True
,
accounting_type
=
credit
,
target_type
=
"USER"
,
target_id
=
skia
.
id
).
save
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment