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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Franck
erp5
Commits
368c536d
Commit
368c536d
authored
Jan 16, 2017
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_payment_mean: add 'ledger' domain tree to PaymentTransactionGroup_view
parent
0254eb66
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
9 deletions
+29
-9
bt5/erp5_payment_mean/SkinTemplateItem/portal_skins/erp5_payment_mean/PaymentTransactionGroup_countPaymentTransactionLine.py
...an/PaymentTransactionGroup_countPaymentTransactionLine.py
+1
-1
bt5/erp5_payment_mean/SkinTemplateItem/portal_skins/erp5_payment_mean/PaymentTransactionGroup_getPaymentTransactionLineCountAndStat.py
...TransactionGroup_getPaymentTransactionLineCountAndStat.py
+2
-0
bt5/erp5_payment_mean/SkinTemplateItem/portal_skins/erp5_payment_mean/PaymentTransactionGroup_getPaymentTransactionLineCountAndStat.xml
...ransactionGroup_getPaymentTransactionLineCountAndStat.xml
+1
-1
bt5/erp5_payment_mean/SkinTemplateItem/portal_skins/erp5_payment_mean/PaymentTransactionGroup_getPaymentTransactionLineList.py
.../PaymentTransactionGroup_getPaymentTransactionLineList.py
+3
-6
bt5/erp5_payment_mean/SkinTemplateItem/portal_skins/erp5_payment_mean/PaymentTransactionGroup_statPaymentTransactionLineList.py
...PaymentTransactionGroup_statPaymentTransactionLineList.py
+1
-1
bt5/erp5_payment_mean/SkinTemplateItem/portal_skins/erp5_payment_mean/PaymentTransactionGroup_view/listbox.xml
...rp5_payment_mean/PaymentTransactionGroup_view/listbox.xml
+21
-0
No files found.
bt5/erp5_payment_mean/SkinTemplateItem/portal_skins/erp5_payment_mean/PaymentTransactionGroup_countPaymentTransactionLine.py
View file @
368c536d
count
,
_
=
context
.
PaymentTransactionGroup_getPaymentTransactionLineCountAndStat
()
count
,
_
=
context
.
PaymentTransactionGroup_getPaymentTransactionLineCountAndStat
(
kw
.
get
(
'selection_name'
)
)
return
((
count
,
),
)
bt5/erp5_payment_mean/SkinTemplateItem/portal_skins/erp5_payment_mean/PaymentTransactionGroup_getPaymentTransactionLineCountAndStat.py
View file @
368c536d
...
...
@@ -4,6 +4,7 @@ cache_key = context.getId() + '_' + script.id
try
:
return
cache
[
cache_key
]
except
KeyError
:
params
=
{
'selection_domain'
:
context
.
portal_selections
.
getSelectionDomainDictFor
(
selection_name
)}
if
selection_name
else
{}
row
,
=
portal
.
portal_simulation
.
getInventoryList
(
select_dict
=
{
'count'
:
'COUNT(*)'
},
ignore_group_by
=
1
,
...
...
@@ -13,6 +14,7 @@ except KeyError:
portal_type
=
'Account'
,
strict_account_type_uid
=
portal
.
portal_categories
.
account_type
.
asset
.
cash
.
bank
.
getUid
(),
)],
**
params
)
cache
[
cache_key
]
=
result
=
(
row
.
count
,
row
.
total_quantity
)
return
result
bt5/erp5_payment_mean/SkinTemplateItem/portal_skins/erp5_payment_mean/PaymentTransactionGroup_getPaymentTransactionLineCountAndStat.xml
View file @
368c536d
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
<value>
<string>
selection_name=None
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_payment_mean/SkinTemplateItem/portal_skins/erp5_payment_mean/PaymentTransactionGroup_getPaymentTransactionLineList.py
View file @
368c536d
portal
=
context
.
getPortalObject
()
kw
.
update
({
'parent_portal_type'
:
'Payment Transaction'
,
'section_uid'
:
context
.
getSourceSectionUid
(),
'default_aggregate_uid'
:
context
.
getUid
(),
})
kw
[
'section_uid'
]
=
context
.
getSourceSectionUid
()
kw
[
'default_aggregate_uid'
]
=
context
.
getUid
()
kw
[
'parent_portal_type'
]
=
(
'Payment Transaction'
,
'Accounting Transaction'
)
if
context
.
getSourcePayment
():
precision
=
context
.
getQuantityPrecisionFromResource
(
context
.
getSourcePaymentValue
().
getPriceCurrency
())
portal
.
REQUEST
.
set
(
'precision'
,
precision
)
return
portal
.
portal_simulation
.
getMovementHistoryList
(
**
kw
)
bt5/erp5_payment_mean/SkinTemplateItem/portal_skins/erp5_payment_mean/PaymentTransactionGroup_statPaymentTransactionLineList.py
View file @
368c536d
from
Products.PythonScripts.standard
import
Object
_
,
total_quantity
=
context
.
PaymentTransactionGroup_getPaymentTransactionLineCountAndStat
()
_
,
total_quantity
=
context
.
PaymentTransactionGroup_getPaymentTransactionLineCountAndStat
(
kw
.
get
(
'selection_name'
)
)
return
Object
(
total_quantity
=
total_quantity
),
bt5/erp5_payment_mean/SkinTemplateItem/portal_skins/erp5_payment_mean/PaymentTransactionGroup_view/listbox.xml
View file @
368c536d
...
...
@@ -12,6 +12,8 @@
<list>
<string>
columns
</string>
<string>
count_method
</string>
<string>
domain_root_list
</string>
<string>
domain_tree
</string>
<string>
list_method
</string>
<string>
selection_name
</string>
<string>
stat_method
</string>
...
...
@@ -124,6 +126,10 @@
<string>
total_quantity
</string>
<string>
Quantity
</string>
</tuple>
<tuple>
<string>
ledger_translated_title
</string>
<string>
Ledger
</string>
</tuple>
<tuple>
<string>
getTranslatedSimulationStateTitle
</string>
<string>
State
</string>
...
...
@@ -141,6 +147,21 @@
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
domain_root_list
</string>
</key>
<value>
<list>
<tuple>
<string>
ledger
</string>
<string>
Ledger
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
domain_tree
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_view_mode_listbox
</string>
</value>
...
...
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