Merge pull request 'Changed logic for print panel for production order' (#709) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 25s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 25s
Reviewed-on: #709
This commit was merged in pull request #709.
This commit is contained in:
@@ -102,13 +102,20 @@ class ProductionOrderController extends Controller
|
|||||||
$itemDes = $order->item->description ?? '';
|
$itemDes = $order->item->description ?? '';
|
||||||
$now = Carbon::now();
|
$now = Carbon::now();
|
||||||
$year = $now->format('y');
|
$year = $now->format('y');
|
||||||
$month = $now->format('m');
|
// $month = $now->format('m');
|
||||||
|
// $month = $now->format('m');
|
||||||
|
|
||||||
$stickers = [];
|
$stickers = [];
|
||||||
|
|
||||||
for ($i = $fromSerial; $i <= $toSerial; $i++)
|
for ($i = $fromSerial; $i <= $toSerial; $i++)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$currentSerial = (string) $i;
|
||||||
|
|
||||||
|
$year = substr($currentSerial, -10, 2);
|
||||||
|
|
||||||
|
$month = substr($currentSerial, -8, 2);
|
||||||
|
|
||||||
$serial = str_pad($i, 6, '0', STR_PAD_LEFT);
|
$serial = str_pad($i, 6, '0', STR_PAD_LEFT);
|
||||||
$serialCount = substr(str_pad($i, 6, '0', STR_PAD_LEFT), -6);
|
$serialCount = substr(str_pad($i, 6, '0', STR_PAD_LEFT), -6);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user