mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
update company name and debtor code
This commit is contained in:
@@ -3,7 +3,6 @@ namespace App\Classes\Modules\Companies\ControllersLogic;
|
||||
|
||||
use App\Classes\General\Abstracts\AbstractControllerLogic;
|
||||
use App\Classes\Modules\Companies\DataTransferObjects\CompanyObject;
|
||||
use App\Classes\Modules\Companies\DataTransferObjects\CompanyObjectDebtor;
|
||||
use App\Classes\Modules\Companies\Services\FetchesCompany;
|
||||
use App\Classes\Modules\Companies\Services\UpdatesCompany;
|
||||
use App\Classes\Modules\Companies\Services\UpdatesCompanyDebtor;
|
||||
@@ -66,7 +65,7 @@ class UpdateCompanyNameAndDebtorLogic extends AbstractControllerLogic
|
||||
{
|
||||
$query = $this->fetchesCompany->execute(['id' => $request->route('id')]);
|
||||
|
||||
$object = new CompanyObject($request->input('name'), $request->input('reference'),$query->business_type, $request->input('type'));
|
||||
$object = new CompanyObject($request->input('name'), $request->input('reference'), $query->business_type, $request->input('type'));
|
||||
|
||||
$this->canUpdateCompany->passes($object);
|
||||
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
|
||||
namespace App\Http\Controllers\Companies;
|
||||
|
||||
use App\Classes\Modules\Companies\ControllersLogic\UpdateCompanyLogic;
|
||||
use App\Classes\Modules\Companies\ControllersLogic\UpdateCompanyNameAndDebtorLogic as CompanyNameDebtorLogic;
|
||||
use App\Classes\Modules\Companies\ControllersLogic\UpdateCompanyNameAndDebtorLogic;
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\Request;
|
||||
@@ -13,9 +12,8 @@ class UpdateCompanyNameAndDebtorController extends Controller
|
||||
/**
|
||||
* @param Request $request
|
||||
*/
|
||||
public function update(Request $request, CompanyNameDebtorLogic $logic) : JsonResponse
|
||||
public function update(Request $request, UpdateCompanyNameAndDebtorLogic $logic) : JsonResponse
|
||||
{
|
||||
//echo json_encode($request->input('debtor'));die;
|
||||
return $logic->execute($request);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,19 +5,23 @@
|
||||
width="50" height="50"
|
||||
viewBox="0 0 172 172"
|
||||
style=" fill:#000000;"><defs><linearGradient x1="98.09375" y1="78.38631" x2="98.09375" y2="93.17294" gradientUnits="userSpaceOnUse" id="color-1_43985_gr1"><stop offset="0" stop-color="#4ec9ff"></stop><stop offset="1" stop-color="#2bffe6"></stop></linearGradient><linearGradient x1="73.90625" y1="78.38631" x2="73.90625" y2="93.17294" gradientUnits="userSpaceOnUse" id="color-2_43985_gr2"><stop offset="0" stop-color="#4ec9ff"></stop><stop offset="1" stop-color="#2bffe6"></stop></linearGradient><linearGradient x1="86" y1="98.98869" x2="86" y2="111.08513" gradientUnits="userSpaceOnUse" id="color-3_43985_gr3"><stop offset="0" stop-color="#4ec9ff"></stop><stop offset="1" stop-color="#2bffe6"></stop></linearGradient><linearGradient x1="86" y1="12.09375" x2="86" y2="158.68613" gradientUnits="userSpaceOnUse" id="color-4_43985_gr4"><stop offset="0" stop-color="#009add"></stop><stop offset="1" stop-color="#00baa4"></stop></linearGradient></defs><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g><path d="M98.09375,79.28125c-3.71066,0 -6.71875,3.00809 -6.71875,6.71875c0,3.71066 3.00809,6.71875 6.71875,6.71875c3.71066,0 6.71875,-3.00809 6.71875,-6.71875c0,-3.71066 -3.00809,-6.71875 -6.71875,-6.71875z" fill="url(#color-1_43985_gr1)"></path><path d="M73.90625,79.28125c-3.71066,0 -6.71875,3.00809 -6.71875,6.71875c0,3.71066 3.00809,6.71875 6.71875,6.71875c3.71066,0 6.71875,-3.00809 6.71875,-6.71875c0,-3.71066 -3.00809,-6.71875 -6.71875,-6.71875z" fill="url(#color-2_43985_gr2)"></path><path d="M75.25,99.4375c0,5.93669 4.81331,10.75 10.75,10.75c5.93669,0 10.75,-4.81331 10.75,-10.75z" fill="url(#color-3_43985_gr3)"></path><path d="M86,16.125c-38.53069,0 -69.875,31.34431 -69.875,69.875c0,38.53069 31.34431,69.875 69.875,69.875c38.53069,0 69.875,-31.34431 69.875,-69.875c0,-38.53069 -31.34431,-69.875 -69.875,-69.875zM86,21.5c35.56369,0 64.5,28.93631 64.5,64.5c0,15.61975 -5.58463,29.96025 -14.85919,41.13219c-5.63569,-7.59756 -12.9,-13.76806 -21.29306,-18.10569c2.61762,-3.63619 4.54456,-7.78569 5.6115,-12.2765h0.97825c7.40944,0 13.4375,-6.02806 13.4375,-13.4375c0,-7.40944 -6.02806,-13.4375 -13.4375,-13.4375h-0.13706c-1.38137,-18.00894 -16.44481,-32.25 -34.80044,-32.25c-18.35562,0 -33.41906,14.24106 -34.80044,32.25h-0.13706c-7.40944,0 -13.4375,6.02806 -13.4375,13.4375c0,7.40944 6.02806,13.4375 13.4375,13.4375h0.97556c1.06694,4.4935 2.99656,8.64569 5.61688,12.28188c-8.39037,4.33762 -15.66275,10.50544 -21.29844,18.09763c-9.27187,-11.17194 -14.8565,-25.50975 -14.8565,-41.1295c0,-35.56369 28.93631,-64.5 64.5,-64.5zM61.28306,56.39181c0.17737,0.01075 0.34938,0.04569 0.52944,0.04569c5.72169,0 10.36838,-4.50156 10.68819,-10.14531c1.68775,-0.87075 3.46956,-1.58294 5.32663,-2.11775c0.04837,0.50256 0.11019,1.00512 0.11019,1.51306c0,8.89294 -7.23206,16.125 -16.125,16.125c-1.08844,0 -2.15537,-0.12094 -3.20081,-0.33056c0.72831,-1.78987 1.62325,-3.49375 2.67137,-5.09012zM108.26863,53.18025c-1.10188,0.37356 -2.26287,0.56975 -3.45612,0.56975c-5.5255,0 -10.03513,-4.20325 -10.63175,-9.57288c5.53625,1.59906 10.39794,4.77031 14.08788,9.00313zM88.69556,43.13706c0.07256,8.82844 7.27238,15.98794 16.11694,15.98794c2.33812,0 4.58488,-0.5375 6.66231,-1.48619c0.91106,1.548 1.677,3.182 2.29781,4.89394c-2.795,1.28194 -5.83456,1.96725 -8.96012,1.96725c-11.80887,0 -21.41937,-9.57288 -21.49194,-21.36294c0.88419,-0.08063 1.77375,-0.13706 2.67944,-0.13706c0.90838,0 1.806,0.05644 2.69556,0.13706zM56.4375,72.5625c0,-2.02369 0.20694,-3.999 0.59663,-5.90981c1.55337,0.35475 3.14975,0.53481 4.77837,0.53481c8.36888,0 15.61706,-4.816 19.16725,-11.81425c4.48812,8.60269 13.47781,14.50175 23.83275,14.50175c3.58513,0 7.06813,-0.76325 10.32269,-2.12313c0.258,1.5695 0.42731,3.16856 0.42731,4.81063v16.125c0,16.29969 -13.26281,29.5625 -29.5625,29.5625c-16.29969,0 -29.5625,-13.26281 -29.5625,-29.5625zM86,123.625c9.68844,0 18.46312,-3.96944 24.79756,-10.36031c1.91888,0.94063 3.78937,1.95919 5.57925,3.10138c-8.041,8.04369 -18.90925,12.63394 -30.37681,12.63394c-11.46487,0 -22.33313,-4.58756 -30.37681,-12.63394c1.78719,-1.14219 3.65769,-2.16612 5.57656,-3.10675c6.33444,6.39625 15.11181,10.36569 24.80025,10.36569zM120.9375,75.25c4.44512,0 8.0625,3.61737 8.0625,8.0625c0,4.44512 -3.61738,8.0625 -8.0625,8.0625v-2.6875zM51.0625,88.6875v2.6875c-4.44512,0 -8.0625,-3.61738 -8.0625,-8.0625c0,-4.44512 3.61738,-8.0625 8.0625,-8.0625zM86,150.5c-17.96863,0 -34.23875,-7.39331 -45.9455,-19.28819c3.16319,-4.43438 6.91763,-8.3635 11.16388,-11.69063c9.10256,9.44119 21.58331,14.85381 34.78163,14.85381c13.201,0 25.68175,-5.41263 34.78163,-14.85381c4.24356,3.32712 8.00069,7.25356 11.16388,11.69063c-11.70944,11.89487 -27.97688,19.28819 -45.9455,19.28819z" fill="url(#color-4_43985_gr4)"></path></g></g></svg>
|
||||
>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="row align-items-center">
|
||||
<div class="row align-items-center parentContainer">
|
||||
<div class="col-auto">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<modal-component class="animate__animated animate__fast animate__fadeIn" styleType="fill-in" type="changeCustomerName">
|
||||
<change-customer-name-form-component :section="'customerProfileSection'" :data="item"></change-customer-name-form-component>
|
||||
</modal-component>
|
||||
<div class="font-heading fs-14 bold">{{item.name}}</div>
|
||||
<div class="font-heading fs-14 bold">
|
||||
{{item.name}}
|
||||
<div class="btn btn-xs b-rad-none pointer requestModal d-inline rounded no-border hover-primary" data-type="changeCustomerName" >
|
||||
<i class="fa fa-edit pointer fa-fw fs-15 m-l-5"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
Reference in New Issue
Block a user