Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9435636f

Von Werner Hahn vor mehr als 7 Jahren hinzugefügt

  • ID 9435636f57fc98d5ed177700341cc8b7802cb8ee
  • Vorgänger eb5e6913

Shopmodul: Preisquelle übersetzt, Zeitformatierung beim ShopOrderListing

Unterschiede anzeigen:

SL/Controller/ShopPart.pm
my ( $price, $price_src_str ) = $self->get_price_n_pricesource($::form->{pricesource});
if( $price_src_str eq 'sellprice'){
$price_src_str = t8('Sellprice');
}elsif( $price_src_str eq 'listprice'){
$price_src_str = t8('Listprice');
}elsif( $price_src_str eq 'lastcost'){
$price_src_str = t8('Lastcost');
}
$self->js->html('#price_' . $self->shop_part->id, $::form->format_amount(\%::myconfig,$price,2))
->html('#active_price_source_' . $self->shop_part->id, $price_src_str)
->render;
templates/webpages/shop_order/list.html
[% IF shop_order.kivi_customer.id && shop_order.kivi_customer.order_lock == 0 && shop_order.open_invoices == 0 %] [% SET transferable = 1 %] [% SET transferable_class = 'class="shop_transferable"' %] [% ELSE %] [% SET transferable = 0 %] [% SET transferable_class = '' %][% END %]
<tr class="listrow">
<td>[% HTML.escape(shop_order.shop.description) %]</td>
<td>[% shop_order.order_date.dmy('.') _ ' ' _ shop_order.order_date.hms(':') %]<br>[% shop_order.order_date.dmy('.') _ ' ' _ shop_order.itime.hms(':') %]</td>
<td>[% shop_order.order_date.to_kivitendo('precision' => 'minute') %]<br>[% shop_order.itime.to_kivitendo('precision' => 'minute') %]</td>
<td>[% HTML.escape(shop_order.shop_ordernumber) %]</td>
<td>[% HTML.escape(shop_order.shop_customer_number) %]</td>
<td>[% IF shop_order.customer_company %]<b>[% HTML.escape(shop_order.customer_company) %]</b><br>[% END %]

Auch abrufbar als: Unified diff