Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 037f501d

Von Bernd Bleßmann vor etwa 1 Jahr hinzugefügt

  • ID 037f501dc9dff1a865c94e919842541011fc95c9
  • Vorgänger ca26d442
  • Nachfolger 4979985b

Angebots-Eingang: Controller

Unterschiede anzeigen:

SL/DB/Order.pm
143 143
sub type {
144 144
  my $self = shift;
145 145

  
146
  return 'sales_order_intake' if $self->customer_id &&   $self->intake;
147
  return 'sales_order'        if $self->customer_id && ! $self->quotation;
148
  return 'purchase_order'     if $self->vendor_id   && ! $self->quotation;
149
  return 'sales_quotation'    if $self->customer_id &&   $self->quotation;
150
  return 'request_quotation'  if $self->vendor_id   &&   $self->quotation;
146
  return 'sales_order_intake'        if $self->customer_id &&   $self->intake;
147
  return 'sales_order'               if $self->customer_id && ! $self->quotation;
148
  return 'purchase_order'            if $self->vendor_id   && ! $self->quotation;
149
  return 'sales_quotation'           if $self->customer_id &&   $self->quotation;
150
  return 'request_quotation'         if $self->vendor_id   &&   $self->quotation  && ! $self->intake;
151
  return 'purchase_quotation_intake' if $self->vendor_id   &&   $self->quotation  &&   $self->intake;
151 152

  
152 153
  return;
153 154
}

Auch abrufbar als: Unified diff