How to set a Price List if i want to put discount buy 2 get 1 free in Odoo 8? - odoo

For Example i want to put discount on different type of product(not same categories) and a specific product it's also a different type of category should be free..
other wise free product has price if customer want to bye single product at Point of sale
Example
Category A (product) Category B (Product) Category C (Product)
1(price) + 1(price) + 1 Free
Else Free product sale alone it should price

Related

Bigcommerce - Update Price of Products in Cart Based on Price List & Custom Fields

With Bigcommerce Price Lists, we obviously have the ability to give discounts based on bulk buys/qty.
We want to be able to combine the quantities of items in the cart if the products have a common custom field (or similar) and give the bulk price list discounts based on the combined qty.
For example:
Product A has a bulk purchase discount - buy 5+ and get 10% discount
Product B has a bulk purchase discount - buy 10+ and get 15% discount
Both these products would have a custom field/meta field at the variant level that = "Allow Combined Discount A"
So that means if Product A has a cart qty of 4, and product B has a cart qty of 6, the combined qty = 10
Product A should receive 10% discount (as combined qty >=5)
Product B should receive 15% discount (as combined qty >=10)
How can we achieve this? Ideally, the price updates/discounts would apply immediately when the cart quantities reach the correct levels. There could also be other products in the cart with different combining custom field/meta field values, which would need to calculate their own total - e.g. "Allow Combined Discount B"
Promotions on categories will not work as there are can be varients on products a and b where the bulk discounts do not apply, or the qty of some variants should not count towards a combined total to apply price list bulk buy discounts.

Do I need to make 3 item tables to store item list for Purchase Order, Delivery Challan & Purchase Returns in an inventory system?

The process: I issue a PURCHASE ORDER to Supplier who delivers a part of the items specified. I accept some items and return the defective items. Do I need to create 3 item tables for the 3 documents?
Format:
Sr.no = 001
Product ID= ITEM_01
Product Name= ITEM1
QTY = 10
PRICE = 100
As a first pass, and depending on your reporting needs:
Table1: PO log
ID
Purchase order number
Supplier ID
Product ID
Qty
Price per item
Date
Action type (received, returned)
Table2: Supplier info
Supplier ID
Supplier Name
Other Supplier info
Table3: Product info
Product ID
Product Name
Other product info

Sell numbered seats in Prestashop

Im looking for a way to sell numbered Tickets on Prestashop. For example I have a ticket for a Hockey Game. Seats are numbered, so when I sell a ticket for seat A8, this seat is gone and can not be sold again. The seats are all the same price for a given Game or Season. A customer should be able to choose his seat from a dropdown list.
You will need to add product quantities and enable out of stock feature.
Then set the product quantity to 1.
And not allowing orders when the product quantity is less than 1.
You need to make Attribute "Seats" with value of all seat numbers and allow add one quantity for each of Seats values

Purchase of pack of product not updating quantity in Inventory of the product

I am working on customizing then openERP 7.0. I want to know how to handle the following use case in openERP
Example:
Consider 'Product A' from a supplier. The supplier may sell the product as
-Box of 100
-Box of 200
-Box of 1000
What I did is, I have created the BoM for the 'Product A' with quantity 100
say 'BoM of Product A(100)'.
Now, If i have created the PO for 'BoM of Product A(100)' of quantity 1 from supplier. Validated that and received that.
In inventory, the 'quantity on hand' of product is as follows
Product A - 0
BoM of Product A(100) - 1
I am expecting the result of 'quantity on hand' as follows
Product A - 100
BoM of Product A(100) - 1
How to handle this Pack of 'product' concept in openERP. Please help me on these.
you have to enable " Manage different units of measure for products " from
setting--> warehouse
and then you can define new UOM for the product with desired quantity. from
Warehouse--> Configuration--> Unit of Measure

Rails Select and Group by summation Custom SQL Calls

I have a table named sales, which has the following fields:
id (integer)
quantity (integer)
product_id (integer)
payment_method (string - bad I know)
I want to hook these records up to the google visualization api but first I need to actually get the data presentable in the way that I want. The google visualization integration is not the issue. What IS the issue is that I can't seem to get the group() function or select() function to do what I want.
I'm not sure that group is what I want, but basically I would like to do a sales totals per product by payment_method.
My original idea was that it would look like
.select("SUM(quantity) as total_sold", :product_id).group(:payment_method)
But that doesn't really help me sort them by product. What I'd like the data to look like would be:
CASH SALES:
Product A: 103 sales
Product B: 32 sales
Product C: 87 sales
CREDITCARD SALES:
Product A: 23 sales
Product B: 43 sales
Product C: 12 sales
DONATION SALES:
Product A: # sales
Product B: 43 sales
Product C: 12 sales
Any help would be appreciated!
.select("SUM(quantity) as total_sold", :product_id).group(:payment_method, :product_id)
Here first it will group the result set by payment method, then by product id.
Keep the select of all columns inside of one string. Generated SQL will use that "as is". No need to close the string and put 2nd parameter as symbol :product_id in select.
Important to add all columns from group by in select also.
Consider .order("payment_method, product_id") also.
.select("SUM(quantity) as total_sold, payment_method, product_id").group(:payment_method, :product_id)
Tested using rails console:
Product.select("product_line_id, public_product_id pp_id, count(product_id) num_products") .group("product_line_id, public_product_id").map{|p| "Public Prod Id: #{p.pp_id} has #{p.num_products} products " }
Product Load (0.2ms) SELECT public_product_id pp_id, count(product_id) num_products FROM products GROUP BY products.public_product_id
=> [
"Public Prod Id: 5 has 1 products ",
"Public Prod Id: 6 has 2 products ",
"Public Prod Id: 8 has 1 products ", ... ]