Skip to main content

How to insert specific invoice items in sales_invoice_item Table?

Actually i create, I created a multi vendor-vendor site. i doneI did most of the things but now am stuck in in invoice creation. 
I filter the invoice items in the New Invoice page shown in the screenshot enter image description here

inIn this order, there are 4 Items but iI already filter each vendor can see own items. in
In this screenshort, you can see 2 items because the current login vendor has 2 items in this order. . My

My Problem is when iI click on "submit invoice""submit invoice" button in this page it createcreates 4 records mean insert 4 items in sales_invoice_itemsales_invoice_item table. I want to insert just those records that shown in New Invoice Page which iI filtered .others Others invoice item will be exclude excluded. 

How can iI make restriction  ? please guide me. Thanks

How insert specific invoice items in sales_invoice_item Table

Actually i create multi vendor site. i done most of things but now am stuck in in invoice creation. I filter the invoice items in the New Invoice page shown in screenshot enter image description here

in this order there are 4 Items but i already filter each vendor can see own items. in this screenshort you can see 2 items because current login vendor has 2 items in this order. . My Problem is when i click on "submit invoice" button in this page it create 4 records mean insert 4 items in sales_invoice_item table. I want to insert just those records that shown in New Invoice Page which i filtered .others invoice item will be exclude . How can i make restriction  ? please guide me. Thanks

How to insert specific invoice items in sales_invoice_item Table?

Actually, I created a multi-vendor site. I did most of the things but now am stuck in invoice creation. 
I filter the invoice items in the New Invoice page shown in the screenshot enter image description here

In this order, there are 4 Items but I already filter each vendor can see own items.
In this screenshort, you can see 2 items because the current login vendor has 2 items in this order.

My Problem is when I click on "submit invoice" button in this page it creates 4 records mean insert 4 items in sales_invoice_item table. I want to insert just those records that shown in New Invoice Page which I filtered . Others invoice item will be excluded. 

How can I make restriction? please guide me. Thanks

Source Link
HaFiz Umer
  • 1.7k
  • 1
  • 17
  • 39

How insert specific invoice items in sales_invoice_item Table

Actually i create multi vendor site. i done most of things but now am stuck in in invoice creation. I filter the invoice items in the New Invoice page shown in screenshot enter image description here

in this order there are 4 Items but i already filter each vendor can see own items. in this screenshort you can see 2 items because current login vendor has 2 items in this order. . My Problem is when i click on "submit invoice" button in this page it create 4 records mean insert 4 items in sales_invoice_item table. I want to insert just those records that shown in New Invoice Page which i filtered .others invoice item will be exclude . How can i make restriction ? please guide me. Thanks