Correction bug modification execution

This commit is contained in:
Brice Zele 2022-04-15 12:47:56 +01:00
parent 82b64dacdd
commit 87b0ff4247
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -1283,7 +1283,7 @@ const ExecuterPrescriptionScreen = ({
}}>
<Text body2 semibold numberOfLines={2}>
{`${item.quantity} ${item.drug_or_device.name} ${item.unit_price ? ' - ' + item.unit_price : ''} \n ${item.dosage}`}
{`${parseInt(item.quantity) - parseInt(item.billed_quantity !== null ? item.billed_quantity : 0)} ${item.drug_or_device.name} ${item.unit_price ? ' - ' + item.unit_price : ''} \n ${item.dosage}`}
</Text>
{item.checked && (
<Icon name="check" size={14} color={Color.primaryColor}/>