Net 14
This commit is contained in:
@@ -117,8 +117,8 @@ function getTermDays(inv) {
|
||||
return parseInt(match[1], 10);
|
||||
}
|
||||
|
||||
// Default in deiner App ist Net 30
|
||||
return 30;
|
||||
// Default in deiner App ist Net 14
|
||||
return 14;
|
||||
}
|
||||
|
||||
function addDays(dateValue, days) {
|
||||
@@ -150,7 +150,7 @@ function getEffectiveDueDate(inv) {
|
||||
|
||||
// WICHTIG:
|
||||
// Für Overdue zählt der erste tatsächliche Versand.
|
||||
// Bei Net 30 also first_sent_date + 30 Tage.
|
||||
// Bei Net 14 also first_sent_date + 30 Tage.
|
||||
return addDays(firstSentDate, getTermDays(inv));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user