@apptimate/ui 6.6.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.6.0",
3
+ "version": "6.8.0",
4
4
  "main": "src/index.tsx",
5
5
  "types": "src/index.tsx",
6
6
  "dependencies": {
@@ -371,7 +371,6 @@ export default function ItemFormWizard({
371
371
  </div>
372
372
  </div>
373
373
 
374
- {formData.has_stocks && (
375
374
  <div className="p-4 bg-gray-50/50 rounded-xl border border-gray-100">
376
375
  <p className="text-[11px] font-bold text-gray-400 uppercase tracking-wider mb-3">Tracking Options</p>
377
376
  <div className="flex flex-col sm:flex-row items-start sm:items-center gap-4 sm:gap-6">
@@ -411,7 +410,6 @@ export default function ItemFormWizard({
411
410
  </div>
412
411
 
413
412
  </div>
414
- )}
415
413
 
416
414
  {formData.has_stocks && formData.tracking_type !== 'serial' && (
417
415
  <div className="p-4 bg-gray-50/50 rounded-xl border border-gray-100">
@@ -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));