feat: standardize invoice number field, refine invoice creation logic, and update module foreign key constraints

This commit is contained in:
pbao9
2026-03-12 10:10:20 +07:00
parent 1e09ccf17b
commit 1934be9a19
10 changed files with 24 additions and 30 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ class Product extends Model
*/
public function operatingSystems()
{
return $this->belongsToMany(Os::class, 'product_os', 'product_id', 'os_id')
return $this->belongsToMany(Os::class, 'os_product', 'product_id', 'os_id')
->withTimestamps();
}