Revision 44310118
Von Jan Büren vor mehr als 10 Jahren hinzugefügt
SL/Controller/PriceSource.pm | ||
---|---|---|
|
||
$obj->items(@items) if @items;
|
||
}
|
||
$obj->is_sales(!!$obj->customer_id) if $class eq 'SL::DB::DeliveryOrder';
|
||
|
||
return $obj;
|
||
}
|
SL/DB/DeliveryOrder.pm | ||
---|---|---|
return ($delivery_order, $custom_shipto);
|
||
}
|
||
|
||
sub customervendor {
|
||
$_[0]->is_sales ? $_[0]->customer : $_[0]->vendor;
|
||
}
|
||
|
||
1;
|
||
__END__
|
||
|
bin/mozilla/io.pl | ||
---|---|---|
}
|
||
|
||
$obj->items(@items) if @items;
|
||
$obj->is_sales(!!$obj->customer_id) if $class eq 'SL::DB::DeliveryOrder';
|
||
|
||
return $obj;
|
||
}
|
Auch abrufbar als: Unified diff
Lieferscheine benötigen auch Preisquellen
-> customervendor Funktion auch für Lieferscheine
-> Typ Kunde oder Lieferant (is_customer) entsprechend analog