Compare commits

..
17 Commits
Author SHA1 Message Date
pvincent 286bfd14ea tagged as 1.5.3 2021-08-12 21:31:45 +04:00
pvincent 068288ddd1 fix: cagetteJs.hxml 2021-08-12 21:31:37 +04:00
pvincent 30d4c85250 tagged as 1.5.2 2021-08-12 21:29:21 +04:00
pvincent 6170e5f499 change: config.xml.dist 2021-08-12 21:29:14 +04:00
pvincent b1d56d85c0 fix: git missing 2021-08-12 21:25:59 +04:00
pvincent 3c76533541 git via https 2021-08-12 15:40:56 +04:00
pvincent 076c03d6c6 git via https 2021-08-12 15:40:09 +04:00
beta3:ct7 4f1b4d90a6 tagged as 1.5.1 2021-03-10 21:54:53 +04:00
beta3:ct7 10f916f262 export commande moins de colonnes (special Maddie) 2021-03-10 21:54:21 +04:00
artnuc.ct9 744581bad9 tagged as 1.5.0 2021-03-10 21:40:13 +04:00
artnuc.ct9 b80fe490dc export commandes à la Maddie, orienté numéro commande 2021-03-10 21:39:49 +04:00
artnuc.ct9 179e35a88b tagged as 1.4.11 2021-03-05 11:37:03 +04:00
artnuc.ct9 28b825db07 zouritpad link 2021-03-05 11:36:49 +04:00
artnuc.ct9 d8c72cf249 tagged as 1.4.10 2021-03-05 10:45:11 +04:00
artnuc.ct9 c4250cc201 package.json 2021-03-05 10:44:58 +04:00
artnuc.ct9 f54f78b03e tagged as 1.4.9 2021-03-05 10:43:09 +04:00
artnuc.ct9 97a9c1c4e3 newlogo 2021-03-05 10:33:07 +04:00
10 changed files with 45 additions and 25 deletions
+1
View File
@@ -0,0 +1 @@
1.5.3
+3 -3
View File
@@ -23,9 +23,9 @@
-lib tink_typecrawler:0.7.0 -lib tink_typecrawler:0.7.0
## GIT ## GIT
-lib sugoi:git:git@artcode.re:cagetters/sugoi.git -lib sugoi:git:https://git.artcode.re/cagetters/sugoi.git
-lib record-macros:git:git@artcode.re:cagetters/record-macros.git -lib record-macros:git:https://git.artcode.re/cagetters/record-macros.git
-lib dbadmin:git:git@artcode.re:cagetters/dbadmin.git -lib dbadmin:git:https://git.artcode.re/cagetters/dbadmin.git
## SCRIPT ## SCRIPT
-cp common -cp common
+2 -2
View File
@@ -1,8 +1,8 @@
-dce no -dce no
-cp common -cp common
-cp js -cp js
-lib sugoi:git:git@artcode.re:cagetters/sugoi.git -lib sugoi:git:https://git.artcode.re/cagetters/sugoi.git
-lib hxleaflet:git:git@artcode.re:cagetters/hxleaflet.git -lib hxleaflet:git:https://git.artcode.re/cagetters/hxleaflet.git
-lib react:1.4.0 -lib react:1.4.0
-lib react-router-4:0.2.3 -lib react-router-4:0.2.3
-lib modular:0.10.15 -lib modular:0.10.15
+5 -5
View File
@@ -1,11 +1,11 @@
<config <config
database="mysql://<USER>:<PASSWORD>@<HOST>/<DBNAME>" database = "mysql://<USER>:<PASSWORD>@<HOST>/<DBNAME>"
host="<URL without http>" host = "<URL without http>"
name = "<HTML head title>" name = "<HTML head title>"
default_email = "<default email>" default_email = "<EMAIL>"
webmaster_email = "<EMAIL>"
key="carotteMagique" key = "<SECRET_PHRASE>"
maintain="0" maintain="0"
cache="1" cache="1"
+4 -2
View File
@@ -142,9 +142,11 @@
<a href="http://www.cagette.net/wiki" target="_blank">::_("Documentation")::</a> <a href="http://www.cagette.net/wiki" target="_blank">::_("Documentation")::</a>
</li> </li>
<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> </li>
</ul> </ul>
<!--<p style="position: absolute;display: block;top: 96px;width: 700px;"> <!--<p style="position: absolute;display: block;top: 96px;width: 700px;">
+4 -5
View File
@@ -1,9 +1,7 @@
{ {
"name": "Cagette.net", "name": "CagettePei",
"description": "le logiciel libre du circuit court", "description": "le logiciel libre du circuit court",
"author": "François Barbut <francois@alilo.fr>", "license": "AGPL-3.0",
"license": "GPL-2.0",
"homepage": "http://www.cagette.net",
"dependencies": { "dependencies": {
"bootstrap": "^3.3.4", "bootstrap": "^3.3.4",
"eonasdan-bootstrap-datetimepicker": "^4.7.14", "eonasdan-bootstrap-datetimepicker": "^4.7.14",
@@ -48,5 +46,6 @@
}, },
"bugs": { "bugs": {
"url": "https://github.com/bablukid/cagette/issues" "url": "https://github.com/bablukid/cagette/issues"
} },
"version": "1.5.3"
} }
+26 -8
View File
@@ -86,6 +86,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 ) * Attendance sheet to print ( mutidistrib )
@@ -174,18 +185,25 @@ class Distribution extends Controller
var data = new Array<Dynamic>(); var data = new Array<Dynamic>();
for (o in orders3) { for (o in orders3) {
var basket = getBasket(o.userId,view.place.id,view.date);
data.push( { data.push( {
"name":o.userName, "NUM": basket.num,
"productName":o.productName, "ADHERENT":o.userName,
"price":view.formatNum(o.productPrice), "PRODUIT":o.productName,
"quantity":o.quantity, "QTÉ":o.quantity,
"fees":view.formatNum(o.fees), // "price":view.formatNum(o.productPrice),
"total":view.formatNum(o.total), // "fees":view.formatNum(o.fees),
"paid":o.paid // "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; return;
} }
} }
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 27 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 27 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 27 KiB