From ac0a90c1680dbb423487fdd884f2813596c97bb3 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 13 Apr 2022 13:17:04 +0800 Subject: [PATCH] fix yd fetch --- .../Modules/PackingLists/Processors/CreatePackageProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/PackingLists/Processors/CreatePackageProcessor.php b/app/Classes/Modules/PackingLists/Processors/CreatePackageProcessor.php index 08d94fb5..b0d2e0b7 100644 --- a/app/Classes/Modules/PackingLists/Processors/CreatePackageProcessor.php +++ b/app/Classes/Modules/PackingLists/Processors/CreatePackageProcessor.php @@ -48,7 +48,7 @@ class CreatePackageProcessor $replica = $packingList->packingLists()->first(); if($replica) { - $modificationValue = in_array( $packingList->owner->owner->companyModule->id, WarehouseReferences::REPLICA_WHITE_LIST) ? 0 : 1; + $modificationValue = in_array( $replica->owner->owner->companyModule->id, WarehouseReferences::REPLICA_WHITE_LIST) ? 0 : 1; $packageObject = new PackageObject($object->getType(), $object->getDescription(), $object->getWidth() + $modificationValue, $object->getHeight() + $modificationValue, $object->getLength() + $modificationValue, $object->getWeight(), $object->getQuantity(), $object->getStatus()); $package = $this->createsPackage->execute($packageObject, $replica); }