To create a shipping list, there are Customer Orders and their parent Shipment process.
In Shipments, in the document template Shipping list, the variable suborder needs to read the data on orders with a list of goods.
Previously, they answered the question https://crm-onebox.com/ru/support/documents/10051-remennaya-suborder-v-dokumente/ and offered the following table creation code, here it is:
For example, I will provide a short example by which you can try to figure it out:
<table>
<head>
<tr>
<td>Order</td>
<td>Products</td>
</tr>
</thing>
<body>
{|foreach from=$subOrderArray item="suborder"|}
<tr>
<td>{|$suborder.name|}</td>
<td>
<table>
{|foreach from=$suborder.productArray item="product"|}
<tr>
<td>{|$product.name|} - {|$product.count|} - {|$product.price|}</td>
</tr>
{|/foreach|}
</table>
</td>
</tr>
{|/foreach|}
</tbody>
To create a shipping list, there are Customer Orders and their parent Shipment process. In Shipments, in the document template Shipping list, the variable suborder needs to read the data on orders with a list of goods. Previously, they answered the question https://crm-onebox.com/ru/support/documents/10051-remennaya-suborder-v-dokumente... and offered the following table creation code, here it is: For example, I will provide a short example by which you can try to figure it out: <table> <head> <tr> <td>Order</td> <td>Products</td> </tr> </thing> <body> {|foreach from=$subOrderArray item="suborder"|} <tr> <td>{|$suborder.name|}</td> <td> <table> {|foreach from=$suborder.productArray item="product"|} <tr> <td>{|$product.name|} - {|$product.count|} - {|$product.price|}</td> </tr> {|/foreach|} </table> </td> </tr> {|/foreach|} </tbody>
Thanks It works! The last thing left is how to output only the first level subprocesses in an array through suborder? I tried what I could. Now the second-level sub-processes Lead and Order to the supplier are included in the shipping list Our process structure: Shipment (assigned to parent) Sales order (main process) Lead (sub-process) Order to the supplier (sub-process) Shipment process for verification: https://more-moto.crm-onebox.com/admin/customorder/dostavka/5600/edit/
Thanks It works!
The last thing left is how to output only the first level subprocesses in an array through suborder? I tried what I could.
Now the second-level sub-processes Lead and Order to the supplier are included in the shipping list
Our process structure:
Shipment (assigned to parent)
Sales order (main process)
Lead (sub-process) Order to the supplier (sub-process)
Shipment process for verification: https://more-moto.crm-onebox.com/admin/customorder/dostavka/5600/edit/
Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter.
Log in and comment
Donate
You don't have enough funds in your account Top up