summaryrefslogtreecommitdiff
path: root/dicts.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'dicts.fnl')
-rw-r--r--dicts.fnl8
1 files changed, 7 insertions, 1 deletions
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}