Revision 746

Date:
2018/11/15 19:55:54
Author:
ahitrov
Revision Log:
Use handler for delivery in project's keeper

Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/plugins/webshop/comps/contenido/webshop/delivery.html

     
    74 74 my $filter = $m->comp('/contenido/components/context.msn', name => 'filter');
    75 75
    76 76 my $document;
    77 my $profile;
    77 78 my $new;
    78 79 my $now = Contenido::DateTime->new;
    79 80
     
    175 176 $document->postman_id( $user->id );
    176 177 $document->etime( $now->ymd('-').' '.$now->hms );
    177 178 if ( $m->comp_exists('/comps/letters/order_delivered.msn') ) {
    178 my $profile = $keeper->{users}->get_profile( id => $document->uid );
    179 $profile = $keeper->{users}->get_profile( id => $document->uid );
    179 180 my $mailfrom = ref $project->params && $project->params->{mailfrom} ? $project->params->{mailfrom} : undef;
    180 181 if ( $profile && $mailfrom ) {
    181 182 my $sendmail = {
     
    202 203 } else {
    203 204
    204 205 if ($ARGS{_save_and_deliver}) {
    206 if ( $keeper->can('webshop_delivery_action') ) {
    207 $keeper->webshop_delivery_action({ order => $document, profile => $profile });
    208 }
    205 209 $m->redirect("./?ost=3");
    206 210 } elsif ($ARGS{_ret_manager}) {
    207 211 $m->redirect("./?ost=3");