send email to notify customer about china bankslip and instruction to upload po

This commit is contained in:
omair saleh
2020-09-29 15:30:19 +08:00
parent 1aed74f134
commit fbf1c7ec13
3 changed files with 48 additions and 13 deletions
-13
View File
@@ -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();
});
}
}