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