|
@@ -3631,6 +3631,7 @@ function updateConfigurableOptions(i, billingCycle) {
|
|
|
}
|
|
}
|
|
|
);
|
|
);
|
|
|
recalctotals();
|
|
recalctotals();
|
|
|
|
|
+ updateProductTotalMessage(billingCycle);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function recalctotals() {
|
|
function recalctotals() {
|
|
@@ -3849,12 +3850,7 @@ function updateProductTotalMessage(billingcycle) {
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
billingDay = daysIntoYear(billingDate);
|
|
billingDay = daysIntoYear(billingDate);
|
|
|
- if ((billingDay - orderDay) < 12) {
|
|
|
|
|
- jQuery('#producttotalmessage').html('<i class="fa fa-info-circle" aria-hidden="true"></i> Der Preis summiert sich aus den verbleibenden<br><b>' + (billingDay - orderDay) + ' Tagen</b> bis zum Ende dieses ' + periodString + ' und des nächsten ' + periodString + '.<br>Nächste Fälligkeit ist am ' + billingDate.toLocaleDateString());
|
|
|
|
|
- } else {
|
|
|
|
|
- jQuery('#producttotalmessage').html('<i class="fa fa-info-circle" aria-hidden="true"></i> Der Preis berechnet die verbleibenden<br><b>' + (billingDay - orderDay) + ' Tage</b> dieses ' + periodString + '.<br>Nächste Fälligkeit ist am ' + billingDate.toLocaleDateString());
|
|
|
|
|
- }
|
|
|
|
|
-// console.log((billingDay - orderDay)) + 'Zahltag: ' + billingDate;
|
|
|
|
|
|
|
+ jQuery('#producttotalmessage').html('<i class="fa fa-info-circle" aria-hidden="true"></i> Der Preis berechnet die verbleibenden<br><b>' + (billingDay - orderDay) + ' Tage</b> dieses ' + periodString + '.<br>Nächste Fälligkeit ist am ' + billingDate.toLocaleDateString());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function daysIntoYear(date){
|
|
function daysIntoYear(date){
|