From 413893bc67bc4bb6714abc4090f6850de2c6ac0f Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Wed, 14 Apr 2021 22:40:12 +0200 Subject: [PATCH] Garder trace du vendeur --- module/item.js | 4 +++- templates/post-item.html | 12 ++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/module/item.js b/module/item.js index 35f205bc..9fbbb961 100644 --- a/module/item.js +++ b/module/item.js @@ -150,7 +150,9 @@ export class RdDItem extends Item { let chatData = duplicate(Misc.data(this)); const properties = this[`_${chatData.type}ChatData`](); chatData["properties"] = properties - + if (this.actor){ + chatData.actor = {id: this.actor.id }; + } //Check if the posted item should have availability/pay buttons chatData.hasPrice = "cout" in chatData.data; chatData.data.cout_deniers = 0; diff --git a/templates/post-item.html b/templates/post-item.html index a569f947..519b8725 100644 --- a/templates/post-item.html +++ b/templates/post-item.html @@ -15,21 +15,21 @@ Quantité: {{postQuantity}} {{/if}} {{#if postPrice}} - Prix: {{postPrice}} Sols
+ Prix: {{postPrice}} Sols {{/if}} - +
{{/if}} - {{#if finalPrice}} Prix Total: {{finalPrice}} Sols
- {{/if}}

{{#if hasPrice}} - Payer + Payer {{/if}}