View | Details | Raw Unified | Return to bug 11897
Collapse All | Expand All

(-)a/api/v1/swagger/paths.json (-1 / +1 lines)
Lines 25-31 Link Here
25
  },
25
  },
26
  "/illrequests": {
26
  "/illrequests": {
27
    "$ref": "paths/illrequests.json#/~1illrequests"
27
    "$ref": "paths/illrequests.json#/~1illrequests"
28
  }
28
  },
29
  "/rotas/{rota_id}/stages/{stage_id}/position": {
29
  "/rotas/{rota_id}/stages/{stage_id}/position": {
30
    "$ref": "paths/rotas.json#/~1rotas~1{rota_id}~1stages~1{stage_id}~1position"
30
    "$ref": "paths/rotas.json#/~1rotas~1{rota_id}~1stages~1{stage_id}~1position"
31
  }
31
  }
(-)a/api/v1/swagger/paths/rotas.json (-1 / +1 lines)
Lines 55-61 Link Here
55
                    "schema": {
55
                    "schema": {
56
                        "$ref": "../definitions.json#/error"
56
                        "$ref": "../definitions.json#/error"
57
                    }
57
                    }
58
                }
58
                },
59
                "500": {
59
                "500": {
60
                    "description": "Internal server error",
60
                    "description": "Internal server error",
61
                    "schema": {
61
                    "schema": {
(-)a/installer/data/mysql/atomicupdate/stockrot_tables.sql (-3 / +3 lines)
Lines 55-62 INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) V Link Here
55
-- Permissions
55
-- Permissions
56
56
57
INSERT IGNORE INTO userflags (bit, flag, flagdesc, defaulton) VALUES
57
INSERT IGNORE INTO userflags (bit, flag, flagdesc, defaulton) VALUES
58
       (22, 'stockrotation', 'Manage stockrotation operations', 0);
58
       (23, 'stockrotation', 'Manage stockrotation operations', 0);
59
59
60
INSERT IGNORE INTO permissions (module_bit, code, description) VALUES
60
INSERT IGNORE INTO permissions (module_bit, code, description) VALUES
61
       (22, 'can_edit_rotas', 'Create, edit and delete rotas'),
61
       (23, 'can_edit_rotas', 'Create, edit and delete rotas'),
62
       (22, 'can_add_items_rotas', 'Add and remove items from rotas');
62
       (23, 'can_add_items_rotas', 'Add and remove items from rotas');
(-)a/installer/data/mysql/userpermissions.sql (-2 / +2 lines)
Lines 82-87 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
82
   (21, 'edit_templates', 'Create and update club templates'),
82
   (21, 'edit_templates', 'Create and update club templates'),
83
   (21, 'edit_clubs', 'Create and update clubs'),
83
   (21, 'edit_clubs', 'Create and update clubs'),
84
   (21, 'enroll', 'Enroll patrons in clubs'),
84
   (21, 'enroll', 'Enroll patrons in clubs'),
85
   (22, 'can_edit_rotas', 'Create, edit and delete rotas'),
85
   (23, 'can_edit_rotas', 'Create, edit and delete rotas'),
86
   (22, 'can_add_items_rotas', 'Add and remove items from rotas')
86
   (23, 'can_add_items_rotas', 'Add and remove items from rotas')
87
;
87
;
(-)a/t/db_dependent/StockRotationItems.t (-3 / +2 lines)
Lines 86-92 subtest 'Tests for needs_repatriating' => sub { Link Here
86
    my $dbrota = $dbitem->stage->rota;
86
    my $dbrota = $dbitem->stage->rota;
87
    my $newstage = $builder->build({
87
    my $newstage = $builder->build({
88
        source => 'Stockrotationstage',
88
        source => 'Stockrotationstage',
89
        values => {
89
        value => {
90
            rota_id => $dbrota->rota_id,
90
            rota_id => $dbrota->rota_id,
91
            position => 2,
91
            position => 2,
92
        }
92
        }
Lines 247-253 subtest "Tests for advance." => sub { Link Here
247
    # Multi stages
247
    # Multi stages
248
    my $srstage = $builder->build({
248
    my $srstage = $builder->build({
249
        source => 'Stockrotationstage',
249
        source => 'Stockrotationstage',
250
        values => { duration => 50 }
250
        value => { duration => 50 }
251
    });
251
    });
252
    my $dbstage2 = Koha::StockRotationStages->find($srstage->{stage_id});
252
    my $dbstage2 = Koha::StockRotationStages->find($srstage->{stage_id});
253
    $dbstage2->move_to_group($dbitem->stage->rota_id);
253
    $dbstage2->move_to_group($dbitem->stage->rota_id);
254
- 

Return to bug 11897