Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
41df934f
Commit
41df934f
authored
Sep 12, 2024
by
Rafael Monnerat
👻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_accounting: VAT and Country are only mandatory for automated ledger
parent
e47387c5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
9 deletions
+3
-9
master/bt5/slapos_accounting/PropertySheetTemplateItem/portal_property_sheets/SlapOSSaleProfileConstraint/destination_section_country_constraint.xml
...fileConstraint/destination_section_country_constraint.xml
+1
-1
master/bt5/slapos_accounting/PropertySheetTemplateItem/portal_property_sheets/SlapOSSaleProfileConstraint/destination_section_vat_code_constraint.xml
...ileConstraint/destination_section_vat_code_constraint.xml
+1
-1
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5ManualAccountingScenario.py
...nents/test.erp5.testSlapOSERP5ManualAccountingScenario.py
+1
-7
No files found.
master/bt5/slapos_accounting/PropertySheetTemplateItem/portal_property_sheets/SlapOSSaleProfileConstraint/destination_section_country_constraint.xml
View file @
41df934f
...
...
@@ -62,7 +62,7 @@
</item>
<item>
<key>
<string>
test_tales_expression
</string>
</key>
<value>
<string>
python: context.hasSourceSection() and context.hasDestinationSection()
</string>
</value>
<value>
<string>
python: context.
getLedger() == \'automated\' and context.
hasSourceSection() and context.hasDestinationSection()
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
master/bt5/slapos_accounting/PropertySheetTemplateItem/portal_property_sheets/SlapOSSaleProfileConstraint/destination_section_vat_code_constraint.xml
View file @
41df934f
...
...
@@ -62,7 +62,7 @@
</item>
<item>
<key>
<string>
test_tales_expression
</string>
</key>
<value>
<string>
python: context.hasDestinationSection(portal_type=\'Organisation\')
</string>
</value>
<value>
<string>
python: context.
getLedger() == \'automated\' and context.
hasDestinationSection(portal_type=\'Organisation\')
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5ManualAccountingScenario.py
View file @
41df934f
...
...
@@ -48,8 +48,6 @@ class TestSlapOSManualAccountingScenario(TestSlapOSVirtualMasterScenarioMixin):
# required to generate accounting report
price_currency_value
=
currency
,
# required to calculate the vat
group
=
'company'
,
vat_code
=
'MYVATCODE'
,
default_address_region
=
'europe/west/france'
)
bank_account
=
accountant_organisation
.
newContent
(
...
...
@@ -351,11 +349,7 @@ class TestSlapOSManualAccountingScenario(TestSlapOSVirtualMasterScenarioMixin):
# Accountaint can create a hosting provider
customer
=
self
.
portal
.
organisation_module
.
newContent
(
portal_type
=
'Organisation'
,
title
=
'Customer Org. for %s'
%
accountant_person
.
getTitle
(),
# Required for issue an Sale Invoice Transaction
vat_code
=
'MYVATCODE'
,
default_address_region
=
'europe/west/france'
title
=
'Customer Org. for %s'
%
accountant_person
.
getTitle
()
)
else
:
customer
=
self
.
portal
.
person_module
.
newContent
(
...
...
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