Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2ff19b1e

Von Bernd Bleßmann vor mehr als 1 Jahr hinzugefügt

  • ID 2ff19b1ecdab6239306800f5c6fd056abc1d1ee1
  • Vorgänger 30913a9b
  • Nachfolger 8011d2a3

Auftrags-Eingang: Schnellsuche

Unterschiede anzeigen:

SL/Controller/TopQuickSearch.pm
20 20
  'SL::Controller::TopQuickSearch::Assortment',
21 21
  'SL::Controller::TopQuickSearch::Contact',
22 22
  'SL::Controller::TopQuickSearch::SalesQuotation',
23
  'SL::Controller::TopQuickSearch::SalesOrderIntake',
23 24
  'SL::Controller::TopQuickSearch::SalesOrder',
24 25
  'SL::Controller::TopQuickSearch::SalesDeliveryOrder',
25 26
  'SL::Controller::TopQuickSearch::RequestForQuotation',
SL/Controller/TopQuickSearch/SalesOrderIntake.pm
1
package SL::Controller::TopQuickSearch::SalesOrderIntake;
2

  
3
use strict;
4
use parent qw(SL::Controller::TopQuickSearch::OERecord);
5

  
6
use SL::Locale::String qw(t8);
7

  
8
sub auth { 'sales_order_edit | sales_order_view' }
9

  
10
sub name { 'sales_order_intake' }
11

  
12
sub description_config { t8('Sales Order Intakes') }
13

  
14
sub description_field { t8('Sales Order Intakes') }
15

  
16
sub type { 'sales_order_intake' }
17

  
18
sub vc { 'customer' }
19

  
20
1;
SL/DB/Manager/Order.pm
31 31
  return (and => [ "!${prefix}customer_id" => undef,         "${prefix}quotation" => 1                       ]) if $type eq 'sales_quotation';
32 32
  return (and => [ "!${prefix}vendor_id"   => undef,         "${prefix}quotation" => 1                       ]) if $type eq 'request_quotation';
33 33
  return (and => [ "!${prefix}customer_id" => undef,         "${prefix}intake"    => 1                       ]) if $type eq 'sales_order_intake';
34
  return (and => [ "!${prefix}customer_id" => undef, or => [ "${prefix}quotation" => 0, "${prefix}quotation" => undef ] ]) if $type eq 'sales_order';
34
  return (and => [ "!${prefix}customer_id" => undef, or => [ "${prefix}quotation" => 0, "${prefix}quotation" => undef ], "${prefix}intake" => 0 ]) if $type eq 'sales_order';
35 35
  return (and => [ "!${prefix}vendor_id"   => undef, or => [ "${prefix}quotation" => 0, "${prefix}quotation" => undef ] ]) if $type eq 'purchase_order';
36 36

  
37 37
  die "Unknown type $type";

Auch abrufbar als: Unified diff