Commit f519499a authored by Georgios Dagkakis's avatar Georgios Dagkakis

erp5_payment_mean: rename PythonScripts

Methods used in PaymentTransactionGroup_view

Always returned Accounting Transaction Lines
(there is no Payment Transaction Line portal type) that were sub-objects of
Payment Transactions. But now they can be also sub-objects of
Accounting Transactions.

So used '...AccountingTransactionLine...' instead of
'...PaymentTransactionLine...'
parent 368c536d
count, _ = context.PaymentTransactionGroup_getAccountingTransactionLineCountAndStat(kw.get('selection_name'))
return ((count, ), )
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>PaymentTransactionGroup_getPaymentTransactionLineList</string> </value>
<value> <string>PaymentTransactionGroup_countAccountingTransactionLine</string> </value>
</item>
</dictionary>
</pickle>
......
count, _ = context.PaymentTransactionGroup_getPaymentTransactionLineCountAndStat(kw.get('selection_name'))
return ((count, ), )
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>PaymentTransactionGroup_getPaymentTransactionLineCountAndStat</string> </value>
<value> <string>PaymentTransactionGroup_getAccountingTransactionLineCountAndStat</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>PaymentTransactionGroup_countPaymentTransactionLine</string> </value>
<value> <string>PaymentTransactionGroup_getAccountingTransactionLineList</string> </value>
</item>
</dictionary>
</pickle>
......
from Products.PythonScripts.standard import Object
_, total_quantity = context.PaymentTransactionGroup_getPaymentTransactionLineCountAndStat(kw.get('selection_name'))
_, total_quantity = context.PaymentTransactionGroup_getAccountingTransactionLineCountAndStat(kw.get('selection_name'))
return Object(total_quantity=total_quantity),
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>PaymentTransactionGroup_statPaymentTransactionLineList</string> </value>
<value> <string>PaymentTransactionGroup_statAccountingTransactionLineList</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -208,7 +208,7 @@
<dictionary>
<item>
<key> <string>method_name</string> </key>
<value> <string>PaymentTransactionGroup_countPaymentTransactionLine</string> </value>
<value> <string>PaymentTransactionGroup_countAccountingTransactionLine</string> </value>
</item>
</dictionary>
</pickle>
......@@ -221,7 +221,7 @@
<dictionary>
<item>
<key> <string>method_name</string> </key>
<value> <string>PaymentTransactionGroup_getPaymentTransactionLineList</string> </value>
<value> <string>PaymentTransactionGroup_getAccountingTransactionLineList</string> </value>
</item>
</dictionary>
</pickle>
......@@ -234,7 +234,7 @@
<dictionary>
<item>
<key> <string>method_name</string> </key>
<value> <string>PaymentTransactionGroup_statPaymentTransactionLineList</string> </value>
<value> <string>PaymentTransactionGroup_statAccountingTransactionLineList</string> </value>
</item>
</dictionary>
</pickle>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment