Compare commits

..
13 Commits
Author SHA1 Message Date
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
artnuc.ct9 6ca6e89cd5 gt symbol 2021-03-04 20:47:54 +04:00
artnuc.ct9 f5d09537b9 no more XXX 2021-03-04 20:30:31 +04:00
artnuc.ct9 a5c34cc6a0 XXX 2021-03-04 20:27:52 +04:00
7 changed files with 35 additions and 16 deletions
+4 -2
View File
@@ -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;">
+1 -1
View File
@@ -17,7 +17,7 @@ table.table td{
<hr/>
<div style="color:#666;font-size:12px;">
::_("This e-mail was sent from"):: <a href="http://::raw HOST::">::_("Cagette.net")::</a>.
&gt; ::_("This e-mail was sent from"):: <a href="http://::raw HOST::">::_("Cagette.net")::</a>.
::if group!=null::
<br/>
+4 -5
View File
@@ -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.1"
}
+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 )
@@ -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;
}
}
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