Compare commits

..

No commits in common. "01d4fae6a59f3748a9cbe6ed6bc0066b23d63655" and "d3a9f183cada05bf7b05ff59638a8eb0cc194285" have entirely different histories.

3 changed files with 16 additions and 8 deletions

View File

@ -40,6 +40,7 @@ public static function form(Form $form): Form
->columnSpan(1), ->columnSpan(1),
DatePicker::make('date') DatePicker::make('date')
->default(today())
->required(), ->required(),
TextArea::make('notes') TextArea::make('notes')
@ -64,7 +65,9 @@ public static function form(Form $form): Form
->prefix('$'), ->prefix('$'),
TextInput::make('run_charge') TextInput::make('run_charge')
->prefix('$'), ->prefix('$'),
]), ])
->addActionLabel('Add Embroidery Entry')
->defaultItems(0),
TableRepeater::make('screenPrintEntries') TableRepeater::make('screenPrintEntries')
->relationship('screenPrintEntries') ->relationship('screenPrintEntries')
@ -86,8 +89,11 @@ public static function form(Form $form): Form
->prefix('$'), ->prefix('$'),
TextInput::make('poly_ink') TextInput::make('poly_ink')
->prefix('$'), ->prefix('$'),
TextInput::make('other_charges'), TextInput::make('other_charges')
]), ->prefix('$'),
])
->addActionLabel('Add Screen Print Entry')
->defaultItems(0),
TableRepeater::make('heatTransferEntries') TableRepeater::make('heatTransferEntries')
->relationship('heatTransferEntries') ->relationship('heatTransferEntries')
@ -96,13 +102,15 @@ public static function form(Form $form): Form
->label('Logo name'), ->label('Logo name'),
TextInput::make('quantity') TextInput::make('quantity')
->prefix('#'), ->prefix('#'),
TextInput::make('Width') TextInput::make('width')
->suffix('"'), ->suffix('"'),
TextInput::make('Height') TextInput::make('height')
->suffix('"'), ->suffix('"'),
TextInput::make('price') TextInput::make('price')
->prefix('$'), ->prefix('$'),
]), ])
->addActionLabel('Add Heat Transfer Entry')
->defaultItems(0),
])->columns(1); ])->columns(1);
} }

View File

@ -14,7 +14,7 @@ class EmbroideryEntry extends Model
'width', 'width',
'height', 'height',
'placement', 'placement',
'stitches', 'stitch_count',
'digitizing_cost', 'digitizing_cost',
'run_charge', 'run_charge',
]; ];

View File

@ -21,7 +21,7 @@ public function up(): void
$table->decimal('width', 6, 2)->nullable(); $table->decimal('width', 6, 2)->nullable();
$table->decimal('height', 6, 2)->nullable(); $table->decimal('height', 6, 2)->nullable();
$table->string('placement')->nullable(); $table->string('placement')->nullable();
$table->string('stitches')->nullable(); $table->string('stitch_count')->nullable();
$table->string('digitizing_cost')->nullable(); $table->string('digitizing_cost')->nullable();
$table->string('run_charge')->nullable(); $table->string('run_charge')->nullable();
$table->text('notes')->nullable(); $table->text('notes')->nullable();