diff --git a/app/Models/Payment.php b/app/Models/Payment.php index f30542e69dd1..f938009e0e81 100644 --- a/app/Models/Payment.php +++ b/app/Models/Payment.php @@ -67,6 +67,10 @@ class Payment extends BaseModel 'number', 'is_manual', 'private_notes', + 'custom_value1', + 'custom_value2', + 'custom_value3', + 'custom_value4', ]; protected $casts = [ diff --git a/database/migrations/2020_11_08_212050_custom_fields_for_payments_table.php b/database/migrations/2020_11_08_212050_custom_fields_for_payments_table.php new file mode 100644 index 000000000000..c7aa8461721c --- /dev/null +++ b/database/migrations/2020_11_08_212050_custom_fields_for_payments_table.php @@ -0,0 +1,33 @@ +string('custom_value1')->nullable(); + $table->string('custom_value2')->nullable(); + $table->string('custom_value3')->nullable(); + $table->string('custom_value4')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +} diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 3cfd7ae4e121..f6edcc45ee76 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -3296,4 +3296,6 @@ return [ 'pay_with' => 'Pay with', 'n/a' => 'N/A', + 'payment_number' => 'Payment Number', + ];