Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
third-party
Commits
a9f292ef
Commit
a9f292ef
authored
Mar 05, 2023
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MonA not found bug
parent
65a641f0
Pipeline
#2612
failed with stage
in 1 minute 57 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
views.py
outils/views.py
+2
-1
No files found.
outils/views.py
View file @
a9f292ef
...
@@ -199,6 +199,7 @@ class ExportPOS(View):
...
@@ -199,6 +199,7 @@ class ExportPOS(View):
'TOTAL'
:
0
}
'TOTAL'
:
0
}
sub_total
=
0
sub_total
=
0
cb
=
chq
=
csh
=
cbd
=
chqd
=
mona
=
0
cb
=
chq
=
csh
=
cbd
=
chqd
=
mona
=
0
coop_logger
.
info
(
"payments :
%
s"
,
s
[
'payments'
])
for
p
in
s
[
'payments'
]:
for
p
in
s
[
'payments'
]:
# p['name'] is a sequence generated string
# p['name'] is a sequence generated string
# Test order is important as CHEQDEJ contains CHEQ for ex.
# Test order is important as CHEQDEJ contains CHEQ for ex.
...
@@ -214,7 +215,7 @@ class ExportPOS(View):
...
@@ -214,7 +215,7 @@ class ExportPOS(View):
cbd
=
sub_amount
cbd
=
sub_amount
elif
'CB'
in
p
[
'name'
]:
elif
'CB'
in
p
[
'name'
]:
cb
=
sub_amount
cb
=
sub_amount
elif
'MonA'
in
p
[
'name'
]:
elif
'MonA'
in
p
[
'name'
]
or
'MonA'
in
p
[
'journal'
]
:
mona
=
sub_amount
mona
=
sub_amount
sub_total
+=
sub_amount
sub_total
+=
sub_amount
totals
[
key
][
'CB'
]
+=
cb
totals
[
key
][
'CB'
]
+=
cb
...
...
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