Machine Parts Issuance Feature

1. Overview The client requested a solution to directly issue purchased machine parts from the warehouse (godown) to machines without passing through intermediate steps.This requirement has been fulfilled by enhancing the Stock Transfer module in the ERP system. The issuance process can now be managed via:URL: Stock Transfer Form 2. Key Enhancements in the Stock […]

Read More

Sample Code For Function

<?php /** * Sample function class for Yii 1.x * * Usage: * – File: protected/controllers/functions/Orders/Test.php * – Call: $this->runFunction(‘test’, [$model]); */ class Test { public $controller; // auto assigned by runFunction() /** * Executes custom logic * @param mixed $model */ public function run($model) { echo “This is a test function running with model: […]

Read More

Sample Code For Action

<?php /** * Sample custom action for Yii 1.x * * Usage: * – Create file: protected/controllers/actions/Orders/TestAction.php * – Access via URL: index.php?r=orders/test */ class TestAction extends CAction { /** * This method is executed when the action is called. */ public function run() { echo “This is a test action running from ” . […]

Read More

Standard Code FOR Controller

<?php class TestController extends CController {     /**      * @var string the default layout for the views. Defaults to ‘column2’, meaning      * using two-column layout. See ‘protected/views/layouts/column2.php’.      */     //public $layout = ‘application.views.layouts.main’;     /**      * @var CActiveRecord the currently loaded data model instance. […]

Read More

Controller Refactoring Documentation

1. Overview Previously, controllers (e.g., OrdersController) contained hundreds of actions and functions in a single file. This made the codebase difficult to read, maintain, and scale. To improve structure, we have refactored the controller format. Now, each controller: Contains only core/major logic. Delegates Actions and Functions to separate files inside their respective folders. 2. New […]

Read More