Quantity and Amount?

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

Quantity and Amount?

Vanessa Vitor
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.
Reply | Threaded
Open this post in threaded view
|

Re: Quantity and Amount?

Jacques Le Roux
Administrator
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
Reply | Threaded
Open this post in threaded view
|

Re: Quantity and Amount?

Ravindra Mandre-2
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 <
[hidden email]> 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
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Quantity and Amount?

Jacques Le Roux
Administrator
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" <[hidden email]>

> 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 <
> [hidden email]> 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
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Quantity and Amount?

Ravindra Mandre-2
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 <
[hidden email]> 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" <[hidden email]>
>
>> 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 <
>> [hidden email]> 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
>>>>
>>>>
>>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Quantity and Amount?

Jacques Le Roux
Administrator
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" <[hidden email]>

> 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 <
> [hidden email]> 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" <[hidden email]>
>>
>>> 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 <
>>> [hidden email]> 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
>>>>>
>>>>>
>>>>
>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Quantity and Amount?

Jacques Le Roux
Administrator
Done at r1302195

Jacques

From: "Jacques Le Roux" <[hidden email]>

> 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" <[hidden email]>
>> 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 <
>> [hidden email]> 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" <[hidden email]>
>>>
>>>> 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 <
>>>> [hidden email]> 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
>>>>>>
>>>>>>
>>>>>
>>>>
>>