implementet automatic including of the price

This commit is contained in:
2026-07-27 20:16:53 +02:00
parent c4dd18a2e4
commit 3068f44563
2 changed files with 3 additions and 0 deletions
@@ -530,6 +530,8 @@
const itemCode = row.dataset.itemCode || '';
const itemCost = row.dataset.itemCost || '';
document.getElementById("damage-invoice-amount").value = "{{ item.acquisition_costs }}";
damageInvoiceForm.action = "{{ url_for('admin_create_invoice', borrow_id='__BORROW_ID__') }}".replace('__BORROW_ID__', borrowId);
damageInvoiceItem.value = itemName;
damageInvoiceBorrower.value = borrower;