@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | $this->pdf->setFont( 'dejavusans', '', 10 ); |
| 25 | 25 | |
| 26 | 26 | $vmargin = [ |
| 27 | - 'h1' => [ // HTML tag |
|
| 27 | + 'h1' => [// HTML tag |
|
| 28 | 28 | 0 => ['h' => 1.5, 'n' => 0], // space before = h * n |
| 29 | 29 | 1 => ['h' => 1.5, 'n' => 3] // space after = h * n |
| 30 | 30 | ], |
@@ -97,14 +97,14 @@ discard block |
||
| 97 | 97 | $data = [ |
| 98 | 98 | 'BCD', // required |
| 99 | 99 | '002', // Version 2 (required, 1=UTF-8, 2=ISO 8859-1, 3=ISO 8859-2, 4=ISO 8859-4, 5=ISO 8859-5, 6=ISO 8859-7, 7=ISO 8859-10, 8=ISO 8859-15) |
| 100 | - 1, // UTF-8 (required) |
|
| 100 | + 1, // UTF-8 (required) |
|
| 101 | 101 | 'SCT', // SEPA Credit Transfer (required) |
| 102 | - '', // BIC (optional) |
|
| 103 | - '', // Name of recipient (required, name of your company) |
|
| 104 | - '', // IBAN (required) |
|
| 105 | - $this->summaryBasket->getPrice()->getCurrencyId() . $total, // Currency and value (required) |
|
| 106 | - '', // Purpose (optional, 4 char code, https://wiki.windata.de/index.php?title=Purpose-SEPA-Codes) |
|
| 107 | - '', // ISO 11649 RF Creditor Reference (optional, 35 characters structured code) |
|
| 102 | + '', // BIC (optional) |
|
| 103 | + '', // Name of recipient (required, name of your company) |
|
| 104 | + '', // IBAN (required) |
|
| 105 | + $this->summaryBasket->getPrice()->getCurrencyId() . $total, // Currency and value (required) |
|
| 106 | + '', // Purpose (optional, 4 char code, https://wiki.windata.de/index.php?title=Purpose-SEPA-Codes) |
|
| 107 | + '', // ISO 11649 RF Creditor Reference (optional, 35 characters structured code) |
|
| 108 | 108 | $this->translate( 'client', 'Order' ) . ' ' . $this->extOrderItem->getOrderNumber(), // Reference of order and other data (optional, max. 140 characters) |
| 109 | 109 | $this->extOrderBaseItem->getCustomerReference(), // Notice to the customer (optional, max. 70 characters) |
| 110 | 110 | ]; |
@@ -69,9 +69,12 @@ |
||
| 69 | 69 | */ |
| 70 | 70 | public function header( string $uid = '' ) : ?string |
| 71 | 71 | { |
| 72 | - try { |
|
| 72 | + try |
|
| 73 | + { |
|
| 73 | 74 | return $this->client()->header( $uid ); |
| 74 | - } catch( \Exception $e ) { |
|
| 75 | + } |
|
| 76 | + catch( \Exception $e ) |
|
| 77 | + { |
|
| 75 | 78 | $this->logException( $e ); |
| 76 | 79 | } |
| 77 | 80 | |
@@ -187,8 +187,7 @@ |
||
| 187 | 187 | (string) $view->param( 'b_supplier', '' ), |
| 188 | 188 | $view->param( 'b_siteid' ) |
| 189 | 189 | ); |
| 190 | - } |
|
| 191 | - else |
|
| 190 | + } else |
|
| 192 | 191 | { |
| 193 | 192 | foreach( (array) $view->param( 'b_prod', [] ) as $values ) |
| 194 | 193 | { |
@@ -320,13 +320,11 @@ |
||
| 320 | 320 | { |
| 321 | 321 | $item = $item->set( 'checked', true ); |
| 322 | 322 | unset( $attrparams['f_attrid'][$key] ); |
| 323 | - } |
|
| 324 | - elseif( ( $key = array_search( $id, $optIds ) ) !== false ) |
|
| 323 | + } elseif( ( $key = array_search( $id, $optIds ) ) !== false ) |
|
| 325 | 324 | { |
| 326 | 325 | $item = $item->set( 'checked', true ); |
| 327 | 326 | unset( $attrparams['f_optid'][$key] ); |
| 328 | - } |
|
| 329 | - elseif( isset( $oneIds[$type] ) && ( $key = array_search( $id, (array) $oneIds[$type] ) ) !== false ) |
|
| 327 | + } elseif( isset( $oneIds[$type] ) && ( $key = array_search( $id, (array) $oneIds[$type] ) ) !== false ) |
|
| 330 | 328 | { |
| 331 | 329 | $item = $item->set( 'checked', true ); |
| 332 | 330 | unset( $attrparams['f_oneid'][$key] ); |
@@ -58,7 +58,10 @@ |
||
| 58 | 58 | <?php $current = $params; if( is_array( $current['f_optid'] ) ) { unset( $current['f_optid'][$key] ); } ?> |
| 59 | 59 | <?php elseif( isset( $oneIds[$attrType] ) && ( $key = array_search( $id, (array) $oneIds[$attrType] ) ) !== false ) : ?> |
| 60 | 60 | <?php $current = $params; if( is_array( $current['f_oneid'][$attrType] ) ) { unset( $current['f_oneid'][$attrType][$key] ); } ?> |
| 61 | - <?php else : continue; ?> |
|
| 61 | + <?php else { |
|
| 62 | + : continue; |
|
| 63 | +} |
|
| 64 | +?> |
|
| 62 | 65 | <?php endif; ?> |
| 63 | 66 | |
| 64 | 67 | <a class="minibutton close" href="<?= $enc->attr( $this->link( $linkKey, $attribute->get( 'params', [] ) ) ); ?>"> |