Remove debugger and add discharged functions back
This commit is contained in:
parent
40f5a49dc8
commit
3843344abb
@ -125,6 +125,8 @@ export default {
|
|||||||
if (this.model) {
|
if (this.model) {
|
||||||
this.real_model = this.model;
|
this.real_model = this.model;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.$emit('interface', this.real_model);
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
@ -150,7 +152,6 @@ export default {
|
|||||||
addDays(dateInput) {
|
addDays(dateInput) {
|
||||||
if(!default_payment_terms) return;
|
if(!default_payment_terms) return;
|
||||||
|
|
||||||
console.log(dateInput)
|
|
||||||
const dateString = new Date(dateInput);
|
const dateString = new Date(dateInput);
|
||||||
const aMillisec = 86400000;
|
const aMillisec = 86400000;
|
||||||
const dateInMillisecs = dateString.getTime();
|
const dateInMillisecs = dateString.getTime();
|
||||||
@ -158,11 +159,14 @@ export default {
|
|||||||
const prospectedDueDate = new Date(dateInMillisecs + settingPaymentTermInMs);
|
const prospectedDueDate = new Date(dateInMillisecs + settingPaymentTermInMs);
|
||||||
|
|
||||||
return prospectedDueDate;
|
return prospectedDueDate;
|
||||||
debugger;
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
|
value: function(val) {
|
||||||
|
this.real_model = val;
|
||||||
|
},
|
||||||
|
|
||||||
dateConfig: function() {
|
dateConfig: function() {
|
||||||
if(!default_payment_terms || this.real_model < this.dateConfig.minDate) {
|
if(!default_payment_terms || this.real_model < this.dateConfig.minDate) {
|
||||||
this.real_model = this.dateConfig.minDate;
|
this.real_model = this.dateConfig.minDate;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user