added date on remarks

added date on remarks
pull/1/head
paulcortez 2 years ago
parent ee0c7ad274
commit a6dace14ce

@ -1725,7 +1725,7 @@ class Pages extends CI_controller
$this->BranchItemLedger->sales = 0; $this->BranchItemLedger->sales = 0;
$this->BranchItemLedger->adjustment = 0-$stockIn->qty; $this->BranchItemLedger->adjustment = 0-$stockIn->qty;
$this->BranchItemLedger->endingqty = 0-$stockIn->qty; $this->BranchItemLedger->endingqty = 0-$stockIn->qty;
$this->BranchItemLedger->remarks = "Stock in deleted by ".$this->session->user["fullName"].". Qty:".$stockIn->qty; $this->BranchItemLedger->remarks = "Stock in deleted by ".$this->session->user["fullName"].". QTY:".$stockIn->qty." DATE:".date("m/d/Y h:i:s A");
if($this->BranchItemLedger->addNewData() == true) if($this->BranchItemLedger->addNewData() == true)
$this->StockIn->deleteStockIn($recordID); $this->StockIn->deleteStockIn($recordID);
@ -1884,7 +1884,7 @@ class Pages extends CI_controller
$this->BranchItemLedger->sales = 0; $this->BranchItemLedger->sales = 0;
$this->BranchItemLedger->adjustment = $stockOut->qty; $this->BranchItemLedger->adjustment = $stockOut->qty;
$this->BranchItemLedger->endingqty = $stockOut->qty; $this->BranchItemLedger->endingqty = $stockOut->qty;
$this->BranchItemLedger->remarks = "Stock out deleted by ".$this->session->user["fullName"].". Qty:".$stockOut->qty; $this->BranchItemLedger->remarks = "Stock out deleted by ".$this->session->user["fullName"].". QTY:".$stockOut->qty." DATE:".date("m/d/Y h:i:s A");
if($this->BranchItemLedger->addNewData() == true) if($this->BranchItemLedger->addNewData() == true)
$this->StockOut->deleteStockOut($recordID); $this->StockOut->deleteStockOut($recordID);
@ -2153,7 +2153,7 @@ class Pages extends CI_controller
$this->BranchItemLedger->sales = 0; $this->BranchItemLedger->sales = 0;
$this->BranchItemLedger->adjustment = $sales->qty; $this->BranchItemLedger->adjustment = $sales->qty;
$this->BranchItemLedger->endingqty = $sales->qty; $this->BranchItemLedger->endingqty = $sales->qty;
$this->BranchItemLedger->remarks = "Sales deleted by ".$this->session->user["fullName"].". Qty:".$sales->qty; $this->BranchItemLedger->remarks = "Sales deleted by ".$this->session->user["fullName"].". QTY:".$sales->qty." DATE:".date("m/d/Y h:i:s A");
$this->BranchItemLedger->addNewData(); $this->BranchItemLedger->addNewData();
} }
@ -2203,7 +2203,7 @@ class Pages extends CI_controller
$this->BranchItemLedger->sales = 0; $this->BranchItemLedger->sales = 0;
$this->BranchItemLedger->adjustment = $sales->qty; $this->BranchItemLedger->adjustment = $sales->qty;
$this->BranchItemLedger->endingqty = $sales->qty; $this->BranchItemLedger->endingqty = $sales->qty;
$this->BranchItemLedger->remarks = "Sales set by ".$this->session->user["fullName"]." but retained the record. Qty:".$sales->qty; $this->BranchItemLedger->remarks = "Sales set by ".$this->session->user["fullName"]." but retained the record. QTY:".$sales->qty." DATE:".date("m/d/Y h:i:s A");
if($this->BranchItemLedger->addNewData()) if($this->BranchItemLedger->addNewData())
{ {

Loading…
Cancel
Save