mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-19 04:24:00 +00:00
26 lines
609 B
PHP
26 lines
609 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Orders\ReceiveNotes;
|
|
|
|
|
|
use App\Classes\Objects\Orders\ReceiveNotes\ReceiveNoteObject;
|
|
use App\Models\ReceiveNote as ReceiveNoteModel;
|
|
|
|
class CreateReceiveNote
|
|
{
|
|
|
|
public function execute(ReceiveNoteObject $receiveNote){
|
|
|
|
$receiveNotes = new ReceiveNoteModel;
|
|
$receiveNotes->order_id = $receiveNote->getOrderId();
|
|
$receiveNotes->tracking_no = $receiveNote->getTrackingNo();
|
|
$receiveNotes->receive_date = $receiveNote->getReceiveDate();
|
|
|
|
if($receiveNotes->save()){
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
} |