Skip to content

A free open source IT asset/license management system

Added sig and eula pdf to checkout_acceptance

snipe75acb0f28a2c
diff --git a/app/Models/CheckoutAcceptance.php b/app/Models/CheckoutAcceptance.php
index cc6ca37fd4..1f2af711f8 100644
--- a/app/Models/CheckoutAcceptance.php
+++ b/app/Models/CheckoutAcceptance.php
@@ -57,20 +57,24 @@ class CheckoutAcceptance extends Model
}
/**
- * Accept the checkout acceptance
+ * Add a record to the checkout_acceptance table ONLY.
+ * Do not add stuff here that doesn't have a corresponding column in the
+ * checkout_acceptances table or you'll get an error.
*
* @param string $signature_filename
*/
- public function accept($signature_filename)
+ public function accept($signature_filename, $eula = null, $filename = null)
{
$this->accepted_at = now();
$this->signature_filename = $signature_filename;
+ $this->stored_eula = $eula;
+ $this->stored_eula_file = $filename;
$this->save();
/**
* Update state for the checked out item
*/
- $this->checkoutable->acceptedCheckout($this->assignedTo, $signature_filename);
+ $this->checkoutable->acceptedCheckout($this->assignedTo, $signature_filename, $filename);
}
/**