Procházet zdrojové kódy

Divers mineurs

develop
Guillaume Bourgeois před 11 měsíci
rodič
revize
4025a5b89a
2 změnil soubory, kde provedl 17 přidání a 1 odebrání
  1. +12
    -0
      Repository/Config/TaxRateStore.php
  2. +5
    -1
      Solver/Address/AddressSolver.php

+ 12
- 0
Repository/Config/TaxRateStore.php Zobrazit soubor



return $taxRatesList; return $taxRatesList;
} }

public function getAsFormChoices($query = null): array
{
$taxRateArray = $this->createDefaultQuery($query)->find();
$taxRateChoices = [];

foreach($taxRateArray as $taxRate) {
$taxRateChoices[$taxRate->getTitle()] = $taxRate->getId();
}

return $taxRateChoices;
}
} }

+ 5
- 1
Solver/Address/AddressSolver.php Zobrazit soubor

return $address->getAddress() . ' - ' . $address->getZip() . ' ' . $address->getCity(); return $address->getAddress() . ' - ' . $address->getZip() . ' ' . $address->getCity();
} }


public function getSummary(AddressInterface $address, $withTitle = true): string
public function getSummary(AddressInterface $address = null, $withTitle = true): string
{ {
if(is_null($address)) {
return 'Adresse non définie';
}

$html = ''; $html = '';


if ($address->getTitle() && $withTitle) { if ($address->getTitle() && $withTitle) {

Načítá se…
Zrušit
Uložit