Articles facturés au poids
This commit is contained in:
@@ -15,3 +15,9 @@ Article : code, article, famille_code, factpoids, prix
|
|||||||
Ticket : id, date_ticket, adherent_id, mode_rglt
|
Ticket : id, date_ticket, adherent_id, mode_rglt
|
||||||
Ligne : id, ticket_id, article_code, prix_unitaire, quantite
|
Ligne : id, ticket_id, article_code, prix_unitaire, quantite
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Export
|
||||||
|
|
||||||
|
```shell
|
||||||
|
psql -h 127.0.0.1 -d sql -U sql -c "\copy (select * from ligne order by id) to './ligne.csv' with csv header"
|
||||||
|
```
|
||||||
|
|||||||
2200
data/article.csv
2200
data/article.csv
File diff suppressed because it is too large
Load Diff
@@ -21,9 +21,7 @@ create table article (
|
|||||||
unitevente int,
|
unitevente int,
|
||||||
prix decimal,
|
prix decimal,
|
||||||
unitepoids int,
|
unitepoids int,
|
||||||
publie int,
|
suivistock int
|
||||||
suivistock int,
|
|
||||||
sommeil int
|
|
||||||
);
|
);
|
||||||
|
|
||||||
create table ticket (
|
create table ticket (
|
||||||
|
|||||||
Reference in New Issue
Block a user