add new action

This commit is contained in:
James Cole
2023-12-02 15:38:06 +01:00
9 changed files with 252 additions and 4 deletions

View File

@@ -665,7 +665,7 @@ export default {
sourceId = null;
}
// parse amount if has exactly one comma:
// parse amount, if amount has exactly one comma:
// solves issues with some locales.
if (1 === (String(row.amount).match(/\,/g) || []).length) {
row.amount = String(row.amount).replace(',', '.');
@@ -721,7 +721,7 @@ export default {
if (parseInt(row.piggy_bank) > 0) {
currentArray.piggy_bank_id = parseInt(row.piggy_bank);
}
if(this.isReconciled) {
if(this.isReconciled && !this.storeAsNew) {
// drop content from array:
delete currentArray.source_id;
delete currentArray.source_name;

View File

@@ -1238,6 +1238,8 @@ return [
'rule_action_append_notes_to_descr' => 'Append notes to description',
'rule_action_move_descr_to_notes' => 'Replace notes with description',
'rule_action_move_notes_to_descr' => 'Replace description with notes',
'rule_action_set_destination_to_cash_choice' => 'Set destination account to (cash)',
'rule_action_set_source_to_cash_choice' => 'Set source account to (cash)',
'rulegroup_for_bills_title' => 'Rule group for bills',
'rulegroup_for_bills_description' => 'A special rule group for all the rules that involve bills.',
'rule_for_bill_title' => 'Auto-generated rule for bill ":name"',

View File

@@ -56,6 +56,8 @@ return [
'cannot_find_subscription' => 'Firefly III can\'t find subscription ":name"',
'no_notes_to_move' => 'The transaction has no notes to move to the description field',
'no_tags_to_remove' => 'The transaction has no tags to remove',
'not_withdrawal' => 'The transaction is not a withdrawal',
'not_deposit' => 'The transaction is not a deposit',
'cannot_find_tag' => 'Firefly III can\'t find tag ":tag"',
'cannot_find_asset' => 'Firefly III can\'t find asset account ":name"',
'cannot_find_accounts' => 'Firefly III can\'t find the source or destination account',