Batch disposal
This commit is contained in:
@@ -241,6 +241,24 @@
|
||||
<label for="dispenseAnimal">Animal Name/ID</label>
|
||||
<input type="text" id="dispenseAnimal">
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-top: 18px; padding: 12px; background: #f9fafb; border: 1px solid #d9e2ec; border-radius: 6px;">
|
||||
<label style="display: inline-flex; align-items: center; gap: 8px; margin-bottom: 0; font-weight: 600;">
|
||||
<input type="checkbox" id="dispensePrintEnabled">
|
||||
Print label after dispensing
|
||||
</label>
|
||||
<div id="dispensePrintFields" style="display: none; margin-top: 12px;">
|
||||
<p id="dispensePrintHelpText" style="margin: 0 0 12px; color: #666;">Uses the dispensed quantity, the animal name/ID entered above, the logged-in user, and the latest expiry date from the allocated batches.</p>
|
||||
<div class="form-group">
|
||||
<label for="dispenseDosage">Dosage Instructions *</label>
|
||||
<input type="text" id="dispenseDosage" placeholder="e.g., 1 tablet twice daily with food">
|
||||
</div>
|
||||
<div class="form-group" id="dispenseLegacyExpiryGroup" style="display: none;">
|
||||
<label for="dispenseLegacyExpiry">Expiry Date *</label>
|
||||
<input type="date" id="dispenseLegacyExpiry">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="dispenseNotes">Notes</label>
|
||||
@@ -549,6 +567,36 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Dispose Batch Modal -->
|
||||
<div id="disposeBatchModal" class="modal">
|
||||
<div class="modal-content">
|
||||
<span class="close">×</span>
|
||||
<h2>Dispose Expired Batch</h2>
|
||||
<form id="disposeBatchForm" novalidate>
|
||||
<input type="hidden" id="disposeBatchId">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="disposeBatchName">Batch</label>
|
||||
<input type="text" id="disposeBatchName" disabled>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<p style="margin: 0; color: #666;">This will mark the expired batch as disposed and remove its remaining stock from inventory.</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="disposeBatchNotes">Disposal Note</label>
|
||||
<textarea id="disposeBatchNotes" rows="4" placeholder="Optional note for the audit log"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-danger">Confirm Disposal</button>
|
||||
<button type="button" class="btn btn-secondary" id="cancelDisposeBatchBtn">Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Batch Receive Modal -->
|
||||
<div id="batchReceiveModal" class="modal">
|
||||
<div class="modal-content">
|
||||
|
||||
Reference in New Issue
Block a user