Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aeb43
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tryton
aeb43
Commits
733b0c26a4e1
Commit
733b0c26a4e1
authored
4 months ago
by
Sergi Almacellas Abellana
Browse files
Options
Downloads
Patches
Plain Diff
Cast document number as integer
Closes
#1
parent
3a5e25f83de3
No related branches found
No related tags found
1 merge request
!3
Cast document number as integer
Pipeline
#90271
passed
4 months ago
Stage: check
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.rst
+1
-1
1 addition, 1 deletion
README.rst
aeb43/__init__.py
+1
-1
1 addition, 1 deletion
aeb43/__init__.py
aeb43/test.py
+1
-1
1 addition, 1 deletion
aeb43/test.py
with
3 additions
and
3 deletions
README.rst
+
1
−
1
View file @
733b0c26
...
...
@@ -49,7 +49,7 @@
>>> transaction.own_item
'408'
>>> transaction.document
'0000000000'
0
>>> transaction.reference1
'000000000000'
>>> transaction.reference2
...
...
This diff is collapsed.
Click to expand it.
aeb43/__init__.py
+
1
−
1
View file @
733b0c26
...
...
@@ -91,7 +91,7 @@
'
2
'
:
1
,
}[
line
[
27
]]
transaction
.
amount
=
sign
*
Decimal
(
line
[
28
:
42
])
/
100
transaction
.
document
=
line
[
42
:
52
]
transaction
.
document
=
int
(
line
[
42
:
52
]
)
transaction
.
reference1
=
line
[
52
:
64
]
transaction
.
reference2
=
line
[
64
:
80
]
...
...
This diff is collapsed.
Click to expand it.
aeb43/test.py
+
1
−
1
View file @
733b0c26
...
...
@@ -53,7 +53,7 @@
self
.
assertEqual
(
transaction
.
shared_item
,
'
12
'
)
self
.
assertEqual
(
transaction
.
own_item
,
'
408
'
)
self
.
assertEqual
(
transaction
.
amount
,
Decimal
(
'
-10.98
'
))
self
.
assertEqual
(
transaction
.
document
,
'
0
'
*
1
0
)
self
.
assertEqual
(
transaction
.
document
,
0
)
self
.
assertEqual
(
transaction
.
reference1
,
'
0
'
*
12
)
self
.
assertEqual
(
transaction
.
reference2
,
'
5540014387733014
'
)
self
.
assertEqual
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment