Skip to content

Commit

Permalink
Fixing a bug whereast the removal of the credit invoice option cause …
Browse files Browse the repository at this point in the history
…a 500 error (#201)
  • Loading branch information
aldavigdis authored Oct 14, 2024
1 parent b05e956 commit 57cfcfd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ class NineteenEightyWoo {
make_invoice_if_kennitala_is_set: Boolean( formData.get( 'make_invoice_if_kennitala_is_set' ) ),
make_invoice_if_kennitala_is_missing: Boolean( formData.get( 'make_invoice_if_kennitala_is_missing' ) ),
email_invoice: Boolean( formData.get( 'email_invoice' ) ),
make_credit_invoice: Boolean( formData.get( 'make_credit_invoice' ) ),
domestic_customer_ledger_code: formData.get( 'domestic_customer_ledger_code' ),
international_customer_ledger_code: formData.get( 'international_customer_ledger_code' ),
use_attribute_description: Boolean( formData.get( 'use_attribute_description' ) ),
Expand Down
4 changes: 0 additions & 4 deletions src/Rest/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,6 @@ public static function rest_api_callback(
);
}

if ( property_exists( $rest_json, 'make_credit_invoice' ) ) {
Config::set_make_credit_invoice( $rest_json->make_credit_invoice );
}

if ( property_exists( $rest_json, 'make_invoice_if_kennitala_is_set' ) ) {
Config::set_make_invoice_if_kennitala_is_set(
$rest_json->make_invoice_if_kennitala_is_set
Expand Down

0 comments on commit 57cfcfd

Please sign in to comment.