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

ERROR - 2020-12-09 13:40:50 --> Severity: Notice --> Undefined index: strict /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 2443
ERROR - 2020-12-09 13:40:53 --> Severity: Notice --> Undefined index: strict /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 2443
ERROR - 2020-12-09 13:40:54 --> Severity: Notice --> Undefined index: strict /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 2443
ERROR - 2020-12-09 13:41:06 --> Severity: Notice --> Undefined index: strict /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 2443
ERROR - 2020-12-09 13:44:35 --> Severity: Warning --> count(): Parameter must be an array or an object that implements Countable /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 270
ERROR - 2020-12-09 13:44:35 --> Severity: Notice --> Trying to access array offset on value of type int /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 275
ERROR - 2020-12-09 13:44:35 --> Severity: Notice --> Trying to access array offset on value of type int /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 276
ERROR - 2020-12-09 13:44:35 --> Severity: Notice --> Undefined property: Sales::$upload /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 278
ERROR - 2020-12-09 13:44:35 --> Severity: error --> Exception: Call to a member function initialize() on null /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 278
ERROR - 2020-12-09 13:45:54 --> Severity: Warning --> count(): Parameter must be an array or an object that implements Countable /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 270
ERROR - 2020-12-09 13:45:54 --> Severity: Notice --> Trying to access array offset on value of type int /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 275
ERROR - 2020-12-09 13:45:54 --> Severity: Notice --> Trying to access array offset on value of type int /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 276
ERROR - 2020-12-09 13:45:54 --> Severity: Notice --> Undefined property: Sales::$upload /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 278
ERROR - 2020-12-09 13:45:54 --> Severity: error --> Exception: Call to a member function initialize() on null /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 278
ERROR - 2020-12-09 13:48:45 --> Severity: Notice --> Undefined variable: files /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 268
ERROR - 2020-12-09 13:50:17 --> Severity: Notice --> Trying to access array offset on value of type int /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 275
ERROR - 2020-12-09 13:50:17 --> Severity: Notice --> Trying to access array offset on value of type int /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 276
ERROR - 2020-12-09 13:50:17 --> Severity: Notice --> Undefined property: Sales::$upload /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 278
ERROR - 2020-12-09 13:50:17 --> Severity: error --> Exception: Call to a member function initialize() on null /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 278
ERROR - 2020-12-09 13:51:25 --> Severity: Notice --> Trying to access array offset on value of type int /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 275
ERROR - 2020-12-09 13:51:25 --> Severity: Notice --> Trying to access array offset on value of type int /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 276
ERROR - 2020-12-09 13:51:25 --> Severity: Notice --> Undefined property: Sales::$upload /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 278
ERROR - 2020-12-09 13:51:25 --> Severity: error --> Exception: Call to a member function initialize() on null /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 278
ERROR - 2020-12-09 13:54:38 --> Severity: Notice --> Undefined index: attachments /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 270
ERROR - 2020-12-09 13:54:38 --> Severity: Notice --> Trying to access array offset on value of type null /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 270
ERROR - 2020-12-09 13:54:38 --> Severity: Warning --> count(): Parameter must be an array or an object that implements Countable /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 270
ERROR - 2020-12-09 13:54:38 --> Severity: Notice --> Undefined index: attachment /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 293
ERROR - 2020-12-09 13:54:49 --> Severity: Notice --> Undefined index: document /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 261
ERROR - 2020-12-09 13:54:49 --> Severity: Notice --> Trying to access array offset on value of type null /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 261
ERROR - 2020-12-09 13:54:49 --> Severity: Notice --> Trying to access array offset on value of type null /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 261
ERROR - 2020-12-09 13:55:04 --> Severity: Notice --> Undefined index: document /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 261
ERROR - 2020-12-09 13:55:04 --> Severity: Notice --> Trying to access array offset on value of type null /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 261
ERROR - 2020-12-09 13:55:04 --> Severity: Notice --> Trying to access array offset on value of type null /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 261
ERROR - 2020-12-09 13:55:11 --> Severity: Notice --> Undefined property: Sales::$upload /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 279
ERROR - 2020-12-09 13:55:11 --> Severity: error --> Exception: Call to a member function initialize() on null /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 279
ERROR - 2020-12-09 13:56:48 --> Severity: Notice --> Undefined property: CI_Upload::$full_path /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 286
ERROR - 2020-12-09 13:56:48 --> Severity: Notice --> Undefined property: CI_Upload::$full_path /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 286
ERROR - 2020-12-09 13:56:48 --> Severity: Notice --> Undefined property: CI_Upload::$full_path /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 286
ERROR - 2020-12-09 13:57:12 --> Severity: Notice --> Undefined property: CI_Upload::$full_path /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 286
ERROR - 2020-12-09 13:57:12 --> Severity: Notice --> Undefined property: CI_Upload::$full_path /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 286
ERROR - 2020-12-09 13:57:12 --> Severity: Notice --> Undefined property: CI_Upload::$full_path /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 286
ERROR - 2020-12-09 13:57:14 --> Severity: Notice --> Undefined property: CI_Upload::$full_path /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 286
ERROR - 2020-12-09 13:57:14 --> Severity: Notice --> Undefined property: CI_Upload::$full_path /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 286
ERROR - 2020-12-09 13:57:14 --> Severity: Notice --> Undefined property: CI_Upload::$full_path /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 286
ERROR - 2020-12-09 13:57:23 --> Severity: Notice --> Undefined property: CI_Upload::$file_path /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 286
ERROR - 2020-12-09 13:57:23 --> Severity: Notice --> Undefined property: CI_Upload::$file_path /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 286
ERROR - 2020-12-09 13:57:23 --> Severity: Notice --> Undefined property: CI_Upload::$file_path /Users/saleem/Sites/sma/app/controllers/admin/Sales.php 286
ERROR - 2020-12-09 14:09:59 --> Severity: error --> Exception: Too few arguments to function Attachments::__construct(), 0 passed in /Users/saleem/Sites/sma/system/core/Loader.php on line 1285 and exactly 3 expected /Users/saleem/Sites/sma/app/libraries/Attachments.php 13
ERROR - 2020-12-09 14:55:49 --> Severity: Notice --> Undefined variable: attachments /Users/saleem/Sites/sma/themes/default/admin/views/sales/modal_view.php 417
ERROR - 2020-12-09 14:57:20 --> Severity: error --> Exception: Object of class stdClass could not be converted to string /Users/saleem/Sites/sma/themes/default/admin/views/sales/modal_view.php 421
ERROR - 2020-12-09 14:59:15 --> Severity: Warning --> A non-numeric value encountered /Users/saleem/Sites/sma/themes/default/admin/views/sales/modal_view.php 409
ERROR - 2020-12-09 14:59:15 --> Severity: Warning --> A non-numeric value encountered /Users/saleem/Sites/sma/themes/default/admin/views/sales/modal_view.php 409
ERROR - 2020-12-09 14:59:15 --> Severity: Warning --> A non-numeric value encountered /Users/saleem/Sites/sma/themes/default/admin/views/sales/modal_view.php 409
ERROR - 2020-12-09 15:04:58 --> Query error: Unknown column 'orig_name' in 'field list' - Invalid query: INSERT INTO `sma_attachments` (`file_name`, `orig_name`, `subject_id`, `subject_type`) VALUES ('d1c12d5297b5d4dfc6ca23622a3e0488.pdf', '190262234.pdf', 18, 'sale')
ERROR - 2020-12-09 15:13:01 --> Severity: Notice --> Undefined variable: attachments /Users/saleem/Sites/sma/themes/default/admin/views/sales/view.php 644
ERROR - 2020-12-09 15:23:11 --> Severity: Warning --> include(../partials/attachments.php): failed to open stream: No such file or directory /Users/saleem/Sites/sma/themes/default/admin/views/sales/view.php 518
ERROR - 2020-12-09 15:23:11 --> Severity: Warning --> include(): Failed opening '../partials/attachments.php' for inclusion (include_path='.:/usr/local/Cellar/php/7.4.9/share/php/pear') /Users/saleem/Sites/sma/themes/default/admin/views/sales/view.php 518
ERROR - 2020-12-09 15:24:02 --> Severity: Warning --> include(/Users/saleem/Sites/sma/themes/default/views/partials/attachments.php): failed to open stream: No such file or directory /Users/saleem/Sites/sma/themes/default/admin/views/sales/view.php 518
ERROR - 2020-12-09 15:24:02 --> Severity: Warning --> include(): Failed opening '/Users/saleem/Sites/sma/themes/default/views/partials/attachments.php' for inclusion (include_path='.:/usr/local/Cellar/php/7.4.9/share/php/pear') /Users/saleem/Sites/sma/themes/default/admin/views/sales/view.php 518
ERROR - 2020-12-09 15:27:38 --> Severity: Warning --> include(/Users/saleem/Sites/sma/themes/default/admin/views/sales/..partials/attachments.php): failed to open stream: No such file or directory /Users/saleem/Sites/sma/themes/default/admin/views/sales/modal_view.php 400
ERROR - 2020-12-09 15:27:38 --> Severity: Warning --> include(): Failed opening '/Users/saleem/Sites/sma/themes/default/admin/views/sales/..partials/attachments.php' for inclusion (include_path='.:/usr/local/Cellar/php/7.4.9/share/php/pear') /Users/saleem/Sites/sma/themes/default/admin/views/sales/modal_view.php 400
ERROR - 2020-12-09 15:33:23 --> Could not find the language line "file_deleted"
ERROR - 2020-12-09 15:34:45 --> Could not find the language line "file_deleted"
ERROR - 2020-12-09 15:51:28 --> Severity: Notice --> Undefined index: HTTP_REFERER /Users/saleem/Sites/sma/app/controllers/admin/Welcome.php 40
ERROR - 2020-12-09 15:52:02 --> More than zero: 49 = 48.0000 + 1.0000 PI: stdClass Object
(
    [id] => 28
    [purchase_id] => 3
    [transfer_id] => 
    [product_id] => 6
    [product_code] => FFR06
    [product_name] => Watermelon
    [option_id] => 
    [net_unit_cost] => 1.9000
    [quantity] => 50.0000
    [warehouse_id] => 1
    [item_tax] => 0.0000
    [tax_rate_id] => 5
    [tax] => 0
    [discount] => 0
    [item_discount] => 0.0000
    [expiry] => 
    [subtotal] => 95.0000
    [quantity_balance] => 48.0000
    [date] => 2020-09-24
    [status] => received
    [unit_cost] => 1.9000
    [real_unit_cost] => 1.9000
    [quantity_received] => 50.0000
    [supplier_part_no] => 
    [purchase_item_id] => 
    [product_unit_id] => 6
    [product_unit_code] => kg
    [unit_quantity] => 50.0000
    [gst] => 
    [cgst] => 
    [sgst] => 
    [igst] => 
    [base_unit_cost] => 
)

