การลบสินค้าจะเป็นการลบสินค้าออกจากฐานข้อมูล
หมายเหตุ: การลบนี้จะไม่ทำงานหากสินค้ามีธุรกรรมบางอย่างที่เกี่ยวข้อง การทำธุรกรรมอาจเป็นการเปิดสต็อก การซื้อ การขาย หรือการโอนสต็อกสินค้า มันจะแสดงข้อผิดพลาดบางอย่างเช่น:
เมื่อสินค้ามีรายการใดๆ จะไม่สามารถลบได้
ธุรกรรมอาจเป็นได้ทั้งการขาย การซื้อ หรือการเพิ่มสต็อคที่เปิดอยู่
วิธีที่ดีที่สุดในการหลีกเลี่ยงสินค้าดังกล่าวคือการปิดการใช้งานสินค้าเหล่านั้น
Deleting of a product will remove the products from the database.
NOTE: This delete will not work if the product have some transactions related to it. Transaction can be Opening Stock, Purchase, Sales or Stock transfer of the product. It will show some error like:
When a product has any transactions it cannot be deleted.
Transactions can be either Sales, Purchase, or Adding opening stock.
The best way to avoid such products is by deactivation them