lol, lmao

This commit is contained in:
24c02 2025-12-19 20:27:12 -05:00
parent b07832adda
commit cc19ab2bb0
4 changed files with 0 additions and 16 deletions

View file

@ -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

View file

@ -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

View file

@ -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>

View file

@ -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>