Jump to content

Grouping Line Items within a Portal


This topic is 5900 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hello. Please forgive me if the solution to this is obvious. I have looked through many threads and have not come across anything exactly like my problem.

I have an Inventory database that needs each bottle of (vintage) wine to have a unique entry (meaning, no quantity field because the quantity is always "1"). But when it comes time to invoice, using an Order database, many bottles and many varieties may be included in the portal. Right now, they are showing up as individual line items, related by the PO Number. The subtotal function Count is working, as is the subtotal of Sale price and appears like this:

Qty Wine Each Amount

3 2002 ABC Merlot 1.10 3.30

3 2002 ABC Merlot 1.10 3.30

3 2002 ABC Merlot 1.10 3.30

2 2002 ABC Cab 1.50 3.00

2 2002 ABC Cab 1.50 3.00

What I would like to appear on the invoice is:

3 2002 ABC Merlot 1.10 3.30

2 2002 ABC Cab 1.50 3.00

I imagine I could come up with some scripting solution, but I was hoping for something more elegant. Any suggestions?

Jeff

Posted

Hello. Please forgive me if the solution to this is obvious. I have looked through many threads and have not come across anything exactly like my problem.

I have an Inventory database that needs each bottle of (vintage) wine to have a unique entry (meaning, no quantity field because the quantity is always "1"). But when it comes time to invoice, using an Order database, many bottles and many varieties may be included in the portal. Right now, they are showing up as individual line items, related by the PO Number. The subtotal function Count is working, as is the subtotal of Sale price and appears like this:

Qty Wine Each Amount

3 2002 ABC Merlot 1.10 3.30

3 2002 ABC Merlot 1.10 3.30

3 2002 ABC Merlot 1.10 3.30

2 2002 ABC Cab 1.50 3.00

2 2002 ABC Cab 1.50 3.00

What I would like to appear on the invoice is:

3 2002 ABC Merlot 1.10 3.30

2 2002 ABC Cab 1.50 3.00

I imagine I could come up with some scripting solution, but I was hoping for something more elegant. Any suggestions?

Jeff

Those totals don't look right. Don't you mean you want:

9 2002 ABC Merlot 1.10 9.90

4 2002 ABC Cab 1.50 6.00

Posted

An easy way to achieve this is to print the invoice as a report of LineItems, sub-summarized by Product. To get a similar result in Browse mode, you would need to use either the so-called "Ugo method" or a recursive custom function.

Those totals don't look right.

the quantity is always "1"
Posted

An easy way to achieve this is to print the invoice as a report of LineItems, sub-summarized by Product. To get a similar result in Browse mode, you would need to use either the so-called "Ugo method" or a recursive custom function.

I think we'll have to get further explanation from the OP because he has presented conflicting statements.

This is the result he said he wanted:

What I would like to appear on the invoice is:

3 2002 ABC Merlot 1.10 3.30

2 2002 ABC Cab 1.50 3.00

Posted

It's the display that's conflicting, not the statements. The portal, as it is now, is repeating a summary result. He has 3 items of 1 Merlot and 2 items of 1 Cab, showing in 5 rows instead of the desired 2.

  • Newbies
Posted

Yes, there should be only two line items, as Comment pointed out. I went with a workaround: I created a new table with a PO, item, quantity, and item cost, and this portal works. Not elegant, but functional. I have read and reread Ugo's method, but couldn't get my head around it. Thank you for your assistance.

Posted

I created a new table with a PO, item, quantity, and item cost, and this portal works.

OK, now you have lost me. Isn't a "table with a PO, item, quantity, and item cost" the LineItems table?

  • Newbies
Posted

Since I couldn't make the Inventory table work, because the grouping of like line items wasn't working, I created a intermediate table that can keep track of quantity/item and used that table in my invoicing layout. It isn't elegant, but it gets the job done.

This topic is 5900 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.