1
我要總結一列由pdfmake是否可以使用pdfmake庫對列進行求和?
樣本數據生成的PDF文件中獲得總計:
#ID ItemName Description Unit Qty Amount Subtotal
1 Mawe Misumari ya ukuta KG 10 3,000.00 30,000.00
2 Mawe Misumari ya ukuta PCS 10 50,000.00 500,000.00
3 Mawe Kwa ajili ya misingi KG 20 3,000.00 60,000.00
所以我想總結出口過程中的小計列與pdfmake並獲得類似
#ID ItemName Description Unit Qty Amount Subtotal
1 Mawe Misumari ya ukuta KG 10 3,000.00 30,000.00
2 Mawe Misumari ya ukuta PCS 10 50,000.00 500,000.00
3 Mawe Kwa ajili ya misingi KG 20 3,000.00 60,000.00
-----------------------------------------------------------------
Total: 590,000.00
-----------------------------------------------------------------
任何想法請。