ERROR - 2020-12-09 15:59:49 --> Severity: Notice --> Undefined variable: error /Users/saleem/Sites/sma/themes/default/admin/views/sales/email.php 25
ERROR - 2020-12-09 16:00:05 --> More than zero: 49 = 48.0000 + 1.0000 PI: stdClass Object
(
    [id] => 28
    [purchase_id] => 3
    [transfer_id] => 
    [product_id] => 6
    [product_code] => FFR06
    [product_name] => Watermelon
    [option_id] => 
    [net_unit_cost] => 1.9000
    [quantity] => 50.0000
    [warehouse_id] => 1
    [item_tax] => 0.0000
    [tax_rate_id] => 5
    [tax] => 0
    [discount] => 0
    [item_discount] => 0.0000
    [expiry] => 
    [subtotal] => 95.0000
    [quantity_balance] => 48.0000
    [date] => 2020-09-24
    [status] => received
    [unit_cost] => 1.9000
    [real_unit_cost] => 1.9000
    [quantity_received] => 50.0000
    [supplier_part_no] => 
    [purchase_item_id] => 
    [product_unit_id] => 6
    [product_unit_code] => kg
    [unit_quantity] => 50.0000
    [gst] => 
    [cgst] => 
    [sgst] => 
    [igst] => 
    [base_unit_cost] => 
)

