Sdeev
Explore posts from serversStyle not loaded on Production
http://e-tajer-09854c7c2fb6.herokuapp.com/admin/login the stying are working fin on http and doesn't work in https https://e-tajer-09854c7c2fb6.herokuapp.com/admin/login
13 replies
Input default callback not working
im using the table builder its a Repeater with a relationship orderproducts and for each row iwant to display a total = quantity * unite_price and save the total in the database (i get the total using placeholder but idont know how to make the total as the textinput default value ) @Tieme @Leandro Ferreira
6 replies
HOW TO USE DB TRANSACTION
class CreateSalesOrder extends CreateRecord
{
use HasWizard;
protected static string $resource = SalesOrderResource::class;
public function form(Form $form): Form
{
return parent::form($form)
->schema([
Wizard::make($this->getSteps())
->startOnStep($this->getStartStep())
->cancelAction($this->getCancelFormAction())
->submitAction($this->getSubmitFormAction())
->skippable($this->hasSkippableSteps())
->contained(false),
])
->columns(null);
}
/** @return Step[] */
protected function getSteps(): array
{
return [
Step::make('Order Details')
->schema([
Section::make()->schema(SalesOrderResource::getDetailsFormSchema())->columns(),
]),
Step::make('Order Items')
->schema([
Section::make()->schema([
SalesOrderResource::getItemsRepeater(),
]),
]),
];
} how to use tha transaction on here ?
7 replies