mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
More rebranding changes (#159)
* Replace Maybe for Sure in select code areas * Make sure passwords are consistent * Remove (admin|member) from demo data first name * Database and schema names finally to `sure` * Fix broken test * Another (benchmarking) database name to `sure_*` * More rebranding to Sure * Missed this Maybe mention in the same page * Random nitpicks and more Maybes * Demo data accounts and more Maybes * Test data account updates * Impersonation test accounts * Consistency with `compose.example.yml`
This commit is contained in:
@@ -37,12 +37,12 @@ class Import::Row < ApplicationRecord
|
||||
end
|
||||
|
||||
private
|
||||
# In the Maybe system, positive quantities == "inflows"
|
||||
# In the Sure system, positive quantities == "inflows"
|
||||
def apply_trade_signage_convention(value)
|
||||
value * (import.signage_convention == "inflows_positive" ? 1 : -1)
|
||||
end
|
||||
|
||||
# In the Maybe system, positive amounts == "outflows", so we must reverse signage
|
||||
# In the Sure system, positive amounts == "outflows", so we must reverse signage
|
||||
def apply_transaction_signage_convention(value)
|
||||
if import.amount_type_strategy == "signed_amount"
|
||||
value * (import.signage_convention == "inflows_positive" ? -1 : 1)
|
||||
|
||||
Reference in New Issue
Block a user