Skip to content

Log Description History

jogug edited this page Nov 22, 2012 · 7 revisions

MODEL :Item:

+Attributes

    -Features

+Descritption

-user can edit
-delete
-summarize by searchword(für suche/haml display)

+ItemHistoryLog

-Item creation is not a Log?!
-Save a log on "activate item"
-Logs are stored by date(Description/Price)
-Log History is displayed in edit Item
-History deleted when sold
-Max 10 logs
-Selected function/controller->edit Item to have log price/desc.

Ideen:

Logs als LiFo Queue(Log is a String Array), Price is castet to int oder Hashmap.

Summarize by searchword, search word in description index(substring , offset )→ fixnum or nil Grab some characters before and after the occurence add points '" ..' + 'text' + '.. "'.

Clone this wiki locally