From 3f5ade2e7a139bb4405437e8fc5546aafc7b05ef Mon Sep 17 00:00:00 2001 From: unwox Date: Fri, 3 Oct 2025 11:56:37 +0600 Subject: WIP shop --- dicts.fnl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'dicts.fnl') diff --git a/dicts.fnl b/dicts.fnl index 2f09de2..a705d07 100644 --- a/dicts.fnl +++ b/dicts.fnl @@ -23,6 +23,12 @@ {:value "piece" :label "Штучный товар"} {:value "pieces" :label "Разлом"}]) +(local order-state + [{:value "cart" :label "Корзина"} + {:value "placed" :label "Размещен"} + {:value "done" :label "Выполнен"} + {:value "canceled" :label "Отменен"}]) + (fn label [dict value] (var result nil) (each [_ item (ipairs dict) &until result] @@ -30,4 +36,4 @@ (set result item.label))) result) -{: product-type : tea-packaging : tea-season : label} +{: product-type : tea-packaging : tea-season : order-state : label} -- cgit v1.2.3