Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d4c21246

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

  • ID d4c21246ed9c816c71ce7dd11160336969e71e6c
  • Vorgänger 58ecf67f
  • Nachfolger fb2e8e69

Angebots-Eingang: DB und Nummernkreis

Unterschiede anzeigen:

SL/DB/Manager/Order.pm
29 29
  my $prefix = shift || '';
30 30

  
31 31
  return (and => [ "!${prefix}customer_id" => undef,         "${prefix}quotation" => 1                       ]) if $type eq 'sales_quotation';
32
  return (and => [ "!${prefix}vendor_id"   => undef,         "${prefix}quotation" => 1                       ]) if $type eq 'request_quotation';
32
  return (and => [ "!${prefix}vendor_id"   => undef,         "${prefix}quotation" => 1, "${prefix}intake" => 0 ]) 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}vendor_id"   => undef,         "${prefix}intake"    => 1, "${prefix}quotation" => 1 ]) if $type eq 'purchase_quotation_intake';
34 35
  return (and => [ "!${prefix}customer_id" => undef, or => [ "${prefix}quotation" => 0, "${prefix}quotation" => undef ], "${prefix}intake" => 0 ]) if $type eq 'sales_order';
35 36
  return (and => [ "!${prefix}vendor_id"   => undef, or => [ "${prefix}quotation" => 0, "${prefix}quotation" => undef ] ]) if $type eq 'purchase_order';
36 37

  

Auch abrufbar als: Unified diff