Skip to content

Commit

Permalink
fix: fix order number in software that can not be edited (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
djaiss committed Jun 19, 2021
1 parent 0982bae commit 0396d88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/ViewHelpers/Adminland/AdminSoftwareViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public static function edit(Software $software): array
'licensed_to_email_address' => $software->licensed_to_email_address,
'purchase_amount' => $software->purchase_amount / 100,
'currency' => $software->currency,
'order_number' => $software->order_number,
'website' => $software->website,
'purchased_date_year' => $software->purchased_at ? $software->purchased_at->year : null,
'purchased_date_month' => $software->purchased_at ? $software->purchased_at->month : null,
Expand Down
2 changes: 2 additions & 0 deletions resources/js/Pages/Adminland/Software/Edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ export default {
licensed_to_name: null,
licensed_to_email_address: null,
purchase_amount: null,
order_number: null,
currency: null,
website: null,
purchased_date_year: null,
Expand All @@ -299,6 +300,7 @@ export default {
this.form.licensed_to_email_address = this.software.licensed_to_email_address;
this.form.purchase_amount = this.software.purchase_amount;
this.form.currency = this.software.currency;
this.form.order_number = this.software.order_number;
this.form.website = this.software.website;
this.form.purchased_date_year = this.software.purchased_date_year;
this.form.purchased_date_month = this.software.purchased_date_month;
Expand Down

0 comments on commit 0396d88

Please sign in to comment.