mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
fix: discount transactions GL entries
This commit is contained in:
@@ -263,7 +263,10 @@ export const useCreditNoteTotal = () => {
|
||||
const discountAmount = useCreditNoteDiscountAmount();
|
||||
const adjustmentAmount = useCreditNoteAdjustmentAmount();
|
||||
|
||||
return subtotal - discountAmount - adjustmentAmount;
|
||||
return R.compose(
|
||||
R.subtract(R.__, discountAmount),
|
||||
R.add(R.__, adjustmentAmount),
|
||||
)(subtotal);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user