fix: refs #8731 customerBalance and test #1578

Merged
carlossa merged 7 commits from 8731-customerBalanceFix into master 2025-03-10 08:22:14 +00:00
1 changed files with 0 additions and 3 deletions
Showing only changes of commit dc600a568b - Show all commits

View File

@ -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 = '');