ERROR - 2020-12-09 16:08:05 --> More than zero: 49 = 48.0000 + 1.0000 PI: stdClass Object
(
    [id] => 28
    [purchase_id] => 3
    [transfer_id] => 
    [product_id] => 6
    [product_code] => FFR06
    [product_name] => Watermelon
    [option_id] => 
    [net_unit_cost] => 1.9000
    [quantity] => 50.0000
    [warehouse_id] => 1
    [item_tax] => 0.0000
    [tax_rate_id] => 5
    [tax] => 0
    [discount] => 0
    [item_discount] => 0.0000
    [expiry] => 
    [subtotal] => 95.0000
    [quantity_balance] => 48.0000
    [date] => 2020-09-24
    [status] => received
    [unit_cost] => 1.9000
    [real_unit_cost] => 1.9000
    [quantity_received] => 50.0000
    [supplier_part_no] => 
    [purchase_item_id] => 
    [product_unit_id] => 6
    [product_unit_code] => kg
    [unit_quantity] => 50.0000
    [gst] => 
    [cgst] => 
    [sgst] => 
    [igst] => 
    [base_unit_cost] => 
)

ERROR - 2020-12-09 17:04:25 --> Could not find the language line "attachments"
ERROR - 2020-12-09 17:07:37 --> Severity: Notice --> Undefined index: strict /Users/saleem/Sites/sma/app/controllers/admin/Purchases.php 1824
ERROR - 2020-12-09 17:07:41 --> Severity: Notice --> Undefined index: strict /Users/saleem/Sites/sma/app/controllers/admin/Purchases.php 1824
ERROR - 2020-12-09 17:08:18 --> Severity: Notice --> Undefined index: return_purchase_ref /Users/saleem/Sites/sma/app/models/admin/Purchases_model.php 66
ERROR - 2020-12-09 17:08:22 --> Severity: Notice --> Undefined variable: attachments /Users/saleem/Sites/sma/themes/default/admin/views/partials/attachments.php 2
ERROR - 2020-12-09 17:25:22 --> Severity: Notice --> Trying to get property 'id' of non-object /Users/saleem/Sites/sma/app/controllers/admin/Suppliers.php 183
ERROR - 2020-12-09 17:25:22 --> Severity: Notice --> Trying to get property 'company' of non-object /Users/saleem/Sites/sma/app/controllers/admin/Suppliers.php 183
ERROR - 2020-12-09 17:31:38 --> Severity: Notice --> Undefined index: strict /Users/saleem/Sites/sma/app/controllers/admin/Transfers.php 644
ERROR - 2020-12-09 17:33:56 --> Severity: Notice --> Undefined property: stdClass::$updated_by /Users/saleem/Sites/sma/app/controllers/admin/Transfers.php 1024
ERROR - 2020-12-09 17:34:44 --> Severity: Notice --> Undefined property: stdClass::$updated_by /Users/saleem/Sites/sma/app/controllers/admin/Transfers.php 1024
ERROR - 2020-12-09 17:35:24 --> Severity: Notice --> Undefined variable: updated_by /Users/saleem/Sites/sma/themes/default/admin/views/transfers/view.php 147
ERROR - 2020-12-09 17:36:20 --> Why else: Array
(
    [purchase_id] => 
    [transfer_id] => 
    [product_id] => 7
    [warehouse_id] => 1
    [option_id] => 
    [product_unit_id] => 6
    [product_unit_code] => kg
    [product_code] => FFR07
    [product_name] => Yellow Watermelon
    [item_tax] => 0.00
    [unit_cost] => 1.9000
    [real_unit_cost] => 1.9000
    [net_unit_cost] => 1.9
    [quantity_received] => 1.0000
    [unit_quantity] => 1.0000
    [quantity] => 1.0000
    [quantity_balance] => 1.0000
    [subtotal] => 1.9
    [tax] => 0
    [tax_rate_id] => 5
    [status] => received
    [date] => 2020-12-09
)

