Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6c8fcdb1

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

  • ID 6c8fcdb1212ce1103f73e62ad13e4340125dee5e
  • Vorgänger 23002590
  • Nachfolger eaf9e172

Auftrags-Eingang: DB und Nummernkreis

Unterschiede anzeigen:

SL/TransNumber.pm
17 17
);
18 18

  
19 19
my @SUPPORTED_TYPES = (
20
  qw(invoice invoice_for_advance_payment final_invoice credit_note customer vendor sales_delivery_order purchase_delivery_order sales_order purchase_order sales_quotation request_quotation part service assembly assortment letter),
20
  qw(invoice invoice_for_advance_payment final_invoice credit_note customer vendor sales_delivery_order purchase_delivery_order sales_order_intake sales_order purchase_order sales_quotation request_quotation part service assembly assortment letter),
21 21
  @{ SL::DB::DeliveryOrder::TypeData::valid_types() },
22 22
);
23 23

  
......
65 65
    $filters{where}         = 'NOT COALESCE(quotation, FALSE)';
66 66
    $filters{where}        .= $type =~ /^sales/ ? ' AND (customer_id IS NOT NULL)' : ' AND (vendor_id IS NOT NULL)';
67 67

  
68
  } elsif ($type =~ /^sales_order_intake$/) {
69
    $filters{trans_number}  = "ordnumber";
70
    $filters{numberfield}   = "soinumber";
71
    $filters{table}         = "oe";
72
    $filters{where}         = 'NOT COALESCE(quotation, FALSE)';
73
    $filters{where}        .= $type =~ /^sales/ ? ' AND (customer_id IS NOT NULL)' : ' AND (vendor_id IS NOT NULL)';
74

  
68 75
  } elsif ($type =~ /_quotation$/) {
69 76
    $filters{trans_number}  = "quonumber";
70 77
    $filters{numberfield}   = $type eq 'sales_quotation' ? "sqnumber" : "rfqnumber";

Auch abrufbar als: Unified diff