Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit 7a0d0f99 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

style: psr12 + code style

Übergeordneter ae495cac
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!16Next,!15Dev
Pipeline-Nr. 4571 bestanden
......@@ -7,19 +7,16 @@
use QUI\ERP\Products\Controls\Products\ProductEdit;
use QUI\ERP\Products\Handler\Products;
/**
*
*/
QUI::$Ajax->registerFunction(
'package_quiqqer_erp_ajax_products_getProductEdit',
function ($productId, $user) {
$Product = Products::getProduct($productId);
$Control = new ProductEdit([
'Product' => $Product
]);
$css = QUI\Control\Manager::getCSS();
$css = QUI\Control\Manager::getCSS();
$html = $Control->create();
return $css . $html;
......
......@@ -6,6 +6,7 @@
* @param string $description
* @return string
*/
QUI::$Ajax->registerFunction(
'package_quiqqer_erp_ajax_utils_sanitizeArticleDescription',
function ($description) {
......
......@@ -95,7 +95,7 @@ public static function getBruttoNettoUserStatus(UserInterface $User): int
}
$euVatId = $User->getAttribute('quiqqer.erp.euVatId');
$taxId = $User->getAttribute('quiqqer.erp.taxId');
$taxId = $User->getAttribute('quiqqer.erp.taxId');
if (!empty($euVatId) || !empty($taxId)) {
self::$userBruttoNettoStatus[$uid] = self::IS_NETTO_USER;
......@@ -141,7 +141,8 @@ public static function getBruttoNettoUserStatus(UserInterface $User): int
}
}
if (is_array($Address)
if (
is_array($Address)
&& isset($Address['company'])
&& $Address['company'] == 1
) {
......@@ -216,7 +217,7 @@ public static function getUserArea(UserInterface $User)
if ($CurrentAddress instanceof Address) {
try {
$Country = $CurrentAddress->getCountry();
$Area = QUI\ERP\Areas\Utils::getAreaByCountry($Country);
$Area = QUI\ERP\Areas\Utils::getAreaByCountry($Country);
if ($Area) {
return $Area;
......@@ -228,9 +229,9 @@ public static function getUserArea(UserInterface $User)
try {
$addressId = $User->getAttribute('quiqqer.erp.address');
$Address = $User->getAddress($addressId);
$Country = $Address->getCountry();
$Area = QUI\ERP\Areas\Utils::getAreaByCountry($Country);
$Address = $User->getAddress($addressId);
$Country = $Address->getCountry();
$Area = QUI\ERP\Areas\Utils::getAreaByCountry($Country);
if ($Area) {
return $Area;
......@@ -241,7 +242,7 @@ public static function getUserArea(UserInterface $User)
$Country = $User->getCountry();
$Area = QUI\ERP\Areas\Utils::getAreaByCountry($Country);
$Area = QUI\ERP\Areas\Utils::getAreaByCountry($Country);
if ($Area) {
return $Area;
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren