Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a8536f42

Von Jan Büren vor fast 3 Jahren hinzugefügt

  • ID a8536f428f1506316a09121f3ff7568c6354c7ab
  • Vorgänger 692cdaa8
  • Nachfolger 053d0c37

Hilfstabelle für automatische GL-Buchung nach Kreditorenbuchung

Unterschiede anzeigen:

SL/DB/Helper/Mappings.pm
99 99
  'auth.user_group'              => 'auth_user_group',
100 100
  ar                             => 'invoice',
101 101
  ap                             => 'purchase_invoice',
102
  ap_gl                          => 'ap_gl',
102 103
  assembly                       => 'assembly',
103 104
  assortment_items               => 'assortment_item',
104 105
  background_jobs                => 'background_job',
SL/DB/Manager/ApGl.pm
1
# This file has been auto-generated only because it didn't exist.
2
# Feel free to modify it at will; it will not be overwritten automatically.
3

  
4
package SL::DB::Manager::ApGl;
5

  
6
use strict;
7

  
8
use parent qw(SL::DB::Helper::Manager);
9

  
10
sub object_class { 'SL::DB::ApGl' }
11

  
12
__PACKAGE__->make_manager_methods;
13

  
14
1;
SL/DB/MetaSetup/ApGl.pm
1
# This file has been auto-generated. Do not modify it; it will be overwritten
2
# by rose_auto_create_model.pl automatically.
3
package SL::DB::ApGl;
4

  
5
use strict;
6

  
7
use parent qw(SL::DB::Object);
8

  
9
__PACKAGE__->meta->table('ap_gl');
10

  
11
__PACKAGE__->meta->columns(
12
  ap_id => { type => 'integer', not_null => 1 },
13
  gl_id => { type => 'integer', not_null => 1 },
14
  itime => { type => 'timestamp', default => 'now()' },
15
  mtime => { type => 'timestamp' },
16
);
17

  
18
__PACKAGE__->meta->primary_key_columns([ 'ap_id', 'gl_id' ]);
19

  
20
__PACKAGE__->meta->allow_inline_column_values(1);
21

  
22
__PACKAGE__->meta->foreign_keys(
23
  ap => {
24
    class       => 'SL::DB::PurchaseInvoice',
25
    key_columns => { ap_id => 'id' },
26
  },
27

  
28
  gl => {
29
    class       => 'SL::DB::GLTransaction',
30
    key_columns => { gl_id => 'id' },
31
  },
32
);
33

  
34
1;
35
;
sql/Pg-upgrade2/ap_gl.sql
1
-- @tag: ap_gl
2
-- @description: Hilfstabelle für automatische GL-Buchung nach Kreditorenbuchung
3
-- @depends: release_3_5_0
4
-- @ignore: 0
5
      CREATE TABLE ap_gl (
6
        ap_id                   integer,
7
        gl_id                   integer,
8
        itime                   TIMESTAMP      DEFAULT now(),
9
        mtime                   TIMESTAMP,
10
        PRIMARY KEY (ap_id, gl_id),
11
        FOREIGN KEY (ap_id)                    REFERENCES ap (id),
12
        FOREIGN KEY (gl_id)                    REFERENCES gl (id) ON DELETE CASCADE);
13

  
14

  
15

  
16

  

Auch abrufbar als: Unified diff