meta-edc 0.3.46__py3-none-any.whl → 0.3.47__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {meta_edc-0.3.46.dist-info → meta_edc-0.3.47.dist-info}/METADATA +1 -1
- {meta_edc-0.3.46.dist-info → meta_edc-0.3.47.dist-info}/RECORD +7 -7
- meta_pharmacy/labels/draw_label_for_subject_with_barcode.py +4 -0
- {meta_edc-0.3.46.dist-info → meta_edc-0.3.47.dist-info}/AUTHORS +0 -0
- {meta_edc-0.3.46.dist-info → meta_edc-0.3.47.dist-info}/LICENSE +0 -0
- {meta_edc-0.3.46.dist-info → meta_edc-0.3.47.dist-info}/WHEEL +0 -0
- {meta_edc-0.3.46.dist-info → meta_edc-0.3.47.dist-info}/top_level.txt +0 -0
@@ -307,7 +307,7 @@ meta_pharmacy/forms/__init__.py,sha256=5d28GOPegzZ9ptI-tVx_E19yPTrJ_wQh16xr9ivmS
|
|
307
307
|
meta_pharmacy/forms/rx_form.py,sha256=zqt45XGAv2Zj4p7k-CDGUHF0LKoeYnncHJBZ3MmN4qI,319
|
308
308
|
meta_pharmacy/forms/substitutions_form.py,sha256=f37xagh6D00w3iu6zvh45UWX_L9oD0FsW_0fTsB7540,1894
|
309
309
|
meta_pharmacy/labels/__init__.py,sha256=k1LKzruteQ1jUmPkh0vzzzmi4kjOANJhborPRLc8Mcw,228
|
310
|
-
meta_pharmacy/labels/draw_label_for_subject_with_barcode.py,sha256=
|
310
|
+
meta_pharmacy/labels/draw_label_for_subject_with_barcode.py,sha256=pugeMlknkrhDmYckyXu-opXuZGXW9sRQ16-5t8T6GuE,2274
|
311
311
|
meta_pharmacy/labels/draw_label_for_subject_with_code128.py,sha256=dK1F_N91Fhw8rtKi3GWRjbYw5V-XfOjzpF2UDBsE65M,459
|
312
312
|
meta_pharmacy/labels/draw_label_with_test_data.py,sha256=KQeQZEka3-2FL1hLIr7Sn9XQX6eXLOOJUlbS612AORA,1188
|
313
313
|
meta_pharmacy/labels/label_data.py,sha256=K6kgU3oc8n8NNJLjUZUbvyXakx38V1QL1GgOgWCMzZw,365
|
@@ -1165,9 +1165,9 @@ tests/etc/user-rsa-restricted-private.pem,sha256=CUcHW9bznWdmmASN00hCzvxFPAFl4N2
|
|
1165
1165
|
tests/etc/user-rsa-restricted-public.pem,sha256=mt84djoL-uHw6Wc5SJh0zml6VzXulnf8eQSFg7-fheg,450
|
1166
1166
|
tests/etc/user-salt-local.key,sha256=x5anBw9fvbHurczouT3CjrkWb_xs7Ypm1htIJsgiuiw,256
|
1167
1167
|
tests/etc/user-salt-restricted.key,sha256=pxmpcfBRNB-4C6wTvHXz-9fOfJgKIFOjaAF8ZFfa4q4,256
|
1168
|
-
meta_edc-0.3.
|
1169
|
-
meta_edc-0.3.
|
1170
|
-
meta_edc-0.3.
|
1171
|
-
meta_edc-0.3.
|
1172
|
-
meta_edc-0.3.
|
1173
|
-
meta_edc-0.3.
|
1168
|
+
meta_edc-0.3.47.dist-info/AUTHORS,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1169
|
+
meta_edc-0.3.47.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
1170
|
+
meta_edc-0.3.47.dist-info/METADATA,sha256=YJ8dZTvYVKFAkPbKpGMJHkfWjNnAZcmpVbAa473n3hQ,43529
|
1171
|
+
meta_edc-0.3.47.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
1172
|
+
meta_edc-0.3.47.dist-info/top_level.txt,sha256=RkzjNXwRq2kg_uZ_1bDwPUntijSXoY2YBqtByDwvvrc,244
|
1173
|
+
meta_edc-0.3.47.dist-info/RECORD,,
|
@@ -1,3 +1,4 @@
|
|
1
|
+
from edc_pharmacy.labels import draw_label_watermark
|
1
2
|
from edc_pharmacy.models import Stock
|
2
3
|
from edc_pharmacy.utils import format_qty
|
3
4
|
from edc_sites.site import sites as site_sites
|
@@ -25,6 +26,9 @@ def draw_label_for_subject_with_barcode(
|
|
25
26
|
label.add(String(15, height - 40, str(obj.code), fontSize=10))
|
26
27
|
label.add(String(15, height - 60, str(obj.location), fontSize=10))
|
27
28
|
else:
|
29
|
+
|
30
|
+
draw_label_watermark(label, width, height, fontSize=18)
|
31
|
+
|
28
32
|
br = barcode_cls(**barcode_opts)
|
29
33
|
br.value = obj.code
|
30
34
|
br.x = width - 110
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|