Skip to content

Commit

Permalink
Merge pull request #133 from paynl/feature/PLUG-373
Browse files Browse the repository at this point in the history
Add b2b setting to all after payments
  • Loading branch information
woutse authored Apr 14, 2021
2 parents adef862 + d868c57 commit 4304971
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 0 deletions.
9 changes: 9 additions & 0 deletions etc/adminhtml/paymentmethods/afterpay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@
<config_path>payment/paynl_payment_afterpay/showforcompany</config_path>
<comment><![CDATA[Allow payment method to be used for companies, private, or both.]]></comment>
</field>
<field id="turn_off_invoices_b2b" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Turn off invoices for B2B</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_afterpay/turn_off_invoices_b2b</config_path>
<comment><![CDATA[Set to `Yes` to disable creating invoices for business orders]]></comment>
</field>
<group id="advanced" translate="label" sortOrder="200" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Advanced</label>
<field id="payment_option_id" translate="label comment" type="text" sortOrder="10" showInDefault="1"
Expand Down
9 changes: 9 additions & 0 deletions etc/adminhtml/paymentmethods/capayable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@
<config_path>payment/paynl_payment_capayable/showforcompany</config_path>
<comment><![CDATA[Allow payment method to be used for companies, private, or both.]]></comment>
</field>
<field id="turn_off_invoices_b2b" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Turn off invoices for B2B</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_capayable/turn_off_invoices_b2b</config_path>
<comment><![CDATA[Set to `Yes` to disable creating invoices for business orders]]></comment>
</field>
<group id="advanced" translate="label" sortOrder="200" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Advanced</label>
<field id="payment_option_id" translate="label comment" type="text" sortOrder="10" showInDefault="1"
Expand Down
9 changes: 9 additions & 0 deletions etc/adminhtml/paymentmethods/capayable_gespreid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@
<config_path>payment/paynl_payment_capayable_gespreid/showforcompany</config_path>
<comment><![CDATA[Allow payment method to be used for companies, private, or both.]]></comment>
</field>
<field id="turn_off_invoices_b2b" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Turn off invoices for B2B</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_capayable_gespreid/turn_off_invoices_b2b</config_path>
<comment><![CDATA[Set to `Yes` to disable creating invoices for business orders]]></comment>
</field>
<group id="advanced" translate="label" sortOrder="200" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Advanced</label>
<field id="payment_option_id" translate="label comment" type="text" sortOrder="10" showInDefault="1"
Expand Down
9 changes: 9 additions & 0 deletions etc/adminhtml/paymentmethods/focum.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@
<config_path>payment/paynl_payment_focum/showforcompany</config_path>
<comment><![CDATA[Allow payment method to be used for companies, private, or both.]]></comment>
</field>
<field id="turn_off_invoices_b2b" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Turn off invoices for B2B</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_focum/turn_off_invoices_b2b</config_path>
<comment><![CDATA[Set to `Yes` to disable creating invoices for business orders]]></comment>
</field>
<group id="advanced" translate="label" sortOrder="200" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Advanced</label>
<field id="payment_option_id" translate="label comment" type="text" sortOrder="10" showInDefault="1"
Expand Down
9 changes: 9 additions & 0 deletions etc/adminhtml/paymentmethods/klarna.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@
<config_path>payment/paynl_payment_klarna/showforcompany</config_path>
<comment><![CDATA[Allow payment method to be used for companies, private, or both.]]></comment>
</field>
<field id="turn_off_invoices_b2b" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Turn off invoices for B2B</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_klarna/turn_off_invoices_b2b</config_path>
<comment><![CDATA[Set to `Yes` to disable creating invoices for business orders]]></comment>
</field>
<group id="advanced" translate="label" sortOrder="200" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Advanced</label>
<field id="payment_option_id" translate="label comment" type="text" sortOrder="10" showInDefault="1"
Expand Down
9 changes: 9 additions & 0 deletions etc/adminhtml/paymentmethods/klarnakp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@
<config_path>payment/paynl_payment_klarnakp/showforcompany</config_path>
<comment><![CDATA[Allow payment method to be used for companies, private, or both.]]></comment>
</field>
<field id="turn_off_invoices_b2b" translate="label" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Turn off invoices for B2B</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_klarnakp/turn_off_invoices_b2b</config_path>
<comment><![CDATA[Set to `Yes` to disable creating invoices for business orders]]></comment>
</field>
<group id="advanced" translate="label" sortOrder="200" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Advanced</label>
<field id="payment_option_id" translate="label comment" type="text" sortOrder="10" showInDefault="1"
Expand Down

0 comments on commit 4304971

Please sign in to comment.