You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Rashko Rejmer <rr...@iguanait.com> on 2007/07/03 17:50:45 UTC

Multiple order payments

I want to ask if anyone can tell me if my assumptions are right, because I
see that there are some inaccuracy when trying to pay sales order by billing
account and by another payment method.

I create sales order to party, that has a billing account. In the screen
"Order Entry Payment Settings" I chose:
 - the billing account associated to this party;
 - bill up to - half of the order total;
 - COD(radio button)
 
My assumptions were that 2 OrderPaymentPreference records would be created:
 - first for the half amount of the order total for the billing account and 
 - second for the other half amount of the order total for COD payment;
but 3 records are created - two for this billing account with half of the
amount and one for COD with 0 amount.

Is this a bug or I am wrong with my assumptions?
If this is a bug please give me some tips me for the right solution and I
will try to apply a patch!


Thanks, 
Rashko Rejmer
-- 
View this message in context: http://www.nabble.com/Multiple-order-payments-tf4019138.html#a11414822
Sent from the OFBiz - Dev mailing list archive at Nabble.com.


Re: Multiple order payments

Posted by Rashko Rejmer <rr...@iguanait.com>.
Hi Jacopo, Scott, Jacques,

No problem, the important thing is that the problems is fixed. Thanks a lot.

Regards
Rashko Rejmer
-- 
View this message in context: http://www.nabble.com/Multiple-order-payments-tf4019138.html#a11427521
Sent from the OFBiz - Dev mailing list archive at Nabble.com.


Re: Multiple order payments

Posted by Scott Gray <le...@gmail.com>.
Oops sorry Rashko, I should have left this for you to fix, I read your
emails too quickly.  Fixing bugs is a great way to get better acquainted
with OFBiz.

Regards
Scott

On 04/07/07, Jacques Le Roux <ja...@les7arts.com> wrote:
>
> Sorry Rashko,
>
> Did not see that you proposed to write a patch. My apologies.
>
> Thanks
>
> Jacques
>
> De : "Jacopo Cappellato" <ti...@sastau.it>
> > Hi Rashko,
> >
> > this is interesting... and it seems definitely a bug.
> > Are you entering the order from the order manager application or
> > ecommerce? (please try with the order manager application)
> > Could you please try to use a credit card instead of COD (together with
> > billing account)? Is it happening the same thing?
> >
> > Please let me know and I will help you to fix.
> >
> > Jacopo
> >
> >
> > Rashko Rejmer wrote:
> > > I want to ask if anyone can tell me if my assumptions are right,
> because I
> > > see that there are some inaccuracy when trying to pay sales order by
> billing
> > > account and by another payment method.
> > >
> > > I create sales order to party, that has a billing account. In the
> screen
> > > "Order Entry Payment Settings" I chose:
> > >  - the billing account associated to this party;
> > >  - bill up to - half of the order total;
> > >  - COD(radio button)
> > >
> > > My assumptions were that 2 OrderPaymentPreference records would be
> created:
> > >  - first for the half amount of the order total for the billing
> account and
> > >  - second for the other half amount of the order total for COD
> payment;
> > > but 3 records are created - two for this billing account with half of
> the
> > > amount and one for COD with 0 amount.
> > >
> > > Is this a bug or I am wrong with my assumptions?
> > > If this is a bug please give me some tips me for the right solution
> and I
> > > will try to apply a patch!
> > >
> > >
> > > Thanks,
> > > Rashko Rejmer
>

Re: Multiple order payments

Posted by Jacques Le Roux <ja...@les7arts.com>.
Sorry Rashko,

Did not see that you proposed to write a patch. My apologies.

Thanks

Jacques

