Skip to content

Commit

Permalink
Merge branch 'release/0.3.47' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Nov 29, 2024
2 parents 70eefe3 + 4831dd3 commit 1919c60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions meta_pharmacy/labels/draw_label_for_subject_with_barcode.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from edc_pharmacy.labels import draw_label_watermark
from edc_pharmacy.models import Stock
from edc_pharmacy.utils import format_qty
from edc_sites.site import sites as site_sites
Expand Down Expand Up @@ -25,6 +26,9 @@ def draw_label_for_subject_with_barcode(
label.add(String(15, height - 40, str(obj.code), fontSize=10))
label.add(String(15, height - 60, str(obj.location), fontSize=10))
else:

draw_label_watermark(label, width, height, fontSize=18)

br = barcode_cls(**barcode_opts)
br.value = obj.code
br.x = width - 110
Expand Down

0 comments on commit 1919c60

Please sign in to comment.