| # | Medicine Name | Batch No | Expiry | Pack | Rec. Qty | Free | Rate/Pack | MRP | Gross Amt | Disc % | Sch Disc | Taxable Amt | GST | Line Total | Live Stock ID |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| = $idx + 1 ?> | = esc($it['item_name'] ?? 'Item') ?> 0): ?> Damaged: = (float)$it['rejected_packs'] ?> (= esc($it['rejection_reason'] ?? 'Damaged') ?>) | = esc($it['batch_no'] ?? '-') ?> | = !empty($it['expiry_date']) ? date('d-M-Y', strtotime($it['expiry_date'])) : '-' ?> | = (int)($it['packing'] ?? 1) ?>s | = $recPacks ?> | = (float)($it['free_packs'] ?? 0) ?> | ₹= number_format($rate, 2) ?> | ₹= number_format((float)($it['mrp'] ?? 0), 2) ?> | ₹= number_format($gross, 2) ?> | = number_format($tradeDisc, 1) ?>% | ₹= number_format($schTotal, 2) ?> | ₹= number_format($taxableAmt, 2) ?> | = esc($gstLabel) ?> | ₹= number_format($totalAmt, 2) ?> | Item #= (int)$it['purchase_item_id'] ?> Pending Post |
| Sub Total (Gross Amount): | ₹= number_format($totalGross, 2) ?> | ||||||||||||||
| Total Discount (Trade & Scheme): | ₹= number_format($totalDiscount, 2) ?> | ||||||||||||||
| Taxable Amount: | ₹= number_format((float)($grn['total_received_amount'] ?? $totalGross), 2) ?> | ||||||||||||||
| IGST Amount: | ₹= number_format((float)($grn['igst_amount'] ?? ($grn['total_tax_amount'] ?? 0)), 2) ?> | ||||||||||||||
| CGST Amount: | ₹= number_format((float)($grn['cgst_amount'] ?? (((float)($grn['total_tax_amount'] ?? 0)) / 2)), 2) ?> | ||||||||||||||
| SGST Amount: | ₹= number_format((float)($grn['sgst_amount'] ?? (((float)($grn['total_tax_amount'] ?? 0)) / 2)), 2) ?> | ||||||||||||||
| Total GST: | ₹= number_format((float)($grn['total_tax_amount'] ?? 0), 2) ?> | ||||||||||||||
| Round Off: | = ((float)$grn['round_off'] > 0 ? '+' : '') . number_format((float)$grn['round_off'], 2) ?> | ||||||||||||||
| Net Inward Bill Total (Grand Total): | ₹= number_format((float)($grn['net_amount'] ?? 0), 2) ?> | ||||||||||||||