export function stokOpnameDifference(physicalStock: number, systemStock: number): number {
    return physicalStock - systemStock;
}

export function stokOpnameDifferenceClass(difference: number): string {
    if (difference > 0) {
        return 'text-green-600 font-semibold';
    }

    if (difference < 0) {
        return 'text-red-600 font-semibold';
    }

    return 'text-muted-foreground';
}

export function stokOpnameDifferenceText(difference: number): string {
    return `${difference > 0 ? '+' : ''}${difference}`;
}
