update packinglists from vt portal jobs and schedule

This commit is contained in:
omair saleh
2021-08-29 19:44:52 +08:00
parent bea3836df8
commit 46b5d19331
2 changed files with 2 additions and 2 deletions
@@ -79,7 +79,7 @@ class FetchDeliveryListFromVTPortalProcessor
$transport = $this->createsTransport->execute($transportObject, $packingList);
$this->createsSchedule->execute($transport, new ScheduleObject($deliveryDate, $deliveryDate, ApprovalStatus::APPROVED));
$deliveryStep = $packingList->steps()->where('reference', '=', 'DELIVERY')->first();
$deliveryStep = $packingList->steps()->where('reference', '=', 'LAST_MILE_DELIVERY')->first();
$signature = $packingList->owner->orderRoles()->where('role_id', '=', OrderRoleTypes::SUPERVISOR)->first()->appointee->entity_sigiture;
$this->updatesContractObligations->execute($signature, $deliveryStep->obligation_hash_id);
$deliveryStep->update(['status' => ApprovalStatus::COMPLETED]);
@@ -20,7 +20,7 @@ class CreatePackagesTable extends Migration
$table->integer('type')->default(0);
$table->string('reference')->nullable();
$table->string('description',45)->nullable();
$table->string('description')->nullable();
$table->decimal('width', 8, 2);
$table->decimal('height', 8, 2);