fix(physical-receive): use product unit and send product_id

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-15 13:39:31 +03:30
co-authored by Cursor
parent 3e4c0e018e
commit 6e898323d4
@@ -39,7 +39,7 @@
<div class="flex justify-between items-center mt-2">
<div>تعداد درخواستی:</div>
<div class="flex gap-1 items-center w-40%">
<BasicInput v-model:value="val.count" addon-before="عدد"/>
<BasicInput v-model:value="val.count" :addon-before="val.product.unit"/>
</div>
</div>
</div>
@@ -175,6 +175,7 @@ async function handelsubmit() {
productsByWalletId.value = selectedProducts.value.map((val) => {
return {
wallet_id: val.product.wallet.id,
product_id: val.product.id,
value: val.count
}
})