You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
630 B
JavaScript
25 lines
630 B
JavaScript
export const tsroute = function(){
|
|
let r = window.location.href.split('/').pop();
|
|
if (r === 'kaskeluar'){
|
|
return {
|
|
status: 'K',
|
|
cash: 'Bayar Dari',
|
|
titlec: 'KAS KELUAR',
|
|
title: 'Kas Keluar',
|
|
kode: 'CASH/OUT',
|
|
db: 'cash/out'
|
|
}
|
|
} else if (r === 'kasmasuk'){
|
|
return {
|
|
status: 'D',
|
|
cash: 'Terima Ke',
|
|
titlec: 'KAS MASUK',
|
|
title: 'Kas Masuk',
|
|
kode: 'CASH/IN',
|
|
db: 'cash/in'
|
|
}
|
|
} else {
|
|
location.reload();
|
|
throw 'stoped';
|
|
}
|
|
} |