0 ):
if ( date( 'Y-m-d', strtotime( $submission['added'] ) ) < '2024-01-01' ):
$vat = 7.7; // old vat
else:
$vat = \FQP\FQP::VAT;
endif;
$products_tax = \FQP\Shortcode\QuotePrice::claclulateTax( $products_total, $vat );
endif;
endif;
$total = bcsub( $submission['price' ], $submission['discount'], 2 );
$total = bcadd( $total, $submission['tax'], 2 );
$total = bcadd( $total, $submission['payment_fee'], 2 );
$total = bcadd( $total, $submission['payment_fee_tax'], 2 );
$total = bcadd( $total, $products_total, 2 );
$total = bcadd( $total, $products_tax, 2 );
if ($submission['loyalty_card_value']) :
if ( 1 == bccomp( $submission['loyalty_card_value'], $total, 2 ) ) {
$loyalty_card_discount = $total;
} else {
$loyalty_card_discount = $submission['loyalty_card_value'];
}
endif;
$total = bcsub( $total, $loyalty_card_discount, 2 );
if ( -1 == bccomp( $total, '0', 2 ) ) :
$total = '0';
endif;
?>
|
|
|
|
|
|
|
CHF |
|
CHF |
|
|
|
(CHF ) |
|
CHF |
|
(CHF ) |
|
CHF |
|
'Name', 'street' => 'Address', 'zip_city' => 'Zip / City' ];
foreach ( $fields as $field => $field_title ): ?>
|
|
|
'Name', 'company_street' => 'Address', 'company_zip_city' => 'Zip / City', 'company_purpose' => 'EN Zweck' ];
foreach ( $fields as $field => $field_title ): ?>
|
|
|
'Name',
'street' => 'Address',
'zip_city' => 'Zip / City',
'nationality' => 'Nationality',
'hometown' => 'Hometown',
'birth_date' => 'Birth date',
'vr_function_in_company' => 'EN VR-Funktion in der Firma',
'function_in_company' => 'Function in the company',
'signature_authorization' => 'EN Zeichnungsberechtigung',
'shares_number' => ( \FQP\FQP::ENTRY_TYPE_AG == $submission['entry_type_ID'] )
? 'EN Anzahl Aktien'
: 'EN Anzahl Stammanteile',
];
if ( 'company' == $person['type'] ):
// company fields
$fields = [
'company_name' => 'Company name',
'company_street' => 'Company address',
'company_zip_city' => 'Company Zip / City',
'company_country' => 'Company country',
'company_number' => 'EN Handelsregisternummer',
] + $fields;
endif;
foreach ( $fields as $field => $field_title ):
if ( ! empty( $person[$field] ) ): ?>
|
|
( \FQP\FQP::ENTRY_TYPE_AG == $submission['entry_type_ID'] )
? 'EN Anzahl Aktien'
: 'EN Anzahl Stammanteile',
'equity_capital' => ( \FQP\FQP::ENTRY_TYPE_AG == $submission['entry_type_ID'] )
? 'EN Aktienkapital'
: 'EN Stammkapital' ,
'equity_capital_paid' => 'EN Einbezahltes Aktienkapital', // available for AG only
'in_kind' => 'EN Davon als Sacheinlage',
'in_cash' => 'EN Davon in Bar',
'share_price' => ( \FQP\FQP::ENTRY_TYPE_AG == $submission['entry_type_ID'] )
? 'EN Nennwert pro Aktie'
: 'EN Nennwert pro Stammanteil',
'bank_details' => 'Bank details',
];
$money_fields = [ 'equity_capital', 'equity_capital_paid', 'in_kind', 'in_cash', 'share_price' ];
$capital_data = [];
foreach ( array_keys( $fields ) as $key ) {
if ( in_array( $key, $money_fields ) ) {
if ( @$submission[$key] > 0 ) {
$capital_data[] = @$submission[$key];
}
} else {
$capital_data[] = @$submission[$key];
}
}
$capital_data = array_filter( $capital_data );
if ( $capital_data && in_array( $submission['entry_type_ID'], [ \FQP\FQP::ENTRY_TYPE_LTD, \FQP\FQP::ENTRY_TYPE_AG ] ) ): ?>
|
$field_title ):
$field_value = $submission[$field];
if ( in_array( $field, $money_fields ) ) {
$field_value = floatval( $field_value );
if ( $field_value > 0 ) {
$field_value = fqp_money( $submission[$field] );
}
}
if ( ! empty( $field_value ) ): ?>
|
|
|
'EN Kommentar zur Bestellung',
'email_subscription' => 'EN Ja, ich möchte über Tipps und News rund um die Firmengründung und das Unternehmertum informiert werden.',
'agree' => 'EN Ja, ich akzeptiere die AGB\'s',
];
foreach ( $fields as $field => $field_title ): ?>
|
|