This commit is contained in:
@@ -66,12 +66,17 @@ namespace Sockeye.Biz
|
|||||||
if (purchase.PGroup == ProductGroup.AyaNova7 && DateTime.UtcNow - purchase.PurchaseDate < PROCESS_V7_AGE)
|
if (purchase.PGroup == ProductGroup.AyaNova7 && DateTime.UtcNow - purchase.PurchaseDate < PROCESS_V7_AGE)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
log.LogDebug($"Processing purchase id:{purchaseGroup[0].Id},purchasedate:{purchaseGroup.PurchaseDate}, custid:{purchaseGroup.CustomerId}");
|
|
||||||
|
|
||||||
//if v7 product group the purchase must be more than 5 minutes old to account for mycommerce trickling in add-on bits to a v7 order
|
LEFT OFF HERE, the stuff below here is old stuff rom copied code so wipe adn repurpose as required
|
||||||
//(I went over old sales, mycommerce has at most 2 minutes variance in multiple item order on same day with the exception of unusual situations like where part
|
//was about to encode
|
||||||
//of an order was on an invalid credit card or not updated in one case, another was a refund and purchase of alternate item etc)
|
|
||||||
//So in the normal course of things going to assume the best and check further down if something seems missing from last license
|
//if v7 license then lookup last license for same pgroup for same customer, if none then consider it a new license fresh
|
||||||
|
//if there is one and it's not entirely expired then duplicate and fixup from purchases in this group
|
||||||
|
|
||||||
|
//IF raven license and have what is likely a recognizable dbid that ends in an = symbol then just make the new license and cancel the last one if that's necessary
|
||||||
|
|
||||||
|
|
||||||
|
log.LogDebug($"Processing purchase id:{purchaseGroup[0].Id},purchasedate:{purchaseGroup.PurchaseDate}, custid:{purchaseGroup.CustomerId}");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user