Skip to content

Commit

Permalink
Display order fee when mode is not NONE
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowdashlabs committed Jun 22, 2024
1 parent 2b9add4 commit a6d03bb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package de.eldoria.companies.orders;

import de.eldoria.companies.configuration.elements.OrderSettings;
import de.eldoria.companies.configuration.elements.ordersettings.FeeMode;
import de.eldoria.companies.data.repository.AOrderData;
import de.eldoria.companies.data.wrapper.order.FullOrder;
import de.eldoria.companies.data.wrapper.order.OrderContent;
Expand Down Expand Up @@ -110,7 +111,7 @@ public String asComponent(OrderSettings setting, Economy economy, AOrderData ord

double fee = setting.fees().orderFee(this);

if (fee > 0) {
if (setting.fees().mode() != FeeMode.NONE) {
composer.newLine()
.text("<name>")
.localeCode("words.fee")
Expand Down

0 comments on commit a6d03bb

Please sign in to comment.