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
>
>