mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
fix: discount transactions GL entries
This commit is contained in:
@@ -299,7 +299,10 @@ export const useEstimateTotal = () => {
|
||||
const discount = useEstimateDiscount();
|
||||
const adjustment = useEstimateAdjustment();
|
||||
|
||||
return subtotal - discount - adjustment;
|
||||
return R.compose(
|
||||
R.subtract(R.__, discount),
|
||||
R.add(R.__, adjustment),
|
||||
)(subtotal);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user