|
|
|
@ -65,7 +65,7 @@ def reserve_stages(sender, instance, created, **kwargs): |
|
|
|
stage.save() |
|
|
|
stage.save() |
|
|
|
|
|
|
|
|
|
|
|
inv_history = InvoiceHistory() |
|
|
|
inv_history = InvoiceHistory() |
|
|
|
inv_history.comment = 'Резервирование средств за этапы ' + ' , '.join(stages_names) + ' заказа' + str(order) |
|
|
|
inv_history.comment = 'Резервирование средств за этап(ы) ' + ' , '.join(stages_names) + ' заказа ' + str(order) |
|
|
|
inv_history.sum = instance.sum |
|
|
|
inv_history.sum = instance.sum |
|
|
|
inv_history.user = instance.customer |
|
|
|
inv_history.user = instance.customer |
|
|
|
inv_history.type = "history" |
|
|
|
inv_history.type = "history" |
|
|
|
@ -89,7 +89,7 @@ def reserve_stages_from_score(sender, instance, created, **kwargs): |
|
|
|
stage.save() |
|
|
|
stage.save() |
|
|
|
|
|
|
|
|
|
|
|
inv_history = InvoiceHistory() |
|
|
|
inv_history = InvoiceHistory() |
|
|
|
inv_history.comment = 'Резервирование средств за этапы ' + ' , '.join(stages_names) + ' заказа' + str(order) |
|
|
|
inv_history.comment = 'Резервирование средств за этап(ы) ' + ' , '.join(stages_names) + ' заказа ' + str(order) |
|
|
|
inv_history.sum = -instance.sum |
|
|
|
inv_history.sum = -instance.sum |
|
|
|
inv_history.user = instance.customer |
|
|
|
inv_history.user = instance.customer |
|
|
|
inv_history.type = "score" |
|
|
|
inv_history.type = "score" |
|
|
|
|