Subversion Repositories SmartDukaan

Rev

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

Rev 9923 Rev 9945
Line 18... Line 18...
18
    SourceItemPricing, AuthorizationLog, VoucherItemMapping, CategoryVatMaster, \
18
    SourceItemPricing, AuthorizationLog, VoucherItemMapping, CategoryVatMaster, \
19
    OOSTracker, EntityTag, ItemInsurerMapping, Insurer, Banner, BannerMap, \
19
    OOSTracker, EntityTag, ItemInsurerMapping, Insurer, Banner, BannerMap, \
20
    FreebieItem, BrandInfo, Amazonlisted, StorePricing, ItemVatMaster, \
20
    FreebieItem, BrandInfo, Amazonlisted, StorePricing, ItemVatMaster, \
21
    PageViewEvents, CartEvents, EbayItem, BannerUriMapping, Campaign, SnapdealItem, \
21
    PageViewEvents, CartEvents, EbayItem, BannerUriMapping, Campaign, SnapdealItem, \
22
    SnapdealItemUpdateHistory, ProductFeedSubmit, MarketplaceItems, MarketPlaceItemPrice, \
22
    SnapdealItemUpdateHistory, ProductFeedSubmit, MarketplaceItems, MarketPlaceItemPrice, \
23
    SourcePercentageMaster, SourceItemPercentage
23
    SourcePercentageMaster, SourceItemPercentage, FlipkartItem
24
from shop2020.thriftpy.model.v1.catalog.ttypes import status, ItemShippingInfo, \
24
from shop2020.thriftpy.model.v1.catalog.ttypes import status, ItemShippingInfo, \
25
    ItemType, PremiumType, FreebieItem as t_FreebieItem, \
25
    ItemType, PremiumType, FreebieItem as t_FreebieItem, \
26
    StorePricing as tStorePricing, CatalogServiceException, \
26
    StorePricing as tStorePricing, CatalogServiceException, \
27
    BannerType, InsurerType
27
    BannerType, InsurerType
28
from shop2020.thriftpy.model.v1.inventory.ttypes import \
28
from shop2020.thriftpy.model.v1.inventory.ttypes import \
Line 2410... Line 2410...
2410
                inHouseCost = 15 + vat + (marketplaceitem.returnProvision/100)*item.sellingPrice + marketplaceitem.otherCost
2410
                inHouseCost = 15 + vat + (marketplaceitem.returnProvision/100)*item.sellingPrice + marketplaceitem.otherCost
2411
                marketplaceitem.minimumPossibleTp  = nlc + inHouseCost
2411
                marketplaceitem.minimumPossibleTp  = nlc + inHouseCost
2412
                marketplaceitem.minimumPossibleSp = (nlc+(item.courierCost+marketplaceitem.closingFee)*(1+(marketplaceitem.serviceTax/100))*(1+(marketplaceitem.vat/100))+(15+marketplaceitem.otherCost)*(1+(marketplaceitem.vat)/100))/(1-(marketplaceitem.commission/100+marketplaceitem.emiFee/100)*(1+(marketplaceitem.serviceTax/100))*(1+(marketplaceitem.vat)/100)-(marketplaceitem.returnProvision/100)*(1+(marketplaceitem.vat)/100))
2412
                marketplaceitem.minimumPossibleSp = (nlc+(item.courierCost+marketplaceitem.closingFee)*(1+(marketplaceitem.serviceTax/100))*(1+(marketplaceitem.vat/100))+(15+marketplaceitem.otherCost)*(1+(marketplaceitem.vat)/100))/(1-(marketplaceitem.commission/100+marketplaceitem.emiFee/100)*(1+(marketplaceitem.serviceTax/100))*(1+(marketplaceitem.vat)/100)-(marketplaceitem.returnProvision/100)*(1+(marketplaceitem.vat)/100))
2413
                session.commit()
2413
                session.commit()
2414
    finally:
2414
    finally:
2415
        close_session()
-
 
2416
2415
        close_session()
-
 
2416
        
-
 
2417
def get_all_flipkart_items():
-
 
2418
    return session.query(FlipkartItem).all()
-
 
2419
2417
2420