feat: add auto-release sales order option
PATCH salesOrders status to 'Released' after creation and line items. Controlled by Auto-Release Order checkbox in Order Settings. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -328,6 +328,19 @@ $tabs = array(
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><?php esc_html_e( 'Auto-Release Order', 'woo-business-central' ); ?></th>
|
||||
<td>
|
||||
<label>
|
||||
<input type="checkbox" name="wbc_auto_release_order" value="yes"
|
||||
<?php checked( get_option( 'wbc_auto_release_order', 'no' ), 'yes' ); ?> />
|
||||
<?php esc_html_e( 'Automatically release sales orders in BC after creation', 'woo-business-central' ); ?>
|
||||
</label>
|
||||
<p class="description">
|
||||
<?php esc_html_e( 'Changes the order status from Draft to Released so it can be processed for shipping.', 'woo-business-central' ); ?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">
|
||||
<label for="wbc_default_customer_number"><?php esc_html_e( 'Default Customer Number', 'woo-business-central' ); ?></label>
|
||||
|
||||
Reference in New Issue
Block a user