mirror of
https://github.com/System-End/theseus.git
synced 2026-04-19 16:38:18 +00:00
lol, lmao
This commit is contained in:
parent
b07832adda
commit
cc19ab2bb0
4 changed files with 0 additions and 16 deletions
|
|
@ -32,7 +32,6 @@ class Letter::InstantQueuesController < Letter::QueuesController
|
|||
:usps_payment_account_id,
|
||||
:hcb_payment_account_id,
|
||||
:include_qr_code,
|
||||
:letter_mailing_date,
|
||||
tags: [],
|
||||
)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -42,14 +42,11 @@
|
|||
# fk_rails_... (usps_payment_account_id => usps_payment_accounts.id)
|
||||
#
|
||||
class Letter::InstantQueue < Letter::Queue
|
||||
# TODO: drop mailing date, wtf?
|
||||
|
||||
# Validations
|
||||
validates :template, presence: true
|
||||
validates :postage_type, presence: true, inclusion: { in: %w[indicia stamps international_origin] }
|
||||
validates :usps_payment_account_id, presence: true, if: :indicia?
|
||||
validates :hcb_payment_account_id, presence: true, if: :indicia?
|
||||
validates :letter_mailing_date, presence: true, if: :indicia?
|
||||
|
||||
# Associations
|
||||
belongs_to :usps_payment_account, class_name: "USPS::PaymentAccount", optional: true
|
||||
|
|
|
|||
|
|
@ -25,10 +25,4 @@
|
|||
<strong>QR Code:</strong>
|
||||
<%= instant_queue.include_qr_code ? "Yes" : "No" %>
|
||||
</p>
|
||||
<% if instant_queue.letter_mailing_date %>
|
||||
<p>
|
||||
<strong>Mailing Date:</strong>
|
||||
<%= instant_queue.letter_mailing_date.strftime("%B %d, %Y") %>
|
||||
</p>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
@ -107,12 +107,6 @@
|
|||
<%= form.label :include_qr_code, "Include QR Code", class: "form-label" %>
|
||||
<%= form.check_box :include_qr_code, class: "form-checkbox", checked: letter_queue.include_qr_code.nil? ? true : letter_queue.include_qr_code %>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<%= form.label :letter_mailing_date, "Mailing Date", class: "form-label" %>
|
||||
<%= form.date_field :letter_mailing_date,
|
||||
class: "form-control",
|
||||
value: letter_queue.letter_mailing_date || Date.current %>
|
||||
</div>
|
||||
</div>
|
||||
<% admin_tool do %>
|
||||
<div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue