Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f1b4d90a6 | ||
|
|
10f916f262 | ||
|
|
744581bad9 | ||
|
|
b80fe490dc | ||
|
|
179e35a88b | ||
|
|
28b825db07 | ||
|
|
d8c72cf249 | ||
|
|
c4250cc201 | ||
|
|
f54f78b03e | ||
|
|
97a9c1c4e3 | ||
|
|
6ca6e89cd5 | ||
|
|
f5d09537b9 | ||
|
|
a5c34cc6a0 | ||
|
|
5c9fe38c4b | ||
|
|
feff65ab36 | ||
|
|
c8a354e868 | ||
|
|
ccd46e79fc | ||
|
|
6c6eec0b78 |
@@ -50,7 +50,7 @@ compile:
|
|||||||
echo "compile Cagette.net with plugins"; \
|
echo "compile Cagette.net with plugins"; \
|
||||||
haxe cagetteAllPlugins.hxml; \
|
haxe cagetteAllPlugins.hxml; \
|
||||||
else \
|
else \
|
||||||
echo "compile Cagette.net core"; \
|
echo "compile CagettePéi core"; \
|
||||||
haxe cagette.hxml; \
|
haxe cagette.hxml; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -2,4 +2,7 @@
|
|||||||
|
|
||||||
Fourche du logiciel [Cagette.net](https://github.com/CagetteNet) à partir de la version 0.9.2 Novembre 2018
|
Fourche du logiciel [Cagette.net](https://github.com/CagetteNet) à partir de la version 0.9.2 Novembre 2018
|
||||||
|
|
||||||
|
Certaines portions du code source de Cagette.net n'étant plus disponibles en téléchargement,
|
||||||
|
j'ai repris sur la base d'un existant pour adapter au marché local réunionnais et leurs AMAPéi.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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;">
|
||||||
|
|||||||
@@ -17,11 +17,11 @@ table.table td{
|
|||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
<div style="color:#666;font-size:12px;">
|
<div style="color:#666;font-size:12px;">
|
||||||
::_("This e-mail was sent from"):: <a href="http://::HOST::">::group.name::</a>.
|
> ::_("This e-mail was sent from"):: <a href="http://::raw HOST::">::_("Cagette.net")::</a>.
|
||||||
|
|
||||||
::if group!=null::
|
::if group!=null::
|
||||||
<br/>
|
<br/>
|
||||||
::_("You receive this message because you are part of"):: <b>::group.name::</b>
|
::_("You receive this message because you are part of"):: <b>::_("Cagette.net")::</b>
|
||||||
::end::
|
::end::
|
||||||
|
|
||||||
::if list!=null::
|
::if list!=null::
|
||||||
@@ -32,7 +32,7 @@ table.table td{
|
|||||||
::if group!=null::
|
::if group!=null::
|
||||||
<div style="width:50%;max-width:300px;margin: 12px auto;padding: 8px;text-decoration: none;background: #070;border-radius: 3px;text-align: center;">
|
<div style="width:50%;max-width:300px;margin: 12px auto;padding: 8px;text-decoration: none;background: #070;border-radius: 3px;text-align: center;">
|
||||||
<a href="http://::HOST::/group/::group.id::" style="color: white;font-weight: bold;text-decoration: none;font-size:1.2em;">
|
<a href="http://::HOST::/group/::group.id::" style="color: white;font-weight: bold;text-decoration: none;font-size:1.2em;">
|
||||||
→ ::group.name::
|
→ ::_("Cagette.net")::
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
::end::
|
::end::
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<div style="max-width:400px;margin:auto;border:solid 1px #AAA;border-radius:8px;padding:12px;text-align:center;font-family:Arial;">
|
<div style="max-width:400px;margin:auto;border:solid 1px #AAA;border-radius:8px;padding:12px;text-align:center;font-family:Arial;">
|
||||||
|
|
||||||
<img src="http://::HOST::/img/logo2.png" title="Cagette.net" />
|
<img src="http://::HOST::/img/logo2.png" title="CagettePéi" />
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
::_("Hello"):: $$nullSafe(::name::),
|
::_("Hello"):: $$nullSafe(::name::),
|
||||||
@@ -42,4 +42,4 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
::end::
|
::end::
|
||||||
|
|||||||
@@ -5,4 +5,4 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
::end::
|
::end::
|
||||||
|
|||||||
+4
-5
@@ -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.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 25 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: 27 KiB After Width: | Height: | Size: 27 KiB |
+12
-1130
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user