Base progress
This commit is contained in:
@@ -8,6 +8,9 @@ class EmployeeShift
|
||||
belongs_to :supplier
|
||||
belongs_to :employee
|
||||
|
||||
validates :start_from, presence: true
|
||||
validates :end_on, presence: true
|
||||
|
||||
view :for_supplier_view, type: :custom, map_function: %|function(doc){
|
||||
if(doc.ruby_class == 'EmployeeShift' && doc.start_from && doc.end_on){
|
||||
emit([doc.supplier_id, doc.end_on], 1)
|
||||
|
||||
Reference in New Issue
Block a user