<?php

defined('BASEPATH') or exit('No direct script access allowed');

class Transfers extends MY_Controller
{
    public function __construct()
    {
        parent::__construct();
        if (!$this->loggedIn) {
            $this->session->set_userdata('requested_page', $this->uri->uri_string());
            $this->sma->md('login');
        }
        if ($this->Customer || $this->Supplier) {
            $this->session->set_flashdata('warning', lang('access_denied'));
            redirect($_SERV<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

ERROR - 2024-02-21 13:32:02 --> Severity: Warning --> Undefined property: Main::$shop_settings /Users/saleem/Sites/sma/app/core/MY_Shop_Controller.php 93
ERROR - 2024-02-21 13:32:02 --> Severity: Warning --> Attempt to read property "warehouse" on null /Users/saleem/Sites/sma/app/core/MY_Shop_Controller.php 93
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "username"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "password"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "first_name"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "last_name"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "username"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "email"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "phone"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "company"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "gender"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "password"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "confirm_password"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "first_name"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "last_name"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "username"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "email"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "phone"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "company"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "gender"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "product_code"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "product_name"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "cname"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "barcode_symbology"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "product_unit"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "product_price"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "contact_person"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "company"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "email_address"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "address"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "city"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "phone"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "first_name"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "last_name"
ERROR - 2024-02-21 13:32:02 --> Could not find the language line "email"
ERROR - 2024-02-21 13:32:02 --> Severity: Warning --> Undefined property: stdClass::$user_language /Users/saleem/Sites/sma/app/controllers/Main.php 16
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

ERROR - 2022-06-14 16:36:36 --> Why else: Array
(
    [purchase_id] => 
    [transfer_id] => 
    [product_id] => 35
    [warehouse_id] => 1
    [option_id] => 
    [product_unit_id] => 4
    [product_unit_code] => pc
    [product_code] => q1
    [product_name] => Qtest
    [item_tax] => 0.00
    [unit_cost] => 10
    [real_unit_cost] => 10.0000
    [net_unit_cost] => 10.0000
    [quantity_received] => 2.0000
    [unit_quantity] => 2.0000
    [quantity] => 2.0000
    [quantity_balance] => 2.0000
    [subtotal] => 20
    [tax] => 0
    [tax_rate_id] => 1
    [status] => received
    [date] => 2022-06-14
)

ERROR - 2022-06-14 16:36:36 --> Why else: Array
(
    [purchase_id] => 
    [transfer_id] => 
    [product_id] => 35
    [warehouse_id] => 2
    [option_id] => 
    [product_unit_id] => 4
    [product_unit_code] => pc
    [product_code] => q1
    [product_name] => Qtest
    [item_tax] => 0.00
    [unit_cost] => 10
    [real_unit_cost] => 10.0000
    [net_unit_cost] => 10.0000
    [quantity_received] => -2
    [unit_quantity] => -2
    [quantity] => -2
    [quantity_balance] => -2
    [subtotal] => -20
    [tax] => 0
    [tax_rate_id] => 1
    [status] => received
    [date] => 2022-06-14
)

<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

ERROR - 2024-06-04 13:57:56 --> Severity: Warning --> Undefined array key "return_purchase_ref" /Users/saleem/Sites/sma/app/models/admin/Purchases_model.php 66
ERROR - 2024-06-04 14:13:50 --> Why else: Array
(
    [purchase_id] => 
    [transfer_id] => 
    [product_id] => 49
    [warehouse_id] => 1
    [option_id] => 
    [product_unit_id] => 4
    [product_unit_code] => pc
    [product_code] => test123
    [product_name] => TEST123
    [item_tax] => 0.000
    [unit_cost] => 12
    [real_unit_cost] => 12.0000
    [net_unit_cost] => 12.0000
    [quantity_received] => 5.0000
    [unit_quantity] => 5.0000
    [quantity] => 5.0000
    [quantity_balance] => 5.0000
    [subtotal] => 60
    [tax] => 0
    [tax_rate_id] => 1
    [status] => received
    [date] => 2024-06-04
)

ERROR - 2024-06-04 14:20:48 --> Why else: Array
(
    [purchase_id] => 
    [transfer_id] => 
    [product_id] => 49
    [warehouse_id] => 1
    [option_id] => 
    [product_unit_id] => 4
    [product_unit_code] => pc
    [product_code] => test123
    [product_name] => TEST123
    [item_tax] => 0.000
    [unit_cost] => 12
    [real_unit_cost] => 12.0000
    [net_unit_cost] => 12.0000
    [quantity_received] => 4.0000
    [unit_quantity] => 4.0000
    [quantity] => 4.0000
    [quantity_balance] => 4.0000
    [subtotal] => 48
    [tax] => 0
    [tax_rate_id] => 1
    [status] => received
    [date] => 2024-06-04
)

ERROR - 2024-06-04 14:23:38 --> Why else: Array
(
    [purchase_id] => 
    [transfer_id] => 
    [product_id] => 49
    [warehouse_id] => 1
    [option_id] => 
    [product_unit_id] => 4
    [product_unit_code] => pc
    [product_code] => test123
    [product_name] => TEST123
    [item_tax] => 0.000
    [unit_cost] => 12
    [real_unit_cost] => 12.0000
    [net_unit_cost] => 12.0000
    [base_unit_cost] => 12.0000
    [quantity_received] => 3.0000
    [unit_quantity] => 3.0000
    [quantity] => 3.0000
    [quantity_balance] => 3.0000
    [subtotal] => 36
    [tax] => 0
    [tax_rate_id] => 1
    [status] => received
    [date] => 2024-06-04
)

<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

ERROR - 2022-12-20 11:59:23 --> Severity: Notice --> Undefined index: RESPONSE /Users/saleem/Sites/sma/app/controllers/admin/Customers.php 733
ERROR - 2022-12-20 11:59:23 --> Severity: Notice --> Trying to access array offset on value of type null /Users/saleem/Sites/sma/app/controllers/admin/Customers.php 733
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

ERROR - 2023-03-02 15:55:22 --> Severity: 8192 --> str_ireplace(): Passing null to parameter #2 ($replace) of type array|string is deprecated /Users/saleem/Sites/sma/app/libraries/Datatables.php 311
ERROR - 2023-03-02 15:55:22 --> Severity: 8192 --> str_ireplace(): Passing null to parameter #2 ($replace) of type array|string is deprecated /Users/saleem/Sites/sma/app/libraries/Datatables.php 311
ERROR - 2023-03-02 15:55:22 --> Severity: 8192 --> str_ireplace(): Passing null to parameter #2 ($replace) of type array|string is deprecated /Users/saleem/Sites/sma/app/libraries/Datatables.php 311
ERROR - 2023-03-02 15:55:22 --> Severity: 8192 --> str_ireplace(): Passing null to parameter #2 ($replace) of type array|string is deprecated /Users/saleem/Sites/sma/app/libraries/Datatables.php 311
ERROR - 2023-03-02 15:55:22 --> Severity: 8192 --> str_ireplace(): Passing null to parameter #2 ($replace) of type array|string is deprecated /Users/saleem/Sites/sma/app/libraries/Datatables.php 311
ERROR - 2023-03-02 15:55:22 --> Severity: 8192 --> str_ireplace(): Passing null to parameter #2 ($replace) of type array|string is deprecated /Users/saleem/Sites/sma/app/libraries/Datatables.php 311
ERROR - 2023-03-02 15:55:22 --> Severity: 8192 --> str_ire