from server date 2025-01-14
This commit is contained in:
@@ -181,7 +181,7 @@ class PanjarServices
|
||||
if($bakiakhir <= 0) throw new \Exception('Custom Exception: Amaun Baki Akhir Cannot Be Zero');
|
||||
if($totalpanjar < 0) throw new \Exception('Custom Exception: Amaun Panjar Cannot Be Zero');
|
||||
|
||||
Vault::on($cawangan['mysql'])->where('kodcaw','=', $cawangan['kodcaw'])->latest('tarikh')->update(array(
|
||||
Vault::on($cawangan['mysql'])->where('kodcaw','=', $cawangan['kodcaw'])->where('tarikh','=',$current->toDateString())->update(array(
|
||||
'totpanjar' => $totalpanjar,
|
||||
'bakiakhir'=>$bakiakhir,
|
||||
'bakieod'=>$bakiakhir
|
||||
@@ -330,7 +330,7 @@ class PanjarServices
|
||||
if($bakiakhir <= 0) throw new \Exception('Custom Exception: Amaun Baki Akhir Cannot Be Zero');
|
||||
if($totalpanjar < 0) throw new \Exception('Custom Exception: Amaun Panjar Cannot Be Zero');
|
||||
|
||||
Vault::on($cawangan['mysql'])->where('kodcaw','=', $cawangan['kodcaw'])->latest('tarikh')->update(array(
|
||||
Vault::on($cawangan['mysql'])->where('kodcaw','=', $cawangan['kodcaw'])->where('tarikh','=',$current->toDateString())->update(array(
|
||||
'totpanjar' => $totalpanjar,
|
||||
'bakiakhir'=>$bakiakhir,
|
||||
'bakieod'=>$bakiakhir
|
||||
|
||||
Reference in New Issue
Block a user