De : "Jacopo Cappellato" <ti...@sastau.it>
> Hi Rashko,
> 
> this is interesting... and it seems definitely a bug.
> Are you entering the order from the order manager application or 
> ecommerce? (please try with the order manager application)
> Could you please try to use a credit card instead of COD (together with 
> billing account)? Is it happening the same thing?
> 
> Please let me know and I will help you to fix.
> 
> Jacopo
> 
> 
> Rashko Rejmer wrote:
> > I want to ask if anyone can tell me if my assumptions are right, because I
> > see that there are some inaccuracy when trying to pay sales order by billing
> > account and by another payment method.
> > 
> > I create sales order to party, that has a billing account. In the screen
> > "Order Entry Payment Settings" I chose:
> >  - the billing account associated to this party;
> >  - bill up to - half of the order total;
> >  - COD(radio button)
> >  
> > My assumptions were that 2 OrderPaymentPreference records would be created:
> >  - first for the half amount of the order total for the billing account and 
> >  - second for the other half amount of the order total for COD payment;
> > but 3 records are created - two for this billing account with half of the
> > amount and one for COD with 0 amount.
> > 
> > Is this a bug or I am wrong with my assumptions?
> > If this is a bug please give me some tips me for the right solution and I
> > will try to apply a patch!
> > 
> > 
> > Thanks, 
> > Rashko Rejmer

Re: Multiple order payments

Posted by Scott Gray <le...@gmail.com>.
Ok should be fixed in rev. 553114

Regards
Scott

On 04/07/07, Scott Gray <le...@gmail.com> wrote:
>
> Hi Jacopo, Rashko,
>
> I just gave it a go and two billing account payment prefs were created,
> I'll have a dig and see whats going on.
>
> Regards
> Scott
>
> On 04/07/07, Jacopo Cappellato <ti...@sastau.it> wrote:
> >
> > Rashko,
> >
> > that is really strange since I recently tested a lot that process (when
> > I worked on the billing accounts refactoring) and that was not
> > happening... but I could be wrong, or something has changed after the
> > tests.
> > You are right about the ShoppingCart.makeAllOrderPaymentInfos method: it
> > is the right place to start your investigations.
> > My first bet would be that in that method there is an approximation
> > issue, for example a fake 0.00001$ remaining, and so the system creates
> > a new record that once stored in the db, is approximated to 0.
> >
> > Jacopo
> >
> >
> > Rashko Rejmer wrote:
> > > Hi Jacopo,
> > >
> > > I entered the order from the order manager application. The problem
> > still
> > > exists. I tried to use credit card - the result is the same. The
> > strange
> > > thing is that if you want to pay order with billing account only, 2
> > > OrderPaymentPreference entries are created - one for the whole amount
> > of the
> > > order(EXT_BILLACT) and another with 0 amount(EXT_BILLACT). I was
> > wondering
> > > if the appearance of the 0 amount record is bug or it has some special
> > use?
> > >
> > > I was looking in the code and I think that the problem is in
> > > ShoppingCart.makeAllOrderPaymentInfos() method.
> > >
> > > Thanks,
> > > Rashko Rejmer
> >
> >
> >
>

Re: Multiple order payments

Posted by Scott Gray <le...@gmail.com>.
Hi Jacopo, Rashko,

I just gave it a go and two billing account payment prefs were created, I'll
have a dig and see whats going on.

Regards
Scott

On 04/07/07, Jacopo Cappellato <ti...@sastau.it> wrote:
>
> Rashko,
>
> that is really strange since I recently tested a lot that process (when
> I worked on the billing accounts refactoring) and that was not
> happening... but I could be wrong, or something has changed after the
> tests.
> You are right about the ShoppingCart.makeAllOrderPaymentInfos method: it
> is the right place to start your investigations.
> My first bet would be that in that method there is an approximation
> issue, for example a fake 0.00001$ remaining, and so the system creates
> a new record that once stored in the db, is approximated to 0.
>
> Jacopo
>
>
> Rashko Rejmer wrote:
> > Hi Jacopo,
> >
> > I entered the order from the order manager application. The problem
> still
> > exists. I tried to use credit card - the result is the same. The strange
> > thing is that if you want to pay order with billing account only, 2
> > OrderPaymentPreference entries are created - one for the whole amount of
> the
> > order(EXT_BILLACT) and another with 0 amount(EXT_BILLACT). I was
> wondering
> > if the appearance of the 0 amount record is bug or it has some special
> use?
> >
> > I was looking in the code and I think that the problem is in
> > ShoppingCart.makeAllOrderPaymentInfos() method.
> >
> > Thanks,
> > Rashko Rejmer
>
>
>

Re: Multiple order payments

Posted by Jacopo Cappellato <ti...@sastau.it>.
Rashko,

