From d4f437bfd3bae2bdd452eac7b3623f57faccfa38 Mon Sep 17 00:00:00 2001 From: Antony Thorpe <1023740+AntonyThorpe@users.noreply.github.com> Date: Thu, 2 May 2024 08:43:19 +1200 Subject: [PATCH] Update Order.php Obtain static $reference_id_padding via Configuration API --- src/Model/Order.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Order.php b/src/Model/Order.php index 64c1f35e..f86066f0 100644 --- a/src/Model/Order.php +++ b/src/Model/Order.php @@ -779,7 +779,7 @@ public function IsCart() */ public function generateReference() { - $reference = str_pad($this->ID, self::$reference_id_padding, '0', STR_PAD_LEFT); + $reference = str_pad($this->ID, static::config()->get('reference_id_padding'), '0', STR_PAD_LEFT); $this->extend('generateReference', $reference);