Jacob Jackson
11/19/2021, 6:56 PMRick Goodrow
11/19/2021, 10:34 PMAJ Patel
11/21/2021, 1:41 AMCASE WHEN {item.quantityavailable} >= {quantity}-nvl({quantitycommitted},0)-nvl({quantityshiprecv},0) THEN CASE WHEN nvl(DECODE({item.inventorylocation}, 'Atlanta', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Houston AFM', {item.locationquantityavailable}),0) AND nvl(DECODE({item.inventorylocation}, 'Atlanta', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Jackson', {item.locationquantityavailable}),0) AND nvl(DECODE({item.inventorylocation}, 'Atlanta', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Youngstown', {item.locationquantityavailable}),0) AND nvl(DECODE({item.inventorylocation}, 'Atlanta', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Charlotte SG', {item.locationquantityavailable}),0) THEN 'Atlanta' ELSE CASE WHEN nvl(DECODE({item.inventorylocation}, 'Houston AFM', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Atlanta', {item.locationquantityavailable}),0) AND nvl(DECODE({item.inventorylocation}, 'Houston AFM', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Jackson', {item.locationquantityavailable}),0) AND nvl(DECODE({item.inventorylocation}, 'Houston AFM', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Youngstown', {item.locationquantityavailable}),0) AND nvl(DECODE({item.inventorylocation}, 'Houston AFM', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Charlotte SG', {item.locationquantityavailable}),0) THEN 'Houston AFM' ELSE CASE WHEN nvl(DECODE({item.inventorylocation}, 'Youngstown', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Atlanta', {item.locationquantityavailable}),0) AND nvl(DECODE({item.inventorylocation}, 'Youngstown', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Jackson', {item.locationquantityavailable}),0) AND nvl(DECODE({item.inventorylocation}, 'Youngstown', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Houston AFM', {item.locationquantityavailable}),0) AND nvl(DECODE({item.inventorylocation}, 'Youngstown', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Charlotte SG', {item.locationquantityavailable}),0) THEN 'Youngstown' ELSE CASE WHEN nvl(DECODE({item.inventorylocation}, 'Jackson', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Atlanta', {item.locationquantityavailable}),0) AND nvl(DECODE({item.inventorylocation}, 'Jackson', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Youngstown', {item.locationquantityavailable}),0) AND nvl(DECODE({item.inventorylocation}, 'Jackson', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Houston AFM', {item.locationquantityavailable}),0) AND nvl(DECODE({item.inventorylocation}, 'Jackson', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Charlotte SG', {item.locationquantityavailable}),0) THEN 'Jackson' ELSE CASE WHEN nvl(DECODE({item.inventorylocation}, 'Charlotte SG', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Atlanta', {item.locationquantityavailable}),0) AND nvl(DECODE({item.inventorylocation}, 'Charlotte SG', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Youngstown', {item.locationquantityavailable}),0) AND nvl(DECODE({item.inventorylocation}, 'Charlotte SG', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Houston AFM', {item.locationquantityavailable}),0) AND nvl(DECODE({item.inventorylocation}, 'Charlotte SG', {item.locationquantityavailable}),0) > nvl(DECODE({item.inventorylocation}, 'Jackson', {item.locationquantityavailable}),0) THEN 'Charlotte SG' ELSE 'Not enough stock' END END END END END ELSE 'Not enough stock' END
Any ideas? I know it can probably be done using SQL but I just don't know how to do that yet, I was hoping there may be something I'm overlooking.Adnan Azam
11/24/2021, 8:36 PMAria Ghahari
11/29/2021, 2:50 PMDave Furman
11/29/2021, 8:55 PMsuitewill
12/07/2021, 6:01 PMSandii
12/07/2021, 6:11 PMsuitewill
12/07/2021, 8:10 PMKevinJ of Kansas
12/07/2021, 9:14 PMKevinJ of Kansas
12/07/2021, 9:15 PMKevinJ of Kansas
12/07/2021, 9:15 PMKevinJ of Kansas
12/08/2021, 8:57 PMMatt Armfield
12/10/2021, 2:11 PM{pricing.pricelevel.id}=18
{pricing.pricelevel.id}=20
{pricing.pricelevel.id}=21
I thought about CASE WHEN but not sure how to finish out the logic.
Any help will be greatly appreciated.Brian
12/10/2021, 8:47 PMLalo
12/15/2021, 12:12 AMNate Peterson
12/17/2021, 3:32 PMRich Keller
12/17/2021, 6:44 PMRJMNS
12/17/2021, 7:00 PMEsther
12/20/2021, 2:33 AMAK47
12/23/2021, 12:27 AMAK47
12/23/2021, 12:30 AMSim Greenbaum
12/30/2021, 4:19 AMLuis
01/05/2022, 2:10 AMChristiaan
01/05/2022, 10:29 AMAdnan Azam
01/06/2022, 4:10 PMMatt Armfield
01/06/2022, 6:43 PMMatt Armfield
01/07/2022, 2:20 PMMatt Armfield
01/07/2022, 2:22 PMMatt Armfield
01/07/2022, 4:21 PM