This commit is contained in:
parent
1c48a6d504
commit
dc600a568b
|
@ -76,17 +76,14 @@ onBeforeMount(() => {
|
||||||
|
|
||||||
function setPaymentType(data, accounting) {
|
function setPaymentType(data, accounting) {
|
||||||
data.bankFk = accounting.id;
|
data.bankFk = accounting.id;
|
||||||
console.log('accounting: ', accounting);
|
|
||||||
if (!accounting) return;
|
if (!accounting) return;
|
||||||
accountingType.value = accounting.accountingType;
|
accountingType.value = accounting.accountingType;
|
||||||
console.log('accountingType.value: ', accountingType.value);
|
|
||||||
data.description = [];
|
data.description = [];
|
||||||
data.payed = Date.vnNew();
|
data.payed = Date.vnNew();
|
||||||
isCash.value = accountingType.value.code == 'cash';
|
isCash.value = accountingType.value.code == 'cash';
|
||||||
viewReceipt.value = isCash.value;
|
viewReceipt.value = isCash.value;
|
||||||
if (accountingType.value.daysInFuture)
|
if (accountingType.value.daysInFuture)
|
||||||
data.payed.setDate(data.payed.getDate() + accountingType.value.daysInFuture);
|
data.payed.setDate(data.payed.getDate() + accountingType.value.daysInFuture);
|
||||||
console.log('data.payed', data.payed);
|
|
||||||
maxAmount.value = accountingType.value && accountingType.value.maxAmount;
|
maxAmount.value = accountingType.value && accountingType.value.maxAmount;
|
||||||
if (accountingType.value.code == 'compensation') return (data.description = '');
|
if (accountingType.value.code == 'compensation') return (data.description = '');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue