Skip to content

Commit

Permalink
Add column is_also_delivery_note
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 12, 2024
1 parent 34b4b07 commit 4a97adf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions htdocs/install/mysql/migration/20.0.0-21.0.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ ALTER TABLE llx_bank_categ RENAME TO llx_category_bank; -- TODO Move content in
ALTER TABLE llx_bank_class RENAME TO llx_category_bankline;


create table llx_paymentexpensereport_expensereport
CREATE TABLE llx_paymentexpensereport_expensereport
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_payment integer,
Expand Down Expand Up @@ -257,7 +257,7 @@ ALTER TABLE llx_c_accounting_category ADD COLUMN fk_report integer NOT NULL DEFA
ALTER TABLE llx_c_accounting_category DROP INDEX uk_c_accounting_category;
ALTER TABLE llx_c_accounting_category ADD UNIQUE INDEX uk_c_accounting_category (code,entity,fk_report);

create table llx_accounting_category_account
CREATE TABLE llx_accounting_category_account
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_accounting_category integer,
Expand Down Expand Up @@ -326,3 +326,5 @@ INSERT INTO llx_c_type_contact (element, source, code, libelle, active ) values
INSERT INTO llx_c_type_contact (element, source, code, libelle, active ) values ('expedition', 'external', 'SHIPPING', 'Customer shipping contact', 1);

ALTER TABLE llx_facture_rec ADD COLUMN fk_societe_rib integer DEFAULT NULL;

ALTER TABLE llx_facture ADD COLUMN is_also_delivery_note tinyint DEFAULT 0 NOT NULL;
6 changes: 4 additions & 2 deletions htdocs/install/mysql/tables/llx_expedition.sql
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ create table llx_expedition
fk_incoterms integer, -- for incoterms
location_incoterms varchar(255), -- for incoterms

import_key varchar(14),
extraparams varchar(255) -- for other parameters with json format
is_also_delivery_note tinyint DEFAULT 0 NOT NULL, -- 0=default, 1=can act also as a delivery note (for countries that accept invoices as delivery notes)

import_key varchar(14), -- import id when line is imported
extraparams varchar(255) -- for other parameters with json format
)ENGINE=innodb;

0 comments on commit 4a97adf

Please sign in to comment.