Berater Bestellung / online

This commit is contained in:
Kevin Adametz 2020-08-24 18:17:02 +02:00
parent 16fe2fa363
commit ecc71c616f
26 changed files with 828 additions and 240 deletions

View file

@ -34,6 +34,7 @@ class CreateShoppingUsersTable extends Migration
$table->string('billing_phone')->nullable();
$table->string('billing_email')->nullable();
$table->boolean('faker_mail')->default(false);
$table->string('shipping_email')->nullable();
$table->unsignedSmallInteger('orders')->nullable()->default(1);

View file

@ -24,21 +24,32 @@ class CreateShoppingOrdersTable extends Migration
$table->unsignedInteger('member_id')->nullable();
$table->unsignedTinyInteger('payment_for');
$table->unsignedTinyInteger('payment_for')->nullable();
$table->decimal('total', 13, 2)->nullable();
$table->decimal('shipping', 8, 2)->nullable();
$table->decimal('subtotal', 13, 2)->nullable();
$table->decimal('tax_rate', 5, 2)->nullable();
$table->decimal('shipping', 8, 2)->nullable();
$table->decimal('shipping_net', 8, 2)->nullable();
$table->decimal('subtotal_ws', 13, 2)->nullable();
$table->decimal('tax', 8, 2)->nullable();
$table->decimal('total_shipping', 13, 2)->nullable();
$table->unsignedInteger('points')->nullable();
$table->unsignedInteger('weight')->nullable();
$table->boolean('paid')->default(false);
$table->string('wp_invoice_path', 255)->nullable();
$table->string('txaction', 20)->nullable()->index();
$table->unsignedTinyInteger('shipped')->default(0);
$table->string('tracking', 255)->nullable();
$table->char('mode', 4)->nullable();
$table->timestamps();

View file

@ -21,6 +21,8 @@ class CreateShoppingOrderItemsTable extends Migration
$table->unsignedInteger('product_id');
$table->unsignedInteger('qty');
$table->decimal('price', 8, 2)->nullable();
$table->decimal('price_net', 8, 3)->nullable();
$table->decimal('tax_rate', 5, 2)->nullable();
$table->string('slug')->nullable();