that is really strange since I recently tested a lot that process (when 
I worked on the billing accounts refactoring) and that was not 
happening... but I could be wrong, or something has changed after the tests.
You are right about the ShoppingCart.makeAllOrderPaymentInfos method: it 
is the right place to start your investigations.
My first bet would be that in that method there is an approximation 
issue, for example a fake 0.00001$ remaining, and so the system creates 
a new record that once stored in the db, is approximated to 0.

Jacopo


Rashko Rejmer wrote:
> Hi Jacopo, 
> 
> I entered the order from the order manager application. The problem still
> exists. I tried to use credit card - the result is the same. The strange
> thing is that if you want to pay order with billing account only, 2
> OrderPaymentPreference entries are created - one for the whole amount of the
> order(EXT_BILLACT) and another with 0 amount(EXT_BILLACT). I was wondering
> if the appearance of the 0 amount record is bug or it has some special use? 
> 
> I was looking in the code and I think that the problem is in
> ShoppingCart.makeAllOrderPaymentInfos() method. 
> 
> Thanks,
> Rashko Rejmer



Re: Multiple order payments

Posted by Rashko Rejmer <rr...@iguanait.com>.
Hi Jacopo, 

I entered the order from the order manager application. The problem still
exists. I tried to use credit card - the result is the same. The strange
thing is that if you want to pay order with billing account only, 2
OrderPaymentPreference entries are created - one for the whole amount of the
order(EXT_BILLACT) and another with 0 amount(EXT_BILLACT). I was wondering
if the appearance of the 0 amount record is bug or it has some special use? 

I was looking in the code and I think that the problem is in
ShoppingCart.makeAllOrderPaymentInfos() method. 

Thanks,
Rashko Rejmer
-- 
View this message in context: http://www.nabble.com/Multiple-order-payments-tf4019138.html#a11421172
Sent from the OFBiz - Dev mailing list archive at Nabble.com.


Re: Multiple order payments

Posted by Jacopo Cappellato <ti...@sastau.it>.
Hi Rashko,

this is interesting... and it seems definitely a bug.
Are you entering the order from the order manager application or 
ecommerce? (please try with the order manager application)
Could you please try to use a credit card instead of COD (together with 
billing account)? Is it happening the same thing?

Please let me know and I will help you to fix.

Jacopo


Rashko Rejmer wrote:
> I want to ask if anyone can tell me if my assumptions are right, because I
> see that there are some inaccuracy when trying to pay sales order by billing
> account and by another payment method.
> 
> I create sales order to party, that has a billing account. In the screen
> "Order Entry Payment Settings" I chose:
>  - the billing account associated to this party;
>  - bill up to - half of the order total;
>  - COD(radio button)
>  
> My assumptions were that 2 OrderPaymentPreference records would be created:
>  - first for the half amount of the order total for the billing account and 
>  - second for the other half amount of the order total for COD payment;
> but 3 records are created - two for this billing account with half of the
> amount and one for COD with 0 amount.
> 
> Is this a bug or I am wrong with my assumptions?
> If this is a bug please give me some tips me for the right solution and I
> will try to apply a patch!
> 
> 
> Thanks, 
> Rashko Rejmer


Re: Multiple order payments

Posted by Jacques Le Roux <ja...@les7arts.com>.
Please ask this kind of question to user ML
http://docs.ofbiz.org/display/OFBADMIN/Mailing+Lists

Thanks

Jacques

De : "Rashko Rejmer" <rr...@iguanait.com>
> 
> I want to ask if anyone can tell me if my assumptions are right, because I
> see that there are some inaccuracy when trying to pay sales order by billing
> account and by another payment method.
> 
> I create sales order to party, that has a billing account. In the screen
> "Order Entry Payment Settings" I chose:
>  - the billing account associated to this party;
>  - bill up to - half of the order total;
>  - COD(radio button)
>  
> My assumptions were that 2 OrderPaymentPreference records would be created:
>  - first for the half amount of the order total for the billing account and 
>  - second for the other half amount of the order total for COD payment;
> but 3 records are created - two for this billing account with half of the
> amount and one for COD with 0 amount.
> 
> Is this a bug or I am wrong with my assumptions?
> If this is a bug please give me some tips me for the right solution and I
> will try to apply a patch!
> 
> 
> Thanks, 
> Rashko Rejmer
> -- 
> View this message in context: http://www.nabble.com/Multiple-order-payments-tf4019138.html#a11414822
> Sent from the OFBiz - Dev mailing list archive at Nabble.com.