Subversion Repositories SmartDukaan

Rev

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

Rev 12424 Rev 12425
Line 820... Line 820...
820
        amazonScrapingHistory.runType = RunType._NAMES_TO_VALUES.get(runType)
820
        amazonScrapingHistory.runType = RunType._NAMES_TO_VALUES.get(runType)
821
        amazonScrapingHistory.totalSeller = amDetails.totalSeller
821
        amazonScrapingHistory.totalSeller = amDetails.totalSeller
822
        amazonScrapingHistory.competitiveCategory = CompetitionCategory.ALMOST_COMPETE
822
        amazonScrapingHistory.competitiveCategory = CompetitionCategory.ALMOST_COMPETE
823
        amazonScrapingHistory.timestamp = timestamp
823
        amazonScrapingHistory.timestamp = timestamp
824
        amazonScrapingHistory.multipleListings = amDetails.multipleListings
824
        amazonScrapingHistory.multipleListings = amDetails.multipleListings
825
        proposed_sp = min(amDetails.lowestSellerSp(1+.01),amPricing.lowestPossibleSp)
825
        proposed_sp = min(amDetails.lowestSellerSp*(1+.01),amPricing.lowestPossibleSp)
826
        proposed_tp = getTargetTp(proposed_sp,spm,val)
826
        proposed_tp = getTargetTp(proposed_sp,spm,val)
827
        target_nlc = proposed_tp - amPricing.lowestPossibleTp + val.nlc
827
        target_nlc = proposed_tp - amPricing.lowestPossibleTp + val.nlc
828
        amazonScrapingHistory.proposedSp = proposed_sp
828
        amazonScrapingHistory.proposedSp = proposed_sp
829
        amazonScrapingHistory.proposedTp = proposed_tp
829
        amazonScrapingHistory.proposedTp = proposed_tp
830
        amazonScrapingHistory.targetNlc = target_nlc
830
        amazonScrapingHistory.targetNlc = target_nlc