@@ -33,49 +33,49 @@ |
||
33 | 33 | ); |
34 | 34 | |
35 | 35 | $l->setTemplateFile(dirname(__FILE__) . '/invoice.docx') |
36 | - ->setData([ |
|
37 | - 'company' => [ |
|
38 | - 'name' => 'Galaxy Finance', |
|
39 | - 'address' => 'PK 15 Road of Boali', |
|
40 | - 'phone' => '+236-72000000', |
|
41 | - ], |
|
42 | - 'customer' => [ |
|
43 | - 'name' => 'Banabool Kitoko', |
|
44 | - 'phone' => '+236-75111111', |
|
45 | - 'email' => '[email protected]', |
|
46 | - ], |
|
47 | - 'invoice' => [ |
|
48 | - 'no' => '2021090500033', |
|
49 | - 'date' => '2021-09-05 11:25:08', |
|
50 | - 'sub_total' => '3,450 FCFA', |
|
51 | - 'tax' => '19 %', |
|
52 | - 'total_amount' => '4,105 FCFA', |
|
53 | - 'due_days' => 15, |
|
54 | - ], |
|
55 | - 'items' => [ |
|
56 | - [ |
|
57 | - 'no' => 1, |
|
58 | - 'name' => 'Savon', |
|
59 | - 'price' => 250, |
|
60 | - 'quantity' => 2, |
|
61 | - 'total' => 500, |
|
62 | - ], |
|
63 | - [ |
|
64 | - 'no' => 2, |
|
65 | - 'name' => 'Sucre', |
|
66 | - 'price' => 500, |
|
67 | - 'quantity' => 5, |
|
68 | - 'total' => 2500, |
|
69 | - ], |
|
70 | - [ |
|
71 | - 'no' => 3, |
|
72 | - 'name' => 'Omo', |
|
73 | - 'price' => 150, |
|
74 | - 'quantity' => 3, |
|
75 | - 'total' => 450, |
|
76 | - ] |
|
77 | - ], |
|
78 | - ]); |
|
36 | + ->setData([ |
|
37 | + 'company' => [ |
|
38 | + 'name' => 'Galaxy Finance', |
|
39 | + 'address' => 'PK 15 Road of Boali', |
|
40 | + 'phone' => '+236-72000000', |
|
41 | + ], |
|
42 | + 'customer' => [ |
|
43 | + 'name' => 'Banabool Kitoko', |
|
44 | + 'phone' => '+236-75111111', |
|
45 | + 'email' => '[email protected]', |
|
46 | + ], |
|
47 | + 'invoice' => [ |
|
48 | + 'no' => '2021090500033', |
|
49 | + 'date' => '2021-09-05 11:25:08', |
|
50 | + 'sub_total' => '3,450 FCFA', |
|
51 | + 'tax' => '19 %', |
|
52 | + 'total_amount' => '4,105 FCFA', |
|
53 | + 'due_days' => 15, |
|
54 | + ], |
|
55 | + 'items' => [ |
|
56 | + [ |
|
57 | + 'no' => 1, |
|
58 | + 'name' => 'Savon', |
|
59 | + 'price' => 250, |
|
60 | + 'quantity' => 2, |
|
61 | + 'total' => 500, |
|
62 | + ], |
|
63 | + [ |
|
64 | + 'no' => 2, |
|
65 | + 'name' => 'Sucre', |
|
66 | + 'price' => 500, |
|
67 | + 'quantity' => 5, |
|
68 | + 'total' => 2500, |
|
69 | + ], |
|
70 | + [ |
|
71 | + 'no' => 3, |
|
72 | + 'name' => 'Omo', |
|
73 | + 'price' => 150, |
|
74 | + 'quantity' => 3, |
|
75 | + 'total' => 450, |
|
76 | + ] |
|
77 | + ], |
|
78 | + ]); |
|
79 | 79 | $l->process(); |
80 | 80 | $l->convert(); |
81 | 81 |