Revision 037f501d
Von Bernd Bleßmann vor etwa 1 Jahr hinzugefügt
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
Angebots-Eingang: Controller