Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sage Validation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
Sage Validation
Commits
e17906e5
Commit
e17906e5
authored
1 month ago
by
Neda Moeini
Browse files
Options
Downloads
Patches
Plain Diff
Update Models to sync with MEO DB
parent
d1cb4b7b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sage_validation/file_validator/models.py
+20
-37
20 additions, 37 deletions
sage_validation/file_validator/models.py
with
20 additions
and
37 deletions
sage_validation/file_validator/models.py
+
20
−
37
View file @
e17906e5
...
...
@@ -2,24 +2,7 @@
from
django.db
import
models
class
PlAccountCodes
(
models
.
Model
):
"""
Represents profit and loss (PL) account codes.
This model maps the PL account names to their respective codes.
"""
objects
=
None
pl_account_name
=
models
.
TextField
(
db_column
=
"
PL_Account_Name
"
)
pl_account_code
=
models
.
CharField
(
db_column
=
"
PL_Account_Code
"
,
primary_key
=
True
,
max_length
=
50
)
class
Meta
:
"""
Metaclass for the PlAccountCodes model.
"""
managed
=
False
db_table
=
"
PL_Account_Codes
"
class
Meocostcentres
(
models
.
Model
):
class
MeoCostCentres
(
models
.
Model
):
"""
Represents cost centres.
This model contains data related to cost centres,
...
...
@@ -28,68 +11,68 @@ class Meocostcentres(models.Model):
cc
=
models
.
CharField
(
db_column
=
"
CC
"
,
max_length
=
3
)
cc_name
=
models
.
CharField
(
db_column
=
"
CC_Name
"
,
max_length
=
50
,
blank
=
True
,
null
=
True
)
cctype
=
models
.
CharField
(
db_column
=
"
CCType
"
,
max_length
=
8
)
cc
_
type
=
models
.
CharField
(
db_column
=
"
CCType
"
,
max_length
=
8
)
id
=
models
.
IntegerField
(
db_column
=
"
ID
"
,
primary_key
=
True
)
class
Meta
:
"""
Metaclass for the Meo
c
ost
c
entres model.
"""
"""
Metaclass for the Meo
C
ost
C
entres model.
"""
managed
=
False
db_table
=
"
meoCostCentres
"
class
Meo
n
ominal
(
models
.
Model
):
class
Meo
N
ominal
(
models
.
Model
):
"""
View for MEO nominal codes.
"""
nom
=
models
.
CharField
(
db_column
=
"
Nom
"
,
max_length
=
5
)
nomname
=
models
.
CharField
(
db_column
=
"
NomName
"
,
max_length
=
60
,
blank
=
True
,
null
=
True
)
nomid
=
models
.
IntegerField
(
db_column
=
"
NomID
"
)
nom
_
name
=
models
.
CharField
(
db_column
=
"
NomName
"
,
max_length
=
60
,
blank
=
True
,
null
=
True
)
nom
_
id
=
models
.
IntegerField
(
db_column
=
"
NomID
"
)
class
Meta
:
"""
Metaclass for the Meo
n
ominal model.
"""
"""
Metaclass for the Meo
N
ominal model.
"""
managed
=
False
db_table
=
"
meoNominal
"
class
Meo
v
alid
s
age
a
ccounts
(
models
.
Model
):
class
Meo
V
alid
S
age
A
ccounts
(
models
.
Model
):
"""
View for MEO valid Sage accounts.
"""
accountname
=
models
.
CharField
(
db_column
=
"
AccountName
"
,
max_length
=
60
)
accountnumber
=
models
.
CharField
(
db_column
=
"
AccountNumber
"
,
max_length
=
8
,
blank
=
True
,
null
=
True
)
accountcostcentre
=
models
.
CharField
(
db_column
=
"
AccountCostCentre
"
,
max_length
=
3
,
blank
=
True
,
null
=
True
)
accountdepartment
=
models
.
CharField
(
db_column
=
"
AccountDepartment
"
,
max_length
=
3
,
blank
=
True
,
null
=
True
)
account
_
name
=
models
.
CharField
(
db_column
=
"
AccountName
"
,
max_length
=
60
)
account
_
number
=
models
.
CharField
(
db_column
=
"
AccountNumber
"
,
max_length
=
8
,
blank
=
True
,
null
=
True
)
account
_
cost
_
centre
=
models
.
CharField
(
db_column
=
"
AccountCostCentre
"
,
max_length
=
3
,
blank
=
True
,
null
=
True
)
account
_
department
=
models
.
CharField
(
db_column
=
"
AccountDepartment
"
,
max_length
=
3
,
blank
=
True
,
null
=
True
)
class
Meta
:
"""
Metaclass for the Meo
v
alid
s
age
a
ccounts model.
"""
"""
Metaclass for the Meo
V
alid
S
age
A
ccounts model.
"""
managed
=
False
db_table
=
"
meoValidSageAccounts
"
class
Meo
v
alid
s
uppliers
(
models
.
Model
):
class
Meo
V
alid
S
uppliers
(
models
.
Model
):
"""
View for MEO valid suppliers.
"""
supplieraccountnumber
=
models
.
CharField
(
db_column
=
"
SupplierAccountNumber
"
,
max_length
=
8
)
supplieraccountname
=
models
.
CharField
(
db_column
=
"
SupplierAccountName
"
,
max_length
=
60
)
supplier
_
account
_
number
=
models
.
CharField
(
db_column
=
"
SupplierAccountNumber
"
,
max_length
=
8
,
primary_key
=
True
)
supplier
_
account
_
name
=
models
.
CharField
(
db_column
=
"
SupplierAccountName
"
,
max_length
=
60
)
class
Meta
:
"""
Metaclass for the Meo
v
alid
s
uppliers model.
"""
"""
Metaclass for the Meo
V
alid
S
uppliers model.
"""
managed
=
False
db_table
=
"
meoValidSuppliers
"
class
Meo
v
alid
v
at
(
models
.
Model
):
class
Meo
V
alid
V
at
(
models
.
Model
):
"""
View for MEO valid VAT codes.
"""
tax_code
=
models
.
SmallIntegerField
(
db_column
=
"
Tax code
"
)
tax_code_label
=
models
.
CharField
(
db_column
=
"
tax code label
"
,
max_length
=
60
)
rate
=
models
.
DecimalField
(
db_column
=
"
Rate
"
,
max_digits
=
18
,
decimal_places
=
2
)
inputnominalaccount
=
models
.
CharField
(
db_column
=
"
InputNominalAccount
"
,
max_length
=
8
,
blank
=
True
,
null
=
True
)
input
_
nominal
_
account
=
models
.
CharField
(
db_column
=
"
InputNominalAccount
"
,
max_length
=
8
,
blank
=
True
,
null
=
True
)
class
Meta
:
"""
Metaclass for the Meo
v
alid
v
at model.
"""
"""
Metaclass for the Meo
V
alid
V
at model.
"""
managed
=
False
db_table
=
"
meoValidVAT
"
...
...
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