diff --git a/module/actor/base-actor.js b/module/actor/base-actor.js
index b62ac03d..5740b70f 100644
--- a/module/actor/base-actor.js
+++ b/module/actor/base-actor.js
@@ -310,7 +310,7 @@ export class RdDBaseActor extends Actor {
async decrementerQuantiteItem(item, quantite, options = { supprimerSiZero: true }) {
- if (itemVendu.isService()) {
+ if (item.isService()) {
return;
}
let resteQuantite = (item.system.quantite ?? 1) - quantite;
diff --git a/module/actor/commerce.js b/module/actor/commerce.js
index 0288dd99..fffc6535 100644
--- a/module/actor/commerce.js
+++ b/module/actor/commerce.js
@@ -39,11 +39,11 @@ export class RdDCommerce extends RdDBaseActor {
// ne pas consommer pour un commerce
}
- async decrementerQuantiteItem(itemVendu, quantite) {
+ async decrementerQuantiteItem(item, quantite) {
if (this.system.illimite) {
return;
}
- await super.decrementerQuantiteItem(itemVendu, quantite, { supprimerSiZero: false });
+ await super.decrementerQuantiteItem(item, quantite, { supprimerSiZero: false });
}
calculerPrix(item) {
diff --git a/system.json b/system.json
index c13e5c5b..1422c70e 100644
--- a/system.json
+++ b/system.json
@@ -1,8 +1,8 @@
{
"id": "foundryvtt-reve-de-dragon",
"title": "RĂªve de Dragon",
- "version": "10.4.8",
- "download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-10.4.8.zip",
+ "version": "10.4.9",
+ "download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-10.4.9.zip",
"manifest": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/raw/v10/system.json",
"compatibility": {
"minimum": "10",
diff --git a/templates/actor/commerce-inventaire-item.html b/templates/actor/commerce-inventaire-item.html
index 831e7440..5190fbeb 100644
--- a/templates/actor/commerce-inventaire-item.html
+++ b/templates/actor/commerce-inventaire-item.html
@@ -20,7 +20,7 @@
{{/if}}
{{#if options.isOwner}}
@@ -31,7 +31,7 @@
{{#unless (and (eq item.type 'conteneur') (not vide))}}