SQL Script: #447 mode de paiement par journaux -
This commit is contained in:
parent
3ddd930e3f
commit
b23783bf83
1 changed files with 13 additions and 0 deletions
13
sql/mode_paiement.sql
Normal file
13
sql/mode_paiement.sql
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
-- Mode de paiement par journaux
|
||||
|
||||
|
||||
alter table mod_payment add jrn_def_id bigint;
|
||||
update mod_payment set jrn_def_id=2 where mp_type='VEN';
|
||||
update mod_payment set jrn_def_id=3 where mp_type='ACH';
|
||||
|
||||
alter table mod_payment drop mp_type;
|
||||
|
||||
|
||||
alter table mod_payment add constraint foreign key (jrn_def_id) references jrn_def(jrn_def_id);
|
||||
|
||||
comment on column mod_payment.jrn_def_id is 'Ledger using this payment method';
|
||||
Loading…
Add table
Add a link
Reference in a new issue