Subversion Repositories SmartDukaan

Rev

Rev 15524 | Rev 15664 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15524 Rev 15661
Line 537... Line 537...
537
    for fbaInventoryItem in fbaAvailableInventorySnapshot:
537
    for fbaInventoryItem in fbaAvailableInventorySnapshot:
538
        if runType=='FAVOURITE':
538
        if runType=='FAVOURITE':
539
            if not (fbaInventoryItem.item_id in favourites):
539
            if not (fbaInventoryItem.item_id in favourites):
540
                continue 
540
                continue 
541
        d_amazon_listed = Amazonlisted.get_by(itemId=fbaInventoryItem.item_id)
541
        d_amazon_listed = Amazonlisted.get_by(itemId=fbaInventoryItem.item_id)
-
 
542
        if d_amazon_listed is None:
-
 
543
            if fbaInventoryItem.location==0:
-
 
544
                sku = 'FBA'+str(fbaInventoryItem.item_id)
-
 
545
                notListed.append(sku)
-
 
546
            elif fbaInventoryItem.location==1:
-
 
547
                sku = 'FBB'+str(fbaInventoryItem.item_id)
-
 
548
                notListed.append(sku)
-
 
549
            elif fbaInventoryItem.location==2:
-
 
550
                sku = 'FBG'+str(fbaInventoryItem.item_id)
-
 
551
                notListed.append(sku)
-
 
552
            else:
-
 
553
                pass
-
 
554
            continue
542
        if fbaInventoryItem.location==0:
555
        if fbaInventoryItem.location==0:
543
            if not d_amazon_listed.isFba:
556
            if not d_amazon_listed.isFba:
544
                sku = 'FBA'+str(fbaInventoryItem.item_id)
557
                sku = 'FBA'+str(fbaInventoryItem.item_id)
545
                toList.append(sku)
558
                toList.append(sku)
546
        elif fbaInventoryItem.location==1:
559
        elif fbaInventoryItem.location==1:
Line 551... Line 564...
551
            if not d_amazon_listed.isFbg:
564
            if not d_amazon_listed.isFbg:
552
                sku = 'FBG'+str(fbaInventoryItem.item_id)
565
                sku = 'FBG'+str(fbaInventoryItem.item_id)
553
                toList.append(sku)
566
                toList.append(sku)
554
        else:
567
        else:
555
            pass
568
            pass
556
        if d_amazon_listed is None:
-
 
557
            if fbaInventoryItem.location==0:
-
 
558
                sku = 'FBA'+str(fbaInventoryItem.item_id)
-
 
559
                notListed.append(sku)
-
 
560
            elif fbaInventoryItem.location==1:
-
 
561
                sku = 'FBB'+str(fbaInventoryItem.item_id)
-
 
562
                notListed.append(sku)
-
 
563
            elif fbaInventoryItem.location==2:
-
 
564
                sku = 'FBG'+str(fbaInventoryItem.item_id)
-
 
565
                notListed.append(sku)
-
 
566
            else:
-
 
567
                pass
-
 
568
            continue
-
 
569
        if d_amazon_listed.overrrideWanlc:
569
        if d_amazon_listed.overrrideWanlc:
570
            isNlcOverridden = True
570
            isNlcOverridden = True
571
            wanlc = d_amazon_listed.exceptionalWanlc
571
            wanlc = d_amazon_listed.exceptionalWanlc
572
            if wanlc is None:
572
            if wanlc is None:
573
                wanlc = 0.0
573
                wanlc = 0.0