This commit is contained in:
2026-02-13 14:19:15 +01:00
commit c0beb640e6
1591 changed files with 308373 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
/**
* Add Payment Offcanvas
*/
'use strict';
(function () {
// Invoice amount
const paymentAmount = document.querySelector('.invoice-amount');
// Prefix
if (paymentAmount) {
new Cleave(paymentAmount, {
numeral: true
});
}
// Datepicker
const date = new Date(),
invoiceDateList = document.querySelectorAll('.invoice-date');
if (invoiceDateList) {
invoiceDateList.forEach(function (invoiceDateEl) {
invoiceDateEl.flatpickr({
monthSelectorType: 'static',
defaultDate: date
});
});
}
})();