Verwalte Rabattcodes mit Kontofreigabe und Bestellungen mit Rechnungsweg und Erstattung
Neue Verwaltungsseiten Rabattcodes (Anlegen und Bearbeiten in einer Maske, Konten für genau diesen Code freischalten und entziehen) und Bestellungen (Zahlungseingang bei Rechnung bestätigen, vollständig erstatten). Der Nutzerkreis ist in der Angebotsmaske ein Pflichtfeld. BestandslisteTest: die Fassung ohne Nutzerkreis verlangt jetzt dessen Angabe beim Bearbeiten; die geprüfte Aussage (verdeckte Konditionen bleiben erhalten) ist unverändert. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1ce2e1e51f
commit
76fab81386
15 files changed
+1302
-9
No files matched your search
@@ -5,6 +5,7 @@
|
||||
use App\Domain\Catalog\DomainRuleException;
|
||||
use App\Domain\Cms\Page;
|
||||
use App\Domain\Cms\PageRevision;
|
||||
use App\Domain\Commerce\Cart;
|
||||
use App\Domain\Commerce\Checkout;
|
||||
use App\Domain\Commerce\Discount\DiscountCode;
|
||||
use App\Domain\Commerce\Discount\DiscountService;
|
||||
@@ -100,7 +101,7 @@ public function test_the_confirmation_mail_repeats_scope_discount_and_consent():
|
||||
Mail::fake();
|
||||
app(DiscountService::class)->save(['code' => 'SOMMER10', 'label' => 'Sommer', 'kind' => 'prozent', 'percent' => 10, 'scope' => 'warenkorb', 'eligibility' => 'allgemein'], []);
|
||||
$tina = $this->tina();
|
||||
$cart = app(\App\Domain\Commerce\Cart::class);
|
||||
$cart = app(Cart::class);
|
||||
$cart->add($this->privateKonflikte());
|
||||
$cart->applyCode('SOMMER10', $tina);
|
||||
$order = app(Checkout::class)->placeFromCart($tina, $cart, null, $cart->review($tina)->digest(), ['agb' => 1, 'sofort' => 1]);
|
||||
@@ -126,7 +127,7 @@ public function test_the_order_page_shows_discount_and_payable_amount_and_stripe
|
||||
]);
|
||||
app(DiscountService::class)->save(['code' => 'SOMMER10', 'label' => 'Sommer', 'kind' => 'prozent', 'percent' => 10, 'scope' => 'warenkorb', 'eligibility' => 'allgemein'], []);
|
||||
$tina = $this->tina();
|
||||
$cart = app(\App\Domain\Commerce\Cart::class);
|
||||
$cart = app(Cart::class);
|
||||
$cart->add($this->privateKonflikte());
|
||||
$cart->add($this->privateGrenzen());
|
||||
$cart->applyCode('SOMMER10', $tina);
|
||||
|
||||
Reference in new issue
Block a user