Re: url encoding of java string in freemarker template file

2017-07-25 Thread Deepak Dixit
You can refer UtilCodec class

requestUrl = UtilCodec.getDecoder("url").encode(requestUrl);

requestUrl = UtilCodec.getDecoder("url").decode(requestUrl);


Thanks & Regards
--
Deepak Dixit
www.hotwaxsystems.com
www.hotwax.co

On Wed, Jul 26, 2017 at 10:40 AM, Taher Alkhateeb <
slidingfilame...@gmail.com> wrote:

> I'm not sure there is a problem? FreeMarker is doing exactly what
> you're telling it to do by escaping any URL characters. This behavior
> is well documented [1]
>
> So I guess the question is, why and in what context are you using the
> url() built-in for.
>
> [1] http://freemarker.org/docs/ref_builtins_string.html#ref_builtin_url
>
> On Wed, Jul 26, 2017 at 5:04 AM, Wai  wrote:
> > In a freemarker template, I have the following. Of course, it can also
> come
> > from a java method.
> > <#assign
> > test=Static["java.lang.String"].format("http://example.com/page?a=1=2;)
> >
> > result1=${test}
> > result2=${test?url('utf-8')}
> >
> > The output to the webbrowser shows...
> > result1=http://example.com/page?a=1=2
> > result2=http%26%23x3a%3B%26%23x2f%3B%26%23x2f%3Bexample.
> com%26%23x2f%3Bpage%26%23x3f%3Ba%26%23x3d%3B1%26amp%3Bb%26%23x3d%3B2
> >
> > I'm interesting in the following correct output...
> > result1=http://example.com/page?a=1=2
> > result2=http%3A%2F%2Fexample.com%2Fpage%3Fa%3D1%26b%3D2
> >
> >
> > Could someone tell me what is the problem and how to solve it.
> > Thanks in advance.
> >
> >
> >
> >
> > --
> > View this message in context: http://ofbiz.135035.n4.nabble.
> com/url-encoding-of-java-string-in-freemarker-template-file-tp4708874.html
> > Sent from the OFBiz - User mailing list archive at Nabble.com.
>


Re: url encoding of java string in freemarker template file

2017-07-25 Thread Taher Alkhateeb
I'm not sure there is a problem? FreeMarker is doing exactly what
you're telling it to do by escaping any URL characters. This behavior
is well documented [1]

So I guess the question is, why and in what context are you using the
url() built-in for.

[1] http://freemarker.org/docs/ref_builtins_string.html#ref_builtin_url

On Wed, Jul 26, 2017 at 5:04 AM, Wai  wrote:
> In a freemarker template, I have the following. Of course, it can also come
> from a java method.
> <#assign
> test=Static["java.lang.String"].format("http://example.com/page?a=1=2;) >
> result1=${test}
> result2=${test?url('utf-8')}
>
> The output to the webbrowser shows...
> result1=http://example.com/page?a=1=2
> result2=http%26%23x3a%3B%26%23x2f%3B%26%23x2f%3Bexample.com%26%23x2f%3Bpage%26%23x3f%3Ba%26%23x3d%3B1%26amp%3Bb%26%23x3d%3B2
>
> I'm interesting in the following correct output...
> result1=http://example.com/page?a=1=2
> result2=http%3A%2F%2Fexample.com%2Fpage%3Fa%3D1%26b%3D2
>
>
> Could someone tell me what is the problem and how to solve it.
> Thanks in advance.
>
>
>
>
> --
> View this message in context: 
> http://ofbiz.135035.n4.nabble.com/url-encoding-of-java-string-in-freemarker-template-file-tp4708874.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Request to Become a Contributor

2017-07-25 Thread Anushi Gupta
Thank you, Ashish :)

Best,
Anushi Gupta

On Tue, Jul 25, 2017 at 6:49 PM, Ashish Vijaywargiya <
ashish.vijaywarg...@hotwaxsystems.com> wrote:

> Done, Thanks Anushi! Please check - https://cwiki.apache.org/con
> fluence/x/AIRMAg
>
> Kind Regards
> Ashish Vijaywargiya
> HotWax Systems - est. 1997 
>
>
> On Mon, Jul 24, 2017 at 9:56 AM, Anushi Gupta <
> anushi.gu...@hotwaxsystems.com> wrote:
>
> > Hello,
> >
> > Please register me as an OFBIz Contributor.
> >
> > My account details are as follows:
> >
> > Full Name: Anushi Gupta
> > User Name: anushi.gupta10
> > Email: anushi.gu...@hotwaxsystems.com
> >
> > I have signed the ICLA:
> > https://people.apache.org/unlistedclas.html
> >
> > Thanks and Regards,
> > Anushi Gupta
> >
>


url encoding of java string in freemarker template file

2017-07-25 Thread Wai
In a freemarker template, I have the following. Of course, it can also come
from a java method.
<#assign
test=Static["java.lang.String"].format("http://example.com/page?a=1=2;) >
result1=${test}
result2=${test?url('utf-8')}

The output to the webbrowser shows...
result1=http://example.com/page?a=1=2
result2=http%26%23x3a%3B%26%23x2f%3B%26%23x2f%3Bexample.com%26%23x2f%3Bpage%26%23x3f%3Ba%26%23x3d%3B1%26amp%3Bb%26%23x3d%3B2
 

I'm interesting in the following correct output...
result1=http://example.com/page?a=1=2
result2=http%3A%2F%2Fexample.com%2Fpage%3Fa%3D1%26b%3D2


Could someone tell me what is the problem and how to solve it.
Thanks in advance.




--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/url-encoding-of-java-string-in-freemarker-template-file-tp4708874.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Request to Become a Contributor

2017-07-25 Thread Ujjawal Solanki
Thanks, Ashish Sir :)

On Tue, Jul 25, 2017 at 6:49 PM, Ashish Vijaywargiya <
ashish.vijaywarg...@hotwaxsystems.com> wrote:

> Done, Thanks Ujjawal! Please check - https://cwiki.apache.org/con
> fluence/x/AIRMAg
>
> Kind Regards
> Ashish Vijaywargiya
> HotWax Systems - est. 1997 
>
>
> On Mon, Jul 24, 2017 at 9:25 AM, Ujjawal Solanki <
> ujjawal.sola...@hotwaxsystems.com> wrote:
>
> > Hello,
> >
> > Please register me as an OFBiz Contributor.
> >
> > My account details are as follows:
> > Full Name: Ujjawal Solanki
> > User Name: ujjawal.solanki77
> > Email: ujjawal...@gmail.com
> >
> > I have signed the ICLA:
> > https://people.apache.org/unlistedclas.html
> >
> > Thanks and Regards,
> > Ujjawal Solanki
> >
>


Re: Request to Become a Contributor

2017-07-25 Thread Garima Jain
Thank you, Ashish

On Tue, Jul 25, 2017 at 6:49 PM, Ashish Vijaywargiya <
ashish.vijaywarg...@hotwaxsystems.com> wrote:

> Done, Thanks Garima! Please check - https://cwiki.apache.org/con
> fluence/x/AIRMAg
>
> Kind Regards
> Ashish Vijaywargiya
> HotWax Systems - est. 1997 
>
>
> On Mon, Jul 24, 2017 at 9:06 AM, Garima Jain 
> wrote:
>
> > Hello,
> >
> > Please register me as an OFBiz Contributor.
> >
> > My account details are as follows:
> >
> > Full Name: Garima Jain
> > User Name: garima.jain
> > Email: jaingarima2...@gmail.com
> >
> > I have signed the ICLA:
> > https://people.apache.org/unlistedclas.html
> >
> >
> > *Kind Regards*
> > Garima Jain
> > Indore
> >
>


*Kind Regards*
Garima Jain
  Indore


Re: Request to Become a Contributor

2017-07-25 Thread Dhaval Wagela
Thank you :)

