You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Vanessa Vitor <va...@gmail.com> on 2012/03/02 18:52:12 UTC

Quantity and Amount?

Hi,

I'm confused about something that I'm sure, it's simple.

While I'm creating a sales order, using "quick lookup" - the table shows me
the name of the product - a field named "quantity" and another field named
"amount". Which is the difference between them?

.../ordermgr/control/LookupBulkAddProducts?productId=

thanks

-- 
*Vanessa Vitor*

Ao encaminhar esta mensagem, por favor :
1. Apague o meu e-mail e o meu nome.
2. Apague também os endereços dos amigos antes de reenviar.
3. Encaminhe como cópia oculta (Cco ou Bcc) aos SEUS destinatários.
Agindo sempre assim dificultaremos a disseminação de vírus, spams e banners.

Re: Quantity and Amount?

Posted by Jacques Le Roux <ja...@les7arts.com>.
Done at r1302195

Jacques

From: "Jacques Le Roux" <ja...@les7arts.com>
> Actually I must say the UI is confusing. It would not be too hard to improve it: ie makes the amout field disabled if the product 
> does not have "require amout" set (Product.requireAmount field = "Y")
> You could create a Jira for that, else I will do
>
> As always, help appreciated...
>
> Jacques
>
> From: "Ravindra Mandre" <ra...@gmail.com>
>> Thanks Jacques for corrcting me, The comment I given is of fixed amount.
>>
>>
>> Ravindra
>>
>> On Sun, Mar 4, 2012 at 12:09 AM, Jacques Le Roux <
>> jacques.le.roux@les7arts.com> wrote:
>>
>>> Sorry Ravindra,
>>>
>>> But you are confusing 2 things, and related fields in Product Entity:
>>> Product.quantityIncluded
>>> and
>>> Product.fixedAmount
>>>
>>> IN OFBiz OOTB, quantityIncluded is used for bundles like you describe.
>>> When fixedAmount is used for financials or by and large
>>> products which require an Unit of Measure (see Product.amountUomTypeId),
>>> not a quantity.
>>>
>>> There is a good explanation there http://markmail.org/message/**
>>> tvyghkw7rgq5bmqi <http://markmail.org/message/tvyghkw7rgq5bmqi>
>>>
>>> So in this case you don't need to enter an amout. The quantity with the
>>> product price is enough to get the behaviour you describe.
>>>
>>> Alo you may notice that the DB field type is currency-amount. Its
>>> description is BTW <<Ue this for products which are sold in fixed
>>> denominations, such as gift certificates or calling cards.>>
>>>
>>> For code details, follow the called request, you will end at
>>> ShoppingCartHelper.addToCart()**, exactly ShoppingCartHelper[192] in
>>> trunk
>>>
>>> HTH
>>>
>>> Jacques
>>>
>>>
>>> From: "Ravindra Mandre" <ra...@gmail.com>
>>>
>>>> Hi Vanessa ,
>>>>
>>>> For understanding purpose let consider you want to buy 5 pens , so 5 is
>>>> the
>>>> quantity while if each pen has a price of 10 Rs then its amount will be
>>>> 10*5 Rs.
>>>>
>>>> HTH
>>>>
>>>> Ravi
>>>>
>>>> On Sat, Mar 3, 2012 at 4:07 PM, Jacques Le Roux <
>>>> jacques.le.roux@les7arts.com> wrote:
>>>>
>>>>  Quantity: to choose the number of product to order
>>>>> Amount: to possibly fix an amount value for specific products like gift
>>>>> cards
>>>>>
>>>>> See https://demo-trunk.ofbiz.**apa**che.org/catalog/control/**<http://apache.org/catalog/control/**>
>>>>> EditProduct?productId=GC-001<h**ttps://demo-trunk.ofbiz.**
>>>>> apache.org/catalog/control/**EditProduct?productId=GC-001<https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=GC-001>
>>>>> >
>>>>>
>>>>> Amout, Require Amount, Require the customer to enter an amount.
>>>>>
>>>>> Jacques
>>>>>
>>>>>
>>>>> Vanessa Vitor wrote:
>>>>>
>>>>>  Hi,
>>>>>>
>>>>>> I'm confused about something that I'm sure, it's simple.
>>>>>>
>>>>>> While I'm creating a sales order, using "quick lookup" - the table shows
>>>>>> me
>>>>>> the name of the product - a field named "quantity" and another field
>>>>>> named
>>>>>> "amount". Which is the difference between them?
>>>>>>
>>>>>> .../ordermgr/control/****LookupBulkAddProducts?****productId=
>>>>>>
>>>>>> thanks
>>>>>>
>>>>>>
>>>>>
>>>>
>> 

Re: Quantity and Amount?

Posted by Jacques Le Roux <ja...@les7arts.com>.
Actually I must say the UI is confusing. It would not be too hard to improve it: ie makes the amout field disabled if the product 
does not have "require amout" set (Product.requireAmount field = "Y")
You could create a Jira for that, else I will do

As always, help appreciated...

Jacques

From: "Ravindra Mandre" <ra...@gmail.com>
> Thanks Jacques for corrcting me, The comment I given is of fixed amount.
>
>
> Ravindra
>
> On Sun, Mar 4, 2012 at 12:09 AM, Jacques Le Roux <
> jacques.le.roux@les7arts.com> wrote:
>
>> Sorry Ravindra,
>>
>> But you are confusing 2 things, and related fields in Product Entity:
>> Product.quantityIncluded
>> and
>> Product.fixedAmount
>>
>> IN OFBiz OOTB, quantityIncluded is used for bundles like you describe.
>> When fixedAmount is used for financials or by and large
>> products which require an Unit of Measure (see Product.amountUomTypeId),
>> not a quantity.
>>
>> There is a good explanation there http://markmail.org/message/**
>> tvyghkw7rgq5bmqi <http://markmail.org/message/tvyghkw7rgq5bmqi>
>>
>> So in this case you don't need to enter an amout. The quantity with the
>> product price is enough to get the behaviour you describe.
>>
>> Alo you may notice that the DB field type is currency-amount. Its
>> description is BTW <<Ue this for products which are sold in fixed
>> denominations, such as gift certificates or calling cards.>>
>>
>> For code details, follow the called request, you will end at
>> ShoppingCartHelper.addToCart()**, exactly ShoppingCartHelper[192] in
>> trunk
>>
>> HTH
>>
>> Jacques
>>
>>
>> From: "Ravindra Mandre" <ra...@gmail.com>
>>
>>> Hi Vanessa ,
>>>
>>> For understanding purpose let consider you want to buy 5 pens , so 5 is
>>> the
>>> quantity while if each pen has a price of 10 Rs then its amount will be
>>> 10*5 Rs.
>>>
>>> HTH
>>>
>>> Ravi
>>>
>>> On Sat, Mar 3, 2012 at 4:07 PM, Jacques Le Roux <
>>> jacques.le.roux@les7arts.com> wrote:
>>>
>>>  Quantity: to choose the number of product to order
>>>> Amount: to possibly fix an amount value for specific products like gift
>>>> cards
>>>>
>>>> See https://demo-trunk.ofbiz.**apa**che.org/catalog/control/**<http://apache.org/catalog/control/**>
>>>> EditProduct?productId=GC-001<h**ttps://demo-trunk.ofbiz.**
>>>> apache.org/catalog/control/**EditProduct?productId=GC-001<https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=GC-001>
>>>> >
>>>>
>>>> Amout, Require Amount, Require the customer to enter an amount.
>>>>
>>>> Jacques
>>>>
>>>>
>>>> Vanessa Vitor wrote:
>>>>
>>>>  Hi,
>>>>>
>>>>> I'm confused about something that I'm sure, it's simple.
>>>>>
>>>>> While I'm creating a sales order, using "quick lookup" - the table shows
>>>>> me
>>>>> the name of the product - a field named "quantity" and another field
>>>>> named
>>>>> "amount". Which is the difference between them?
>>>>>
>>>>> .../ordermgr/control/****LookupBulkAddProducts?****productId=
>>>>>
>>>>> thanks
>>>>>
>>>>>
>>>>
>>>
> 

Re: Quantity and Amount?

Posted by Ravindra Mandre <ra...@gmail.com>.
Thanks Jacques for corrcting me, The comment I given is of fixed amount.


Ravindra

On Sun, Mar 4, 2012 at 12:09 AM, Jacques Le Roux <
jacques.le.roux@les7arts.com> wrote:

> Sorry Ravindra,
>
> But you are confusing 2 things, and related fields in Product Entity:
> Product.quantityIncluded
> and
> Product.fixedAmount
>
> IN OFBiz OOTB, quantityIncluded is used for bundles like you describe.
> When fixedAmount is used for financials or by and large
> products which require an Unit of Measure (see Product.amountUomTypeId),
> not a quantity.
>
> There is a good explanation there http://markmail.org/message/**
> tvyghkw7rgq5bmqi <http://markmail.org/message/tvyghkw7rgq5bmqi>
>
> So in this case you don't need to enter an amout. The quantity with the
> product price is enough to get the behaviour you describe.
>
> Alo you may notice that the DB field type is currency-amount. Its
> description is BTW <<Ue this for products which are sold in fixed
> denominations, such as gift certificates or calling cards.>>
>
> For code details, follow the called request, you will end at
> ShoppingCartHelper.addToCart()**, exactly ShoppingCartHelper[192] in
> trunk
>
> HTH
>
> Jacques
>
>
> From: "Ravindra Mandre" <ra...@gmail.com>
>
>> Hi Vanessa ,
>>
>> For understanding purpose let consider you want to buy 5 pens , so 5 is
>> the
>> quantity while if each pen has a price of 10 Rs then its amount will be
>> 10*5 Rs.
>>
>> HTH
>>
>> Ravi
>>
>> On Sat, Mar 3, 2012 at 4:07 PM, Jacques Le Roux <
>> jacques.le.roux@les7arts.com> wrote:
>>
>>  Quantity: to choose the number of product to order
>>> Amount: to possibly fix an amount value for specific products like gift
>>> cards
>>>
>>> See https://demo-trunk.ofbiz.**apa**che.org/catalog/control/**<http://apache.org/catalog/control/**>
>>> EditProduct?productId=GC-001<h**ttps://demo-trunk.ofbiz.**
>>> apache.org/catalog/control/**EditProduct?productId=GC-001<https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=GC-001>
>>> >
>>>
>>> Amout, Require Amount, Require the customer to enter an amount.
>>>
>>> Jacques
>>>
>>>
>>> Vanessa Vitor wrote:
>>>
>>>  Hi,
>>>>
>>>> I'm confused about something that I'm sure, it's simple.
>>>>
>>>> While I'm creating a sales order, using "quick lookup" - the table shows
>>>> me
>>>> the name of the product - a field named "quantity" and another field
>>>> named
>>>> "amount". Which is the difference between them?
>>>>
>>>> .../ordermgr/control/****LookupBulkAddProducts?****productId=
>>>>
>>>> thanks
>>>>
>>>>
>>>
>>

Re: Quantity and Amount?

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

But you are confusing 2 things, and related fields in Product Entity:
Product.quantityIncluded
and
Product.fixedAmount

IN OFBiz OOTB, quantityIncluded is used for bundles like you describe. When fixedAmount is used for financials or by and large
products which require an Unit of Measure (see Product.amountUomTypeId), not a quantity.

There is a good explanation there http://markmail.org/message/tvyghkw7rgq5bmqi

So in this case you don't need to enter an amout. The quantity with the product price is enough to get the behaviour you describe.

Alo you may notice that the DB field type is currency-amount. Its description is BTW <<Ue this for products which are sold in fixed
denominations, such as gift certificates or calling cards.>>

For code details, follow the called request, you will end at ShoppingCartHelper.addToCart(), exactly ShoppingCartHelper[192] in
trunk

HTH

Jacques


From: "Ravindra Mandre" <ra...@gmail.com>
> Hi Vanessa ,
>
> For understanding purpose let consider you want to buy 5 pens , so 5 is the
> quantity while if each pen has a price of 10 Rs then its amount will be
> 10*5 Rs.
>
> HTH
>
> Ravi
>
> On Sat, Mar 3, 2012 at 4:07 PM, Jacques Le Roux <
> jacques.le.roux@les7arts.com> wrote:
>
>> Quantity: to choose the number of product to order
>> Amount: to possibly fix an amount value for specific products like gift
>> cards
>>
>> See https://demo-trunk.ofbiz.**apache.org/catalog/control/**
>> EditProduct?productId=GC-001<https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=GC-001>
>> Amout, Require Amount, Require the customer to enter an amount.
>>
>> Jacques
>>
>>
>> Vanessa Vitor wrote:
>>
>>> Hi,
>>>
>>> I'm confused about something that I'm sure, it's simple.
>>>
>>> While I'm creating a sales order, using "quick lookup" - the table shows
>>> me
>>> the name of the product - a field named "quantity" and another field named
>>> "amount". Which is the difference between them?
>>>
>>> .../ordermgr/control/**LookupBulkAddProducts?**productId=
>>>
>>> thanks
>>>
>>
>

Re: Quantity and Amount?

Posted by Ravindra Mandre <ra...@gmail.com>.
Hi Vanessa ,

For understanding purpose let consider you want to buy 5 pens , so 5 is the
quantity while if each pen has a price of 10 Rs then its amount will be
10*5 Rs.

HTH

Ravi

On Sat, Mar 3, 2012 at 4:07 PM, Jacques Le Roux <
jacques.le.roux@les7arts.com> wrote:

> Quantity: to choose the number of product to order
> Amount: to possibly fix an amount value for specific products like gift
> cards
>
> See https://demo-trunk.ofbiz.**apache.org/catalog/control/**
> EditProduct?productId=GC-001<https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=GC-001>
> Amout, Require Amount, Require the customer to enter an amount.
>
> Jacques
>
>
> Vanessa Vitor wrote:
>
>> Hi,
>>
>> I'm confused about something that I'm sure, it's simple.
>>
>> While I'm creating a sales order, using "quick lookup" - the table shows
>> me
>> the name of the product - a field named "quantity" and another field named
>> "amount". Which is the difference between them?
>>
>> .../ordermgr/control/**LookupBulkAddProducts?**productId=
>>
>> thanks
>>
>

Re: Quantity and Amount?

Posted by Jacques Le Roux <ja...@les7arts.com>.
Quantity: to choose the number of product to order
Amount: to possibly fix an amount value for specific products like gift cards

See https://demo-trunk.ofbiz.apache.org/catalog/control/EditProduct?productId=GC-001
Amout, Require Amount, Require the customer to enter an amount.

Jacques

Vanessa Vitor wrote:
> Hi,
> 
> I'm confused about something that I'm sure, it's simple.
> 
> While I'm creating a sales order, using "quick lookup" - the table shows me
> the name of the product - a field named "quantity" and another field named
> "amount". Which is the difference between them?
> 
> .../ordermgr/control/LookupBulkAddProducts?productId=
> 
> thanks