diff --git a/app/tiny.py b/app/tiny.py index aa38aff..a63006e 100644 --- a/app/tiny.py +++ b/app/tiny.py @@ -573,7 +573,7 @@ def order_payload(payload, contact_id, today=None, product_id=None, shipping=Non # one price (never a band), 48 h. Empty setting means the default code. if product_id is None: raise TinyError('TINY_SKU_REDESIGN needs the SKU looked up in Tiny') - code = os.environ.get('TINY_SKU_REDESIGN', '').strip() or 'DTFIMP.AJF.RED' + code = setting(REDESIGN_SKU_SETTING) or REDESIGN_SKU_DEFAULT arts = int(redesign.get('arts') or 1) unit = int(redesign.get('unit_cents') or redesign['cents']) items.append({'produto': {'id': product_id(code)}, 'quantidade': arts,