Add ability to set some transaction flags. Fixes #6526

This commit is contained in:
James Cole
2022-10-22 07:30:12 +02:00
parent 4ad666d964
commit d31fa743d0
5 changed files with 349 additions and 218 deletions

View File

@@ -229,6 +229,30 @@
</div>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">
{{ $t('firefly.submission_options') }}
</h3>
</div>
<div class="box-body">
<div class="checkbox">
<label>
<input v-model="applyRules" name="apply_rules" type="checkbox">
{{ $t('firefly.apply_rules_checkbox') }}
</label>
</div>
<div class="checkbox">
<label>
<input v-model="fireWebhooks" name="fire_webhooks" type="checkbox">
{{ $t('firefly.fire_webhooks_checkbox') }}
</label>
</div>
</div>
</div>
</div>
</div>
</form>
</template>
@@ -293,6 +317,8 @@ export default {
convertData: function () {
// console.log('Now in convertData()');
let data = {
'apply_rules': this.applyRules,
'fire_webhooks': this.fireWebhooks,
'transactions': [],
};
let transactionType;
@@ -966,6 +992,8 @@ export default {
cash_account_id: 0,
createAnother: false,
resetFormAfter: false,
fireWebhooks: true,
applyRules: true,
resetButtonDisabled: true,
attachmentCount: 0,
};