Compare commits

..

2 Commits

3 changed files with 5 additions and 0 deletions
+1
View File
@@ -3157,6 +3157,7 @@ def library_loans_admin():
'damage_text': (damage_reports[0].get('description', '') if damage_reports else ''),
'available': bool(item_doc.get('Verfuegbar', False)),
'last_updated': fmt_dt(item_doc.get('LastUpdated')),
'acquisition_costs': fmt_money(item_doc.get('Anschaffungskosten'))
})
return render_template(
@@ -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;
+2
View File
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail
sudo find /tmp -maxdepth 1 -name "tmp.*" -exec rm -rf {} +
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
cd "$SCRIPT_DIR"