Skip to content

Commit

Permalink
Added finbite logo and corrected structure.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Tsoganov authored and Sergei Tsoganov committed Sep 27, 2023
1 parent da66e18 commit 549bea4
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/views/invoices/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,13 @@
<%= button_to t('invoices.show.pay'), oneoff_invoice_path(uuid: @invoice.uuid), class: 'ui button primary' %>
</div>
<% end %>
<% unless @invoice.do_not_send_e_invoice? %>
<div class="column right aligned">
<div class="column right aligned">
<% if @invoice.do_not_send_e_invoice? %>
<a href="https://eservice.omniva.eu" target="_blank"><img src="/images/finbite.png" alt="EInvoice" style="height:40px;"/></a>
<% else %>
<%= button_to t('invoices.show.send_e_invoice'), send_e_invoice_path(uuid: @invoice.uuid), class: 'ui button default', data: { turbo: false } %>
</div>
<% end %>
<% end %>
</div>
</div>
</div>
</div>
Expand Down
82 changes: 82 additions & 0 deletions db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2769,6 +2769,88 @@ CREATE INDEX index_wishlist_items_on_domain_name ON public.wishlist_items USING

CREATE UNIQUE INDEX users_by_identity_code_and_country ON public.users USING btree (alpha_two_country_code, identity_code) WHERE ((alpha_two_country_code)::text = 'EE'::text);

--
-- Name: auctions process_auction_audit; Type: TRIGGER; Schema: public; Owner: -
--

CREATE TRIGGER process_auction_audit AFTER INSERT OR DELETE OR UPDATE ON public.auctions FOR EACH ROW EXECUTE FUNCTION public.process_auction_audit();


--
-- Name: bans process_ban_audit; Type: TRIGGER; Schema: public; Owner: -
--

CREATE TRIGGER process_ban_audit AFTER INSERT OR DELETE OR UPDATE ON public.bans FOR EACH ROW EXECUTE FUNCTION public.process_ban_audit();


--
-- Name: billing_profiles process_billing_profile_audit; Type: TRIGGER; Schema: public; Owner: -
--

CREATE TRIGGER process_billing_profile_audit AFTER INSERT OR DELETE OR UPDATE ON public.billing_profiles FOR EACH ROW EXECUTE FUNCTION public.process_billing_profile_audit();


--
-- Name: invoices process_invoice_audit; Type: TRIGGER; Schema: public; Owner: -
--

CREATE TRIGGER process_invoice_audit AFTER INSERT OR DELETE OR UPDATE ON public.invoices FOR EACH ROW EXECUTE FUNCTION public.process_invoice_audit();


--
-- Name: invoice_items process_invoice_item_audit; Type: TRIGGER; Schema: public; Owner: -
--

CREATE TRIGGER process_invoice_item_audit AFTER INSERT OR DELETE OR UPDATE ON public.invoice_items FOR EACH ROW EXECUTE FUNCTION public.process_invoice_item_audit();


--
-- Name: invoice_payment_orders process_invoice_payment_order_audit; Type: TRIGGER; Schema: public; Owner: -
--

CREATE TRIGGER process_invoice_payment_order_audit AFTER INSERT OR DELETE OR UPDATE ON public.invoice_payment_orders FOR EACH ROW EXECUTE FUNCTION public.process_invoice_payment_order_audit();


--
-- Name: offers process_offer_audit; Type: TRIGGER; Schema: public; Owner: -
--

CREATE TRIGGER process_offer_audit AFTER INSERT OR DELETE OR UPDATE ON public.offers FOR EACH ROW EXECUTE FUNCTION public.process_offer_audit();


--
-- Name: payment_orders process_payment_order_audit; Type: TRIGGER; Schema: public; Owner: -
--

CREATE TRIGGER process_payment_order_audit AFTER INSERT OR DELETE OR UPDATE ON public.payment_orders FOR EACH ROW EXECUTE FUNCTION public.process_payment_order_audit();


--
-- Name: results process_result_audit; Type: TRIGGER; Schema: public; Owner: -
--

CREATE TRIGGER process_result_audit AFTER INSERT OR DELETE OR UPDATE ON public.results FOR EACH ROW EXECUTE FUNCTION public.process_result_audit();


--
-- Name: settings process_setting_audit; Type: TRIGGER; Schema: public; Owner: -
--

CREATE TRIGGER process_setting_audit AFTER INSERT OR DELETE OR UPDATE ON public.settings FOR EACH ROW EXECUTE FUNCTION public.process_setting_audit();


--
-- Name: users process_user_audit; Type: TRIGGER; Schema: public; Owner: -
--

CREATE TRIGGER process_user_audit AFTER INSERT OR DELETE OR UPDATE ON public.users FOR EACH ROW EXECUTE FUNCTION public.process_user_audit();


--
-- Name: wishlist_items process_wishlist_item_audit; Type: TRIGGER; Schema: public; Owner: -
--

CREATE TRIGGER process_wishlist_item_audit AFTER INSERT OR DELETE OR UPDATE ON public.wishlist_items FOR EACH ROW EXECUTE FUNCTION public.process_wishlist_item_audit();

--
-- Name: bans fk_rails_070022cd76; Type: FK CONSTRAINT; Schema: public; Owner: -
Expand Down
Binary file added public/images/finbite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 549bea4

Please sign in to comment.