fix today into yesterday date in ringkasan terkumpul
This commit is contained in:
@@ -41,7 +41,8 @@ export default {
|
||||
return{
|
||||
jenisgenerate:'none',
|
||||
kodcaw:'',
|
||||
maxDate: null
|
||||
maxDate: null,
|
||||
yesterday: null
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -49,8 +50,10 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
setMaxDate() {
|
||||
const today = new Date().toISOString().split('T')[0];
|
||||
this.maxDate = today;
|
||||
const today = new Date();
|
||||
today.setDate(today.getDate() - 1);
|
||||
this.yesterday = today.toISOString().split('T')[0];
|
||||
this.maxDate = this.yesterday;
|
||||
},
|
||||
async generatepdf(){
|
||||
await this.setJenis('pdf');
|
||||
|
||||
Reference in New Issue
Block a user