Re: svn commit: r1646167 [1/2] - in /ofbiz/trunk: applications/accounting/webapp/accounting/WEB-INF/actions/invoice/ applications/accounting/webapp/accounting/WEB-INF/actions/reports/ applications/accounting/webapp/ap/WEB-INF/actions/invoices/ applications...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r1646167 [1/2] - in /ofbiz/trunk: applications/accounting/webapp/accounting/WEB-INF/actions/invoice/ applications/accounting/webapp/accounting/WEB-INF/actions/reports/ applications/accounting/webapp/ap/WEB-INF/actions/invoices/ applications...

Jacopo Cappellato-4
Hi Ashish,

On Dec 17, 2014, at 9:10 AM, [hidden email] wrote:

> -        totalAmount = dispatcher.runSync("getInvoiceRunningTotal", [invoiceIds: invoiceIds, organizationPartyId: organizationPartyId, userLogin: userLogin]);
> +        totalAmount = runService('getInvoiceRunningTotal', [invoiceIds: invoiceIds, organizationPartyId: organizationPartyId, userLogin: userLogin]);

the new runService method can automatically populate the userLogin field so, if you want to simply call the service as the logged in user, you can simply write:

  totalAmount = runService('getInvoiceRunningTotal', [invoiceIds: invoiceIds, organizationPartyId: organizationPartyId]);

Regards,

Jacopo

Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r1646167 [1/2] - in /ofbiz/trunk: applications/accounting/webapp/accounting/WEB-INF/actions/invoice/ applications/accounting/webapp/accounting/WEB-INF/actions/reports/ applications/accounting/webapp/ap/WEB-INF/actions/invoices/ applications...

Ashish Vijaywargiya
Very nice. Thanks for the update Jacopo!!!
We will take care of this improvement soon.

--
Kind Regards,
Ashish Vijaywargiya

On Wed, Dec 17, 2014 at 1:46 PM, Jacopo Cappellato <
[hidden email]> wrote:

>
> Hi Ashish,
>
> On Dec 17, 2014, at 9:10 AM, [hidden email] wrote:
>
> > -        totalAmount = dispatcher.runSync("getInvoiceRunningTotal",
> [invoiceIds: invoiceIds, organizationPartyId: organizationPartyId,
> userLogin: userLogin]);
> > +        totalAmount = runService('getInvoiceRunningTotal', [invoiceIds:
> invoiceIds, organizationPartyId: organizationPartyId, userLogin:
> userLogin]);
>
> the new runService method can automatically populate the userLogin field
> so, if you want to simply call the service as the logged in user, you can
> simply write:
>
>   totalAmount = runService('getInvoiceRunningTotal', [invoiceIds:
> invoiceIds, organizationPartyId: organizationPartyId]);
>
> Regards,
>
> Jacopo
>
>