[
https://issues.apache.org/jira/browse/OFBIZ-11490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17164830#comment-17164830
]
Sourabh Punyani commented on OFBIZ-11490:
-----------------------------------------
Hello All,
I have been trying to convert this service
createPaymentAndPaymentGroupForInvoices from xml to groovy.
This is the service definition:
{code:xml}
<service name="createPaymentAndPaymentGroupForInvoices" engine="simple"
location="component://accounting/minilang/payment/PaymentServices.xml"
invoke="createPaymentAndPaymentGroupForInvoices" auth="true">
<description>Creates Payments, Payment Application and Payment Group
for the same</description>
<attribute name="organizationPartyId" type="String" mode="IN"
optional="false"/>
<attribute name="checkStartNumber" type="Long" mode="IN"
optional="true"/>
<attribute name="invoiceIds" type="List" mode="IN" optional="false"/>
<attribute name="paymentMethodTypeId" type="String" mode="IN"
optional="true"/>
<attribute name="paymentMethodId" type="String" mode="IN"
optional="false"/>
<attribute name="paymentGroupId" type="String" mode="OUT"
optional="true"/>
<attribute name="errorMessage" type="String" optional="true"
mode="OUT"/>
</service>
{code}
I am trying to figure out this piece of code
{code:xml}
<set field="invoices" from-field="partyInvoices.${invoice.partyIdFrom}"/>
<field-to-list field="invoice" list="invoices"/>
<set field="partyInvoices.${invoice.partyIdFrom}" from-field="invoices"/>
{code}
Here, partyInvoices is not fetched in this service, neither it is coming from
service IN parameters.
It would be great if anyone could look into this and let me know what I am
missing here.
> Convert createPaymentAndPaymentGroupForInvoices service from mini-lang to
> groovy DSL
> ------------------------------------------------------------------------------------
>
> Key: OFBIZ-11490
> URL: https://issues.apache.org/jira/browse/OFBIZ-11490
> Project: OFBiz
> Issue Type: Sub-task
> Components: accounting
> Affects Versions: Trunk
> Reporter: Devanshu Vyas
> Assignee: Sourabh Punyani
> Priority: Minor
>
> Convert the createPaymentAndPaymentGroupForInvoices service code from
> mini-lang to groovy DSL.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)