mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-30 01:34:16 +00:00
send email to notify customer about china bankslip and instruction to upload po
This commit is contained in:
@@ -100,19 +100,6 @@ class Booking extends Model
|
||||
return $this->hasOne(Invoice::class);
|
||||
}
|
||||
|
||||
public static function boot() {
|
||||
parent::boot();
|
||||
self::deleting(function($booking) {
|
||||
$booking->userBankSlip()->delete();
|
||||
$booking->supplierBooking()->delete();
|
||||
$booking->chinaBankSlip()->each(function($bankslip) {
|
||||
$bankslip->delete();
|
||||
});
|
||||
$booking->purchaseOrder()->delete();
|
||||
$booking->invoice()->delete();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user