fix yd fetch

This commit is contained in:
omair saleh
2022-04-13 13:17:04 +08:00
parent a5e47324b2
commit ac0a90c168
@@ -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);
}