@php use App\Http\Controllers\Mod\ModClientProvider;use App\Http\Controllers\Mod\ModProductService;use App\Http\Controllers\Mod\ModSalesOrderContact as SalesOrderContact;use App\Http\Controllers\Mod\ModSalesOrderDescription as SalesOrderDescription;use App\Http\Controllers\Mod\ModSalesOrderPaymentMethod as PaymentMethod;use App\Http\Controllers\Mod\ModSalesOrderProductService as SalesOrderProductService;use App\Http\Controllers\ModFinancial; $proposal_appearance =isset($proposal_appearance)?$proposal_appearance:0; $id_salesorder =isset($record->idSalesOrder)?$record->idSalesOrder:null; if($id_salesorder !== null){ if($record !== null) { if($proposal_appearance == 0){ //CLIENTE $record_client = ModClientProvider::ClientProviderOFF($record->idClientProvider); //PRODUTOS E SERVIÇOS $record_productservice = SalesOrderProductService::productServiceOFF(0,$record->idSalesOrder); //BONUS $record_bonus = SalesOrderProductService::bonusOFF(0,$record->idSalesOrder); //FORMA DE PAGAMENTO $record_paymentmethod = PaymentMethod::paymentMethodOFF(0,$record->idSalesOrder); //DESCRIÇÃO $record_description = SalesOrderDescription::descriptionPersonOFF(0,$record->idSalesOrder); //CONTADO-FINANCEIRO $record_contact = SalesOrderContact::contactNotFinancialOFF($record_client->idClientProvider); } $proposal_status=2; } } $save=isset($save)?$save:2; @endphp {{--@if($save==1)--}} {{-- @include('mod-negotiation-budget-client.index-style')--}} {{--@endif--}}
| Produto | Qtdd | Valor | Subtotal | |
|---|---|---|---|---|
|
{{$row_prodserv->xName}} {!! isset($descricao->description)?$descricao->description:null; !!} |
{{$row_prodserv->amount}} | {{ModFinancial::formatMoney($row_prodserv->xValue,'pt_BR')}} | @if($conf_status->negProdServIncreaseWithPercentageClientStatus==1) @if($row_prodserv->xValueIncrease>0) %{{$row_prodserv->xValueIncrease}} @endif @endif @if($conf_status->negProdServDiscountWithPercentageClientStatus==1) @if($row_prodserv->xValueDiscount>0) % {{$row_prodserv->xValueDiscount}} @endif @endif @php $subtotal_Inc = ModFinancial::porcentagem($row_prodserv->xValue * $row_prodserv->amount,$row_prodserv->xValueIncrease ); $subtotal_disc = ModFinancial::porcentagem($row_prodserv->xValue * $row_prodserv->amount,$row_prodserv->xValueDiscount ); $subtotal_value = $row_prodserv->xValue * $row_prodserv->amount; $subtotal_prodserv= $subtotal_value-$subtotal_disc+$subtotal_Inc; $subtotal += $subtotal_prodserv; @endphp | {{ ModFinancial::formatMoney($subtotal_prodserv,'pt_BR') }} |