Skip to content

Commit

Permalink
remove 'samecostcenter' and 'samecostcenterforcredits' form settings …
Browse files Browse the repository at this point in the history
…and strings (#86)
  • Loading branch information
semteacher committed Nov 6, 2024
1 parent 1aeccd2 commit 82d34bc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 24 deletions.
5 changes: 0 additions & 5 deletions lang/de/local_shopping_cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -512,11 +512,6 @@
$string['ro'] = "Rumänien";
$string['rounddiscounts'] = 'Rabatte runden';
$string['rounddiscounts_desc'] = 'Rabatte auf ganze Zahlen runden (mathematisch, ohne Nachkommastellen)';
$string['samecostcenter'] = 'Nur eine Kostenstelle pro Zahlungsvorgang';
$string['samecostcenter_desc'] = 'Alle Items im Warenkorb müssen die selbe Kostenstelle haben.
Items mit unterschiedlichen Kostenstellen müssen separat gebucht werden.';
$string['samecostcenterforcredits'] = 'Guthaben nur für selbe Kostenstellen verwenden';
$string['samecostcenterforcredits_desc'] = 'Wenn diese Einstellung aktiviert ist und einE NutzerIn Guthaben erhält, so kann dieses Guthaben nur für Artikel der selben Kostenstelle verwendet werden.';
$string['saveinvoicenumber'] = 'Nur Rechnungsnummer speichern';
$string['sch_paymentaccountid'] = "Wechsle das Zahlungsanbieter-Konto";
$string['se'] = "Schweden";
Expand Down
5 changes: 0 additions & 5 deletions lang/en/local_shopping_cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -581,11 +581,6 @@
$string['ro'] = "Romania";
$string['rounddiscounts'] = 'Round discounts';
$string['rounddiscounts_desc'] = 'Round discounts to full numbers (no decimals)';
$string['samecostcenter'] = 'Only one cost center per payment';
$string['samecostcenter_desc'] = 'All payment items in shopping cart need to have the same cost center.
Items with different cost centers need to be booked separately.';
$string['samecostcenterforcredits'] = 'Use credits only for the same costcenter';
$string['samecostcenterforcredits_desc'] = 'If this setting is turned on and a user receives credits, these credits can only be used for items with the same costcenter.';
$string['saveinvoicenumber'] = 'Just save invoice number';
$string['sch_paymentaccountid'] = "Change the payment account";
$string['se'] = "Sweden";
Expand Down
14 changes: 0 additions & 14 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,20 +177,7 @@
'shipping' => ucfirst(new lang_string('addresses:shipping', 'local_shopping_cart')),
]
));
// If this setting is turned on, all payment items in shopping cart need to have the same cost center.
$settings->add(
new admin_setting_configcheckbox($componentname . '/samecostcenter',
get_string('samecostcenter', 'local_shopping_cart'),
get_string('samecostcenter_desc', 'local_shopping_cart'), 0));

// If this setting is turned on and a user receives credits, they can later only be used for items with the same costcenter.
$settings->add(
new admin_setting_configcheckbox($componentname . '/samecostcenterforcredits',
get_string('samecostcenterforcredits', 'local_shopping_cart'),
get_string('samecostcenterforcredits_desc', 'local_shopping_cart'), 0));

$samecostcenterforcredits = get_config('local_shopping_cart', 'samecostcenterforcredits');
if ($samecostcenterforcredits) {
// If no costcenter is specified in credits, they can be redeemed for items from this costcenter.
$settings->add(
new admin_setting_configtext(
Expand All @@ -211,7 +198,6 @@
PARAM_RAW
)
);
}

// Setting to activate manual rebooking for cashier.
$settings->add(
Expand Down

0 comments on commit 82d34bc

Please sign in to comment.