fix: set income account and cost center

This commit is contained in:
barredterra 2021-12-28 23:51:32 +01:00 committed by marination
parent fd6d86eefc
commit 88f67e4786

View File

@ -2522,6 +2522,8 @@ def create_dunning(source_name, target_doc=None, ignore_permissions=False):
target.dunning_type = dunning_type.name
target.rate_of_interest = dunning_type.rate_of_interest
target.dunning_fee = dunning_type.dunning_fee
target.income_account = dunning_type.income_account
target.cost_center = dunning_type.cost_center
letter_text = get_dunning_letter_text(
dunning_type=dunning_type.name,
doc=target.as_dict(),