Fix: Remove remaining static method from inside init() function
The getItemValueSC static method was still incorrectly placed inside the init() method, causing 'Unexpected strict mode reserved word' error at line 103. This moves it to the class level with calculateItemValueSC. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -99,13 +99,6 @@ export class MournbladeCYD2Utility {
|
|||||||
.join(', ');
|
.join(', ');
|
||||||
});
|
});
|
||||||
|
|
||||||
// Helper pour calculer la valeur SC d'un item avec quantité
|
|
||||||
static getItemValueSC(item) {
|
|
||||||
const value = this.calculateItemValueSC(item.system?.prixpo, item.system?.prixca, item.system?.prixsc);
|
|
||||||
const quantity = item.system?.quantite || 1;
|
|
||||||
return value * quantity;
|
|
||||||
}
|
|
||||||
|
|
||||||
Handlebars.registerHelper('select', function(value, options) {
|
Handlebars.registerHelper('select', function(value, options) {
|
||||||
const html = options.fn(this);
|
const html = options.fn(this);
|
||||||
const escaped = String(value).replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
const escaped = String(value).replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
||||||
|
|||||||
Reference in New Issue
Block a user