Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Klaus Wölfel
erp5
Commits
3c48ed49
Commit
3c48ed49
authored
Nov 16, 2024
by
Klaus Wölfel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_interface_cxml: sale order cannot be planned without trade condition
parent
faa8fd0c
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
245 additions
and
12 deletions
+245
-12
bt5/erp5_interface_cxml/SkinTemplateItem/portal_skins/erp5_interface_cxml/SaleInvoiceTransaction_getInvoiceDetailRequest.xml
...e_cxml/SaleInvoiceTransaction_getInvoiceDetailRequest.xml
+58
-0
bt5/erp5_interface_cxml/SkinTemplateItem/portal_skins/erp5_interface_cxml/SaleInvoiceTransaction_getInvoiceDetailRequest.zpt
...e_cxml/SaleInvoiceTransaction_getInvoiceDetailRequest.zpt
+173
-0
bt5/erp5_interface_cxml/SkinTemplateItem/portal_skins/erp5_interface_cxml/SaleOrder_checkCxmlOrderRequestConsistency.py
...erface_cxml/SaleOrder_checkCxmlOrderRequestConsistency.py
+13
-10
bt5/erp5_interface_cxml/WorkflowTemplateItem/portal_workflow/cxml_interaction_workflow/script_SaleInvoiceTransaction_sendInvoiceDetailRequest.py
...script_SaleInvoiceTransaction_sendInvoiceDetailRequest.py
+1
-1
bt5/erp5_interface_cxml/WorkflowTemplateItem/portal_workflow/cxml_validation_workflow/script_CxmlOrderRequest_doValidateAction.py
...tion_workflow/script_CxmlOrderRequest_doValidateAction.py
+0
-1
No files found.
bt5/erp5_interface_cxml/SkinTemplateItem/portal_skins/erp5_interface_cxml/SaleInvoiceTransaction_getInvoiceDetailRequest.xml
0 → 100644
View file @
3c48ed49
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ZopePageTemplate"
module=
"Products.PageTemplates.ZopePageTemplate"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/xml
</string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
SaleInvoiceTransaction_getInvoiceDetailRequest
</string>
</value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
<value>
<string>
utf-8
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<unicode></unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_interface_cxml/SkinTemplateItem/portal_skins/erp5_interface_cxml/SaleInvoiceTransaction_getInvoiceDetailRequest.zpt
0 → 100644
View file @
3c48ed49
This diff is collapsed.
Click to expand it.
bt5/erp5_interface_cxml/SkinTemplateItem/portal_skins/erp5_interface_cxml/SaleOrder_checkCxmlOrderRequestConsistency.py
View file @
3c48ed49
...
...
@@ -119,8 +119,10 @@ def createSaleOrderLine(property_dict):
try
:
resource_reference
=
property_dict
.
pop
(
"resource_reference"
)
except
KeyError
:
resource_reference
=
None
if
not
resource_reference
:
try
:
reference
=
property_dict
.
pop
(
'resource'
)[
'destination_reference'
]
reference
=
property_dict
.
pop
(
'resource'
)[
'de
fault_sale_supply_line_de
stination_reference'
]
except
KeyError
:
pass
else
:
...
...
@@ -225,15 +227,16 @@ for i, line in enumerate(line_list):
))
break
# for Sale Packing List also check that int_index is defined on related Sale Order Lines
for
i
,
line
in
enumerate
(
line_list
):
if
line
.
DeliveryLine_getOrderLineIntIndex
()
is
None
:
#if fixit:
# line.setIntIndex(i)
#else:
error_list
.
append
(
translate
(
"Sort Index must be defined on all lines the related Sale Order."
))
# for Sale Packing List and Sale Invoice also check that int_index is defined on related Sale Order Lines
if
context
.
getPortalType
()
in
(
"Sale Packing List"
,
"Sale Invoice Transaction"
):
for
i
,
line
in
enumerate
(
line_list
):
if
line
.
DeliveryLine_getOrderLineIntIndex
()
is
None
:
#if fixit:
# line.setIntIndex(i)
#else:
error_list
.
append
(
translate
(
"Sort Index must be defined on all lines of the related Sale Order."
))
if
line_portal_type
==
"Sale Order Line"
:
index_method
=
"getIntIndex"
...
...
bt5/erp5_interface_cxml/WorkflowTemplateItem/portal_workflow/cxml_interaction_workflow/script_SaleInvoiceTransaction_sendInvoiceDetailRequest.py
View file @
3c48ed49
...
...
@@ -3,6 +3,6 @@ context = state_change['object']
# a Sale Order which is related to a valid Cxml Order Request
if
not
context
.
Base_isCxmlRelated
():
return
text_content
=
context
.
SaleInvoiceTranaction_getInvoiceDetailRequest
().
encode
(
'utf-8'
)
text_content
=
context
.
SaleInvoiceTran
s
action_getInvoiceDetailRequest
().
encode
(
'utf-8'
)
connector
=
context
.
Base_getCxmlConnectorValueForSale
()
connector
.
sendOutgoingRequest
(
text_content
,
follow_up
=
context
.
getRelativeUrl
())
bt5/erp5_interface_cxml/WorkflowTemplateItem/portal_workflow/cxml_validation_workflow/script_CxmlOrderRequest_doValidateAction.py
View file @
3c48ed49
...
...
@@ -18,7 +18,6 @@ if state_change.kwargs.get('create_sale_order'):
if
sale_order_value
.
getSimulationState
()
==
"draft"
:
sale_order_value
.
SaleOrder_checkCxmlOrderRequestConsistency
(
fixit
=
True
,
order_request_value
=
context
)
sale_order_value
.
SaleOrder_cxmlInit
()
sale_order_value
.
plan
()
else
:
sale_order_value
=
context
.
getFollowUpValue
()
if
sale_order_value
is
None
:
...
...
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