king
2023-06-14 08cce3334a2dc81d690b518136b0aaea64e48b0b
src/tabviews/custom/components/module/voucher/voucherTable/index.jsx
@@ -110,6 +110,10 @@
      subAccounts.forEach(item => {
        if (item.field === 'supplier') {
          account[item.field] = {suppliercode: item.value, suppliername: item.name}
        } else if (item.field === 'logistics') {
          account[item.field] = {logistics_code: item.value, logistics_name: item.name}
        } else if (item.field === 'lessor') {
          account[item.field] = {lessor_code: item.value, lessor_name: item.name}
        } else if (item.field === 'customer') {
          account[item.field] = {customercode: item.value, customername: item.name}
        } else if (item.field === 'department') {
@@ -764,6 +768,10 @@
              record.supAccounts.forEach(item => {
                if (item.sup_acc_type === 'supplier') {
                  val += item.suppliercode ? '_' + item.suppliercode + ' ' + item.suppliername : ''
                } else if (item.sup_acc_type === 'logistics') {
                  val += item.logistics_code ? '_' + item.logistics_code + ' ' + item.logistics_name : ''
                } else if (item.sup_acc_type === 'lessor') {
                  val += item.lessor_code ? '_' + item.lessor_code + ' ' + item.lessor_name : ''
                } else if (item.sup_acc_type === 'customer') {
                  val += item.customercode ? '_' + item.customercode + ' ' + item.customername : ''
                } else if (item.sup_acc_type === 'department') {