On Tue, Jul 25, 2017 at 6:49 PM, Ashish Vijaywargiya <
ashish.vijaywarg...@hotwaxsystems.com> wrote:

> Done, Thanks Dhaval! Please check - https://cwiki.apache.org/
> confluence/x/AIRMAg
>
> Kind Regards
> Ashish Vijaywargiya
> HotWax Systems - est. 1997 
>
>
> On Mon, Jul 24, 2017 at 8:55 AM, Dhaval Wagela <
> dhaval.wag...@hotwaxsystems.com> wrote:
>
> > Hello,
> >
> > Please register me as an OFBiz Contributor.
> >
> > My account details are as follows:
> > Full Name: Dhaval Wagela
> > User Name: dhaval.wagela
> > Email: dhaval.wag...@hotwaxsystems.com
> >
> > I have signed the ICLA:
> > https://people.apache.org/unlistedclas.html
> >
> > Thanks and Regards,
> > Dhaval Wagela
> > Enterprise Software Engineer
> > HotWax Systems   > <>>
> >
>


Re: Request to Become a Contributor

2017-07-25 Thread Ashish Vijaywargiya
Done, Thanks Anushi! Please check - https://cwiki.apache.org/con
fluence/x/AIRMAg

Kind Regards
Ashish Vijaywargiya
HotWax Systems - est. 1997 


On Mon, Jul 24, 2017 at 9:56 AM, Anushi Gupta <
anushi.gu...@hotwaxsystems.com> wrote:

> Hello,
>
> Please register me as an OFBIz Contributor.
>
> My account details are as follows:
>
> Full Name: Anushi Gupta
> User Name: anushi.gupta10
> Email: anushi.gu...@hotwaxsystems.com
>
> I have signed the ICLA:
> https://people.apache.org/unlistedclas.html
>
> Thanks and Regards,
> Anushi Gupta
>


Re: Request to Become a Contributor

2017-07-25 Thread Ashish Vijaywargiya
Done, Thanks Ujjawal! Please check - https://cwiki.apache.org/con
fluence/x/AIRMAg

Kind Regards
Ashish Vijaywargiya
HotWax Systems - est. 1997 


On Mon, Jul 24, 2017 at 9:25 AM, Ujjawal Solanki <
ujjawal.sola...@hotwaxsystems.com> wrote:

> Hello,
>
> Please register me as an OFBiz Contributor.
>
> My account details are as follows:
> Full Name: Ujjawal Solanki
> User Name: ujjawal.solanki77
> Email: ujjawal...@gmail.com
>
> I have signed the ICLA:
> https://people.apache.org/unlistedclas.html
>
> Thanks and Regards,
> Ujjawal Solanki
>


Re: Request to Become a Contributor.

2017-07-25 Thread Ashish Vijaywargiya
Done, Thanks Lalit! Please check - https://cwiki.apache.org/con
fluence/x/AIRMAg

Kind Regards
Ashish Vijaywargiya
HotWax Systems - est. 1997 


On Mon, Jul 24, 2017 at 9:24 AM, Lalit Dashora <
lalit.dash...@hotwaxsystems.com> wrote:

> Hello,
>
> Please register me as an OFBiz Contributor.
>
> My account details are as follows:
> Full Name: Lalit Dashora
> User Name: lalit.dashora
> Email: lalit.dash...@hotwaxsystems.com
>
> I have signed the ICLA:
> https://people.apache.org/unlistedclas.html
>
> Best Regards,
> --
> Lalit Dashora
>


Re: Request to Become a Contributor

2017-07-25 Thread Ashish Vijaywargiya
Done, Thanks Yogesh! Please check - https://cwiki.apache.org/con
fluence/x/AIRMAg

Kind Regards
Ashish Vijaywargiya
HotWax Systems - est. 1997 


On Mon, Jul 24, 2017 at 9:43 AM, Yogesh Naroliya <
yogesh.narol...@hotwaxsystems.com> wrote:

> Hello,
>
> Please register me as an OFBiz Contributor.
>
> My account details are as follows:
> Full Name: Yogesh Naroliya
> User Name: yogesh.naroliya
> Email: yogesh.narol...@hotwaxsystems.com
>
> I have signed the ICLA:
> https://people.apache.org/unlistedclas.html
>
> Thanks and Regards,
>
> Yogesh Naroliya
>


Re: Request to Become a Contributor

2017-07-25 Thread Ashish Vijaywargiya
Done, Thanks Garima! Please check - https://cwiki.apache.org/con
fluence/x/AIRMAg

Kind Regards
Ashish Vijaywargiya
HotWax Systems - est. 1997 


On Mon, Jul 24, 2017 at 9:06 AM, Garima Jain 
wrote:

> Hello,
>
> Please register me as an OFBiz Contributor.
>
> My account details are as follows:
>
> Full Name: Garima Jain
> User Name: garima.jain
> Email: jaingarima2...@gmail.com
>
> I have signed the ICLA:
> https://people.apache.org/unlistedclas.html
>
>
> *Kind Regards*
> Garima Jain
> Indore
>


Re: Request to Become a Contributor

2017-07-25 Thread Ashish Vijaywargiya
Done, Thanks Dhaval! Please check - https://cwiki.apache.org/
confluence/x/AIRMAg

Kind Regards
Ashish Vijaywargiya
HotWax Systems - est. 1997 


On Mon, Jul 24, 2017 at 8:55 AM, Dhaval Wagela <
dhaval.wag...@hotwaxsystems.com> wrote:

> Hello,
>
> Please register me as an OFBiz Contributor.
>
> My account details are as follows:
> Full Name: Dhaval Wagela
> User Name: dhaval.wagela
> Email: dhaval.wag...@hotwaxsystems.com
>
> I have signed the ICLA:
> https://people.apache.org/unlistedclas.html
>
> Thanks and Regards,
> Dhaval Wagela
> Enterprise Software Engineer
> HotWax Systems   <>>
>


Re: Request to Become a Contributor

2017-07-25 Thread Ashish Vijaywargiya
Done, Thanks Prasheel! Please check - https://cwiki.apache.org/con
fluence/x/AIRMAg

