@apptimate/ui 6.7.0 → 6.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apptimate/ui",
3
- "version": "6.7.0",
3
+ "version": "6.8.0",
4
4
  "main": "src/index.tsx",
5
5
  "types": "src/index.tsx",
6
6
  "dependencies": {
@@ -190,7 +190,7 @@ export function ProductTransactionScreen({
190
190
 
191
191
  const variantPriceField = config.priceField === 'default_cost_price' ? 'cost_price' : 'sale_price';
192
192
  const batchPriceField = config.priceField === 'default_cost_price' ? 'cost_price' : 'selling_price';
193
- const batchPrice = ['sales', 'quotation'].includes(config.type) && extra?.batches?.[0] ? (extra.batches[0] as any)[batchPriceField] : undefined;
193
+ const batchPrice = ['sales', 'quotation', 'pos'].includes(config.type) && extra?.batches?.[0] ? (extra.batches[0] as any)[batchPriceField] : undefined;
194
194
  const basePrice = (batchPrice !== undefined && batchPrice !== null)
195
195
  ? Number(batchPrice)
196
196
  : (actualVariant ? Number(actualVariant[variantPriceField] || itemWithVariants[config.priceField] || 0) : Number(itemWithVariants[config.priceField] || 0));