mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
fix: discount transactions GL entries
This commit is contained in:
@@ -284,7 +284,10 @@ export const useReceiptTotal = () => {
|
||||
const adjustmentAmount = useReceiptAdjustmentAmount();
|
||||
const discountAmount = useReceiptDiscountAmount();
|
||||
|
||||
return subtotal - discountAmount - adjustmentAmount;
|
||||
return R.compose(
|
||||
R.add(R.__, adjustmentAmount),
|
||||
R.subtract(R.__, discountAmount),
|
||||
)(subtotal);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user