Revision 9a86acd2
Von Bernd Bleßmann vor mehr als 1 Jahr hinzugefügt
| SL/DB/Part.pm | ||
|---|---|---|
|
type => 'one to one',
|
||
|
class => 'SL::DB::PartsPriceHistory',
|
||
|
column_map => { id => 'part_id' },
|
||
|
manager_args => { sort_by => 'valid_from DESC', limit => 1 },
|
||
|
manager_args => { sort_by => 'valid_from DESC, id DESC', limit => 1 },
|
||
|
},
|
||
|
purchase_basket_item => {
|
||
|
type => 'one to one',
|
||
Auch abrufbar als: Unified diff
S:D:Part: letztes Preise-Update: neben Datum auch nach Id sortieren, …
… sonst kommt ein evtl. ein falsches (nicht das letzte) letzte Preis-Update
zurück, wenn der Zeitstempel gleich ist.