Kind Regards
Ashish Vijaywargiya
HotWax Systems - est. 1997 


On Tue, Jul 25, 2017 at 1:24 PM, Prasheel Soni <
prasheel.s...@hotwaxsystems.com> wrote:

> Hello,
>
> Please register me as an OFBiz Contributor.
>
> My account details are as follows:
> Full Name: Prasheel Soni
> User Name: prasheel.soni
> Email: prasheel.s...@hotwaxsystems.com
>
> I have signed the ICLA:
> https://people.apache.org/unlistedclas.html
>  org%2Funlistedclas.html=D=1=AFQjCNHVf2UABS2lcykR7HChP0QJk-kI-Q
> >
>
> Thanks and Regards,
> Prasheel Soni
>


RE: Credit Memos that Tie to an Invoice

2017-07-25 Thread james
I have tested the returns functionality in Ofbiz and it seems as if the
refund when purchased on a credit card is correct as it creates a
Payment and automatical;y refunds the card.  But if an offline payment
is on the order the system still creates a Payment instead of a credit
memo.  It seems to me that a credit memo should be created...especially
if the customer has not paid yet.  Is the system functioning correct or
am I missing something here?

Thanks,

James

 Original Message 
Subject: Re: Credit Memos that Tie to an Invoice
From: Rishi Solanki 
Date: Fri, July 21, 2017 9:12 pm
To: ofbizuser 

James,

Thanks for your reply, +1 for both incoming and outgoing invoices. For
both
the cases basic services to refund, credit on account already exists and
you just need to use them in your applying algorithm.


Rishi Solanki
Manager, Enterprise Software Development
HotWax Systems Pvt. Ltd.
Direct: +91-9893287847
http://www.hotwaxsystems.com

On Thu, Jul 20, 2017 at 9:27 PM,  wrote:

> Thanks Rishi.
>
> If I am applying a Credit based off of a sales order I should know which
> invoice was generated. If the invoice has not been paid yet then I
> would simply use the credit memo to apply to that invoice. If they
> invoice has been paid then the user should have the option to generate a
> refund or credit on account. Does that make sense?
>
> Same thing on the Return to Vendor. I should be able to identify which
> manufacturer invoice that I want to apply the credit to so when the
> credit is created it automatically applies it. This is of course if the
> credit is auto generated. If not we should be able to select which
> invoices we want to apply it to as it operated today. I think we will
> tackle this development.
>
> Thanks,
>
> James
>
>
>  Original Message 
> Subject: Re: Credit Memos that Tie to an Invoice
> From: Rishi Solanki 
> Date: Thu, July 20, 2017 6:22 am
> To: ofbizuser 
>
> James,
>
> You got it correctly, we need to apply it manually. Also it is logical,
> like credit memos or credit refunds go on the account, and for that
> account
> we may have multiple invoices.
>
> Lets suppose we received/paid payment of $100 and we have multiple
> invoices
> for the account of $50. Lets assume $50 amount with four invoices. As we
> received/paid only $100 so we can only apply this payment on two
> invoices.
> That is why system gave us the flexibility on which invoices user wants
> to
> apply.
>
> Also user may add her own algorithm to logically apply payment
> automatically. For that you may need some customization as per the
> requirement to do that.
>
> HTH!
>
>
>
> --
> Rishi Solanki
> Sr Manager, Enterprise Software Development
> HotWax Systems Pvt. Ltd.
> Direct: +91-9893287847
> http://www.hotwaxsystems.com
>
> On Thu, Jul 20, 2017 at 4:31 PM,  wrote:
>
> >
> > Am i correct that credit memos or credit refunds simply go on the
> > account and not automatically applied to a customer invoice or vendor
> > invoice? This is a manual step to apply credits?
> >
> > Am I missing something?
> >
> > Thanks,
> >
> > James
> >  Original Message 
> > Subject: Credit Memos that Tie to an Invoice
> > From: 
> > Date: Mon, July 10, 2017 5:21 am
> > To: user@ofbiz.apache.org
> >
> > We are working with returns and we recently noticed that the system
> > creates a Payment to the customer. Is there a way to create a credit
> > memo instead of a payment? or decide on the return if a credit vs
> > payment is created? Also is there a way to relate a credit memo to the
> > original invoice that is getting credited out?
> >
> > Thanks,
> >
> > James
> >
>


Request to Become a Contributor

2017-07-25 Thread Prasheel Soni
Hello,

Please register me as an OFBiz Contributor.

My account details are as follows:
Full Name: Prasheel Soni
User Name: prasheel.soni
Email: prasheel.s...@hotwaxsystems.com

I have signed the ICLA:
https://people.apache.org/unlistedclas.html


Thanks and Regards,
Prasheel Soni