Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
30d4c85250 | ||
|
|
6170e5f499 | ||
|
|
b1d56d85c0 | ||
|
|
3c76533541 | ||
|
|
076c03d6c6 | ||
|
|
4f1b4d90a6 | ||
|
|
10f916f262 | ||
|
|
744581bad9 | ||
|
|
b80fe490dc | ||
|
|
179e35a88b | ||
|
|
28b825db07 | ||
|
|
d8c72cf249 | ||
|
|
c4250cc201 | ||
|
|
f54f78b03e | ||
|
|
97a9c1c4e3 | ||
|
|
6ca6e89cd5 | ||
|
|
f5d09537b9 |
@@ -0,0 +1 @@
|
||||
1.5.2
|
||||
+3
-3
@@ -23,9 +23,9 @@
|
||||
-lib tink_typecrawler:0.7.0
|
||||
|
||||
## GIT
|
||||
-lib sugoi:git:git@artcode.re:cagetters/sugoi.git
|
||||
-lib record-macros:git:git@artcode.re:cagetters/record-macros.git
|
||||
-lib dbadmin:git:git@artcode.re:cagetters/dbadmin.git
|
||||
-lib sugoi:git:https://git.artcode.re/cagetters/sugoi.git
|
||||
-lib record-macros:git:https://git.artcode.re/cagetters/record-macros.git
|
||||
-lib dbadmin:git:https://git.artcode.re/cagetters/dbadmin.git
|
||||
|
||||
## SCRIPT
|
||||
-cp common
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
-dce no
|
||||
-cp common
|
||||
-cp js
|
||||
-lib sugoi:git:git@artcode.re:cagetters/sugoi.git
|
||||
-lib hxleaflet:git:git@artcode.re:cagetters/hxleaflet.git
|
||||
-lib sugoi:git:https://git.artcode.re/cagetters/sugoi.git
|
||||
-lib hxleaflet:git:https://git.artcode.re//hxleaflet.git
|
||||
-lib react:1.4.0
|
||||
-lib react-router-4:0.2.3
|
||||
-lib modular:0.10.15
|
||||
|
||||
+5
-5
@@ -1,11 +1,11 @@
|
||||
<config
|
||||
|
||||
database="mysql://<USER>:<PASSWORD>@<HOST>/<DBNAME>"
|
||||
host="<URL without http>"
|
||||
database = "mysql://<USER>:<PASSWORD>@<HOST>/<DBNAME>"
|
||||
host = "<URL without http>"
|
||||
name = "<HTML head title>"
|
||||
default_email = "<default email>"
|
||||
|
||||
key="carotteMagique"
|
||||
default_email = "<EMAIL>"
|
||||
webmaster_email = "<EMAIL>"
|
||||
key = "<SECRET_PHRASE>"
|
||||
|
||||
maintain="0"
|
||||
cache="1"
|
||||
|
||||
@@ -142,9 +142,11 @@
|
||||
<a href="http://www.cagette.net/wiki" target="_blank">::_("Documentation")::</a>
|
||||
</li>
|
||||
<li>
|
||||
::if (user!=null && user.isAmapManager()):: <a href="https://cagette.uservoice.com" target="_blank">::_("Propose features")::</a> ::end::
|
||||
<a href="https://pad1.zourit.net/p/4a3b09afd25b4fdcb3f0a9598db21e61" target="_blank">Proposer une amélioration</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://pad1.zourit.net/p/4a3b09afd25b4fdcb3f0a9598db21e61" target="_blank">Soumettre une anomalie</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<!--<p style="position: absolute;display: block;top: 96px;width: 700px;">
|
||||
|
||||
@@ -17,7 +17,7 @@ table.table td{
|
||||
<hr/>
|
||||
|
||||
<div style="color:#666;font-size:12px;">
|
||||
XXX ::_("This e-mail was sent from"):: <a href="http://::raw HOST::">::_("Cagette.net")::</a>.
|
||||
> ::_("This e-mail was sent from"):: <a href="http://::raw HOST::">::_("Cagette.net")::</a>.
|
||||
|
||||
::if group!=null::
|
||||
<br/>
|
||||
|
||||
+4
-5
@@ -1,9 +1,7 @@
|
||||
{
|
||||
"name": "Cagette.net",
|
||||
"name": "CagettePei",
|
||||
"description": "le logiciel libre du circuit court",
|
||||
"author": "François Barbut <francois@alilo.fr>",
|
||||
"license": "GPL-2.0",
|
||||
"homepage": "http://www.cagette.net",
|
||||
"license": "AGPL-3.0",
|
||||
"dependencies": {
|
||||
"bootstrap": "^3.3.4",
|
||||
"eonasdan-bootstrap-datetimepicker": "^4.7.14",
|
||||
@@ -48,5 +46,6 @@
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/bablukid/cagette/issues"
|
||||
}
|
||||
},
|
||||
"version": "1.5.2"
|
||||
}
|
||||
|
||||
@@ -87,6 +87,17 @@ class Distribution extends Controller
|
||||
|
||||
}
|
||||
|
||||
function getUser(uid:Int):db.User {
|
||||
return db.User.manager.get(uid, false);
|
||||
}
|
||||
|
||||
function getBasket(userId, placeId, date){
|
||||
var user = getUser(userId);
|
||||
var place = db.Place.manager.get(placeId, false);
|
||||
return db.Basket.getOrCreate(user, place, date);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Attendance sheet to print ( mutidistrib )
|
||||
*/
|
||||
@@ -174,18 +185,25 @@ class Distribution extends Controller
|
||||
var data = new Array<Dynamic>();
|
||||
|
||||
for (o in orders3) {
|
||||
|
||||
|
||||
var basket = getBasket(o.userId,view.place.id,view.date);
|
||||
|
||||
data.push( {
|
||||
"name":o.userName,
|
||||
"productName":o.productName,
|
||||
"price":view.formatNum(o.productPrice),
|
||||
"quantity":o.quantity,
|
||||
"fees":view.formatNum(o.fees),
|
||||
"total":view.formatNum(o.total),
|
||||
"paid":o.paid
|
||||
"NUM": basket.num,
|
||||
"ADHERENT":o.userName,
|
||||
"PRODUIT":o.productName,
|
||||
"QTÉ":o.quantity,
|
||||
// "price":view.formatNum(o.productPrice),
|
||||
// "fees":view.formatNum(o.fees),
|
||||
// "total":view.formatNum(o.total),
|
||||
// "paid":o.paid
|
||||
});
|
||||
}
|
||||
|
||||
sugoi.tools.Csv.printCsvDataFromObjects(data, ["name", "productName", "price", "quantity","fees","total", "paid"],"Export-commandes-"+date.toString().substr(0,10)+"-Cagette");
|
||||
sugoi.tools.Csv.printCsvDataFromObjects(data, ["NUM","ADHERENT", "PRODUIT", "QTÉ"],"Export-commandes-"+date.toString().substr(0,10)+"-Cagette");
|
||||
//sugoi.tools.Csv.printCsvDataFromObjects(data, ["NUM","ADHERENT", "PRODUIT", "QTÉ","price","fees","total","paid"],"Export-commandes-"+date.toString().substr(0,10)+"-Cagette");
|
||||
//sugoi.tools.Csv.printCsvDataFromObjects(data, ["NUM","ADHERENT", "PRODUIT", "price", "quantity","fees","total", "paid"],"Export-commandes-"+date.toString().substr(0,10)+"-Cagette");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 27 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 27 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 27 KiB |
Reference in New Issue
Block a user