|
53 | 53 | > |
54 | 54 | </th> |
55 | 55 | <th class="col col-sm-1"> |
56 | | - <span @click="update_sort('due_date')" class="check-run-sort-indicator" id="check-run-due-date-sort" |
| 56 | + <span |
| 57 | + v-if="frm.settings.show_due_date == 'Show Days Past Due'" |
| 58 | + @click="update_sort('due_date')" |
| 59 | + class="check-run-sort-indicator" |
| 60 | + id="check-run-due-date-sort" |
| 61 | + >Days Past Due ⬍</span |
| 62 | + > |
| 63 | + <span v-else @click="update_sort('due_date')" class="check-run-sort-indicator" id="check-run-due-date-sort" |
57 | 64 | >Due Date ⬍</span |
58 | 65 | > |
59 | 66 | </th> |
|
62 | 69 | class="col col-sm-1" |
63 | 70 | style="text-align: left"> |
64 | 71 | <div class="d-flex align-items-center justify-between gap-2"> |
65 | | - <span>Pay</span> |
| 72 | + <input |
| 73 | + type="checkbox" |
| 74 | + autocomplete="off" |
| 75 | + class="input-with-feedback reconciliation" |
| 76 | + data-fieldtype="Check" |
| 77 | + v-model="selectAll" /><span>Select All</span> |
66 | 78 | <span class="filter-icon" style="cursor: pointer" @click="show_paid_filter = !show_paid_filter"> |
67 | 79 | <svg class="icon icon-sm"> |
68 | 80 | <use href="#icon-filter"></use> |
69 | 81 | </svg> |
70 | 82 | </span> |
71 | 83 | </div> |
72 | | - |
73 | 84 | <div v-if="show_paid_filter" class="mt-2"> |
74 | 85 | <select class="form-control form-select form-select-sm" v-model="filters.paid_filter"> |
75 | 86 | <option value="All">All</option> |
76 | 87 | <option value="Paid">Paid</option> |
77 | 88 | <option value="Unpaid">Unpaid</option> |
| 89 | + <option value="On Hold">On Hold</option> |
78 | 90 | </select> |
79 | 91 | </div> |
80 | 92 | </th> |
|
143 | 155 | <span v-else>{{ transactions[item.name].mode_of_payment }}</span> |
144 | 156 | </td> |
145 | 157 | <td>{{ format_currency(item.amount, frm.pay_to_account_currency, 2) }}</td> |
146 | | - <td>{{ datetime.str_to_user(item.due_date) }}</td> |
147 | | - <td v-if="['Draft', 'Pending Approval', 'Approved'].includes(frm.doc.status)" style="text-align: left"> |
| 158 | + <td>{{ item.due_date }}</td> |
| 159 | + <td v-if="item.on_hold && frm.settings.automatically_release_on_hold_invoices == 0"> |
| 160 | + <span style="font-weight: bold">On Hold</span> |
| 161 | + </td> |
| 162 | + <td v-else-if="['Draft', 'Pending Approval', 'Approved'].includes(frm.doc.status)" style="text-align: left"> |
148 | 163 | <input |
149 | 164 | type="checkbox" |
150 | 165 | class="input-with-feedback checkrun-check-box" |
@@ -197,6 +212,7 @@ let orderedTransactions = computed(() => { |
197 | 212 | if (filters.paid_filter && filters.paid_filter !== 'All') { |
198 | 213 | if (filters.paid_filter === 'Paid' && !item.pay) return false |
199 | 214 | if (filters.paid_filter === 'Unpaid' && item.pay) return false |
| 215 | + if (filters.paid_filter === 'On Hold' && !item.on_hold) return false |
200 | 216 | } |
201 | 217 |
|
202 | 218 | return true |
|
0 commit comments