edit-licheb-car_pdf

This commit is contained in:
lccsw
2022-12-23 16:28:14 +08:00
parent 0390b59869
commit 2bf3cfefcb
3 changed files with 8 additions and 2 deletions
@@ -584,7 +584,8 @@ class Orders_v2_entity{
'price_book' => $fill_info['price_book'],
'last_price' => $fill_info['last_price'],
];
$pdf_path = 'pdf/car_tpl.pdf';
//2022-12-23至2023-01-01使用 car_tpl_tmp.pdf
$pdf_path = time()>strtotime('2023-01-01 00:00:00') ? 'pdf/car_tpl.pdf' : 'pdf/car_tpl_temp.pdf';
if ($fill_info['sa']) {
$fill_data['sa'] = $fill_info['sa'];
$pdf_path = 'pdf/car_sa_tpl.pdf';