diff --git a/myproject/orders/static/orders/js/payment_widget.js b/myproject/orders/static/orders/js/payment_widget.js index da6e18b..f25ac12 100644 --- a/myproject/orders/static/orders/js/payment_widget.js +++ b/myproject/orders/static/orders/js/payment_widget.js @@ -71,15 +71,6 @@ export class PaymentWidget { - -
- - -
- ${this.mode === 'mixed' ? `
@@ -186,7 +177,6 @@ export class PaymentWidget { } const amountInput = document.getElementById(`${this.containerId}-amount`); - const notesInput = document.getElementById(`${this.containerId}-notes`); const amount = parseFloat(amountInput.value); @@ -208,7 +198,7 @@ export class PaymentWidget { method_code: this.selectedMethod.code, method_name: this.selectedMethod.name, amount: amount, - notes: notesInput.value.trim() + notes: '' // Примечания не используются в POS }); // Обновляем UI @@ -217,7 +207,6 @@ export class PaymentWidget { // Сбрасываем форму const remaining = this.order.amount_due - this.getTotalPayments(); amountInput.value = remaining > 0 ? remaining.toFixed(2) : '0.00'; - notesInput.value = ''; // Снимаем выделение способа document.querySelectorAll(`#${this.containerId}-methods .payment-method-btn`).forEach(b => { @@ -256,7 +245,6 @@ export class PaymentWidget {
${p.method_name} ${p.amount.toFixed(2)} руб. - ${p.notes ? `
${p.notes}` : ''}