当前位置: 首页>>代码示例>>PHP>>正文


PHP locale_number_format函数代码示例

本文整理汇总了PHP中locale_number_format函数的典型用法代码示例。如果您正苦于以下问题:PHP locale_number_format函数的具体用法?PHP locale_number_format怎么用?PHP locale_number_format使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了locale_number_format函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: locale_number_format

            }
            $i++;
            $TaxGLCodes[$FreightTaxLine->TaxAuthID] = $FreightTaxLine->TaxGLCode;
        }
        echo '</td>';
        echo '<td class="number">' . locale_number_format($FreightTaxTotal, $_SESSION['CreditItems' . $identifier]->CurrDecimalPlaces) . '</td>
			<td class="number">' . locale_number_format($FreightTaxTotal + $_SESSION['CreditItems' . $identifier]->FreightCost, $_SESSION['CreditItems' . $identifier]->CurrDecimalPlaces) . '</td>
			</tr>';
        $TaxTotal += $FreightTaxTotal;
        $DisplayTotal = locale_number_format($_SESSION['CreditItems' . $identifier]->total + $_SESSION['CreditItems' . $identifier]->FreightCost, $_SESSION['CreditItems' . $identifier]->CurrDecimalPlaces);
        echo '<tr>
				<td colspan="7" class="number">' . _('Credit Totals') . '</td>
				<td class="number"><b>' . $DisplayTotal . '</b></td>
				<td colspan="2"></td>
				<td class="number"><b>' . locale_number_format($TaxTotal, $_SESSION['CreditItems' . $identifier]->CurrDecimalPlaces) . '</td>
				<td class="number"><b>' . locale_number_format($TaxTotal + ($_SESSION['CreditItems' . $identifier]->total + $_SESSION['CreditItems' . $identifier]->FreightCost), $_SESSION['CreditItems' . $identifier]->CurrDecimalPlaces) . '</b></td>
			</tr>
			</table>';
        /*Now show options for the credit note */
        echo '<br />
				<table class="selection">
				<tr>
					<td>' . _('Credit Note Type') . ' :</td>
					<td><select name="CreditType" onchange="ReloadForm(MainForm.Update)" >';
        if (!isset($_POST['CreditType']) or $_POST['CreditType'] == 'Return') {
            echo '<option selected="selected" value="Return">' . _('Goods returned to store') . '</option>
					<option value="WriteOff">' . _('Goods written off') . '</option>
					<option value="ReverseOverCharge">' . _('Reverse an Overcharge') . '</option>';
        } elseif ($_POST['CreditType'] == 'WriteOff') {
            echo '<option selected="selected" value="WriteOff">' . _('Goods written off') . '</option>
					<option value="Return">' . _('Goods returned to store') . '</option>
开发者ID:fgaudenzi,项目名称:webERP-bootstrap,代码行数:31,代码来源:SelectCreditItems.php

示例2: prnMsg

     if ($debug == 1 and abs($_SESSION['SuppTrans']->OvAmount / $_SESSION['SuppTrans']->ExRate - $LocalTotal) > 0.004) {
         prnMsg(_('The total posted to the credit accounts is') . ' ' . $LocalTotal . ' ' . _('but the sum of OvAmount converted at ExRate') . ' = ' . $_SESSION['SuppTrans']->OvAmount / $_SESSION['SuppTrans']->ExRate, 'error');
     }
     foreach ($_SESSION['SuppTrans']->Taxes as $Tax) {
         /* Now the TAX account */
         if ($Tax->TaxOvAmount / $_SESSION['SuppTrans']->ExRate != 0) {
             $SQL = "INSERT INTO gltrans (type,\n\t\t\t\t\t\t\t\t\ttypeno,\n\t\t\t\t\t\t\t\t\ttrandate,\n\t\t\t\t\t\t\t\t\tperiodno,\n\t\t\t\t\t\t\t\t\taccount,\n\t\t\t\t\t\t\t\t\tnarrative,\n\t\t\t\t\t\t\t\t\tamount)\n\t\t\t\t\t\t\tVALUES (21,\n\t\t\t\t\t\t\t\t'" . $CreditNoteNo . "',\n\t\t\t\t\t\t\t\t'" . $SQLCreditNoteDate . "',\n\t\t\t\t\t\t\t\t'" . $PeriodNo . "',\n\t\t\t\t\t\t\t\t'" . $Tax->TaxGLCode . "',\n\t\t\t\t\t\t\t\t'" . $_SESSION['SuppTrans']->SupplierID . ' - ' . _('Credit note') . ' ' . $_SESSION['SuppTrans']->SuppReference . ' ' . $_SESSION['SuppTrans']->CurrCode . $Tax->TaxOvAmount . ' @ ' . _('a rate of') . ' ' . $_SESSION['SuppTrans']->ExRate . "',\n\t\t\t\t\t\t\t\t'" . -$Tax->TaxOvAmount / $_SESSION['SuppTrans']->ExRate . "')";
             $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The general ledger transaction for the tax could not be added because');
             $DbgMsg = _('The following SQL to insert the GL transaction was used');
             $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg, True);
         }
         /* if the tax is not 0 */
     }
     /*end of loop to post the tax */
     /* Now the control account */
     $SQL = "INSERT INTO gltrans (type,\n\t\t\t\t\t\t\ttypeno,\n\t\t\t\t\t\t\ttrandate,\n\t\t\t\t\t\t\tperiodno,\n\t\t\t\t\t\t\taccount,\n\t\t\t\t\t\t\tnarrative,\n\t\t\t\t\t\t\tamount)\n\t\t\t\t\t VALUES (21,\n\t\t\t\t\t \t'" . $CreditNoteNo . "',\n\t\t\t\t\t\t'" . $SQLCreditNoteDate . "',\n\t\t\t\t\t\t'" . $PeriodNo . "',\n\t\t\t\t\t\t'" . $_SESSION['SuppTrans']->CreditorsAct . "',\n\t\t\t\t\t\t'" . $_SESSION['SuppTrans']->SupplierID . ' - ' . _('Credit Note') . ' ' . $_SESSION['SuppTrans']->SuppReference . ' ' . $_SESSION['SuppTrans']->CurrCode . locale_number_format($_SESSION['SuppTrans']->OvAmount + $_SESSION['SuppTrans']->OvGST, $_SESSION['SuppTrans']->CurrDecimalPlaces) . ' @ ' . _('a rate of') . ' ' . $_SESSION['SuppTrans']->ExRate . "',\n\t\t\t\t\t\t'" . ($LocalTotal + $TaxTotal / $_SESSION['SuppTrans']->ExRate) . "')";
     $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The general ledger transaction for the control total could not be added because');
     $DbgMsg = _('The following SQL to insert the GL transaction was used');
     $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg, True);
 }
 /*Thats the end of the GL postings */
 /*Now insert the credit note into the SuppTrans table*/
 $SQL = "INSERT INTO supptrans (transno,\n\t\t\t\t\t\ttype,\n\t\t\t\t\t\tsupplierno,\n\t\t\t\t\t\tsuppreference,\n\t\t\t\t\t\ttrandate,\n\t\t\t\t\t\tduedate,\n\t\t\t\t\t\tinputdate,\n\t\t\t\t\t\tovamount,\n\t\t\t\t\t\tovgst,\n\t\t\t\t\t\trate,\n\t\t\t\t\t\ttranstext)\n\t\t\t\tVALUES (\n\t\t\t\t\t'" . $CreditNoteNo . "',\n\t\t\t\t\t21,\n\t\t\t\t\t'" . $_SESSION['SuppTrans']->SupplierID . "',\n\t\t\t\t\t'" . $_SESSION['SuppTrans']->SuppReference . "',\n\t\t\t\t\t'" . $SQLCreditNoteDate . "',\n\t\t\t\t\t'" . FormatDateForSQL($_SESSION['SuppTrans']->DueDate) . "',\n\t\t\t\t\t'" . Date('Y-m-d H-i-s') . "',\n\t\t\t\t\t'" . -$_SESSION['SuppTrans']->OvAmount . "',\n\t\t\t\t\t'" . -$TaxTotal . "',\n\t\t\t\t\t'" . $_SESSION['SuppTrans']->ExRate . "',\n\t\t\t\t\t'" . $_SESSION['SuppTrans']->Comments . "')";
 $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The supplier credit note transaction could not be added to the database because');
 $DbgMsg = _('The following SQL to insert the supplier credit note was used');
 $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg, True);
 $SuppTransID = DB_Last_Insert_ID($db, 'supptrans', 'id');
 /* Insert the tax totals for each tax authority where tax was charged on the invoice */
 foreach ($_SESSION['SuppTrans']->Taxes as $TaxTotals) {
     $SQL = "INSERT INTO supptranstaxes (supptransid,\n\t\t\t\t\t\t\t\t\t\t\t\ttaxauthid,\n\t\t\t\t\t\t\t\t\t\t\t\ttaxamount)\n\t\t\t\t\t\t\t\t\tVALUES ('" . $SuppTransID . "',\n\t\t\t\t\t\t\t\t\t\t\t'" . $TaxTotals->TaxAuthID . "',\n\t\t\t\t\t\t\t\t\t\t\t'" . -$TaxTotals->TaxOvAmount . "')";
     $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The supplier transaction taxes records could not be inserted because');
开发者ID:BackupTheBerlios,项目名称:kwamoja,代码行数:31,代码来源:SupplierCredit.php

示例3: switch

        }
        echo '<tr>
                    <td>';
        echo '<input type="hidden" name="PropID' . $PropertyCounter . '" value="' . $PropertyRow['stkcatpropid'] . '" />';
        echo '<input type="hidden" name="PropNumeric' . $PropertyCounter . '" value="' . $PropertyRow['numericvalue'] . '" />';
        echo $PropertyRow['label'] . '</td>

                    <td>';
        switch ($PropertyRow['controltype']) {
            case 0:
                //textbox
                if ($PropertyRow['numericvalue'] == 1) {
                    echo '<input type="hidden" name="PropMin' . $PropertyCounter . '" value="' . $PropertyRow['minimumvalue'] . '" />';
                    echo '<input type="hidden" name="PropMax' . $PropertyCounter . '" value="' . $PropertyRow['maximumvalue'] . '" />';
                    echo '<input type="text" class="number" name="PropValue' . $PropertyCounter . '" size="20" maxlength="100" value="' . locale_number_format($PropertyValue, 'Variable') . '" />';
                    echo _('A number between') . ' ' . locale_number_format($PropertyRow['minimumvalue'], 'Variable') . ' ' . _('and') . ' ' . locale_number_format($PropertyRow['maximumvalue'], 'Variable') . ' ' . _('is expected');
                } else {
                    echo '<input type="text" name="PropValue' . $PropertyCounter . '" size="20" maxlength="100" value="' . $PropertyValue . '" />';
                }
                break;
            case 1:
                //select box
                $OptionValues = explode(',', $PropertyRow['defaultvalue']);
                echo '<select name="PropValue' . $PropertyCounter . '">';
                foreach ($OptionValues as $PropertyOptionValue) {
                    if ($PropertyOptionValue == $PropertyValue) {
                        echo '<option selected="selected" value="' . $PropertyOptionValue . '">' . $PropertyOptionValue . '</option>';
                    } else {
                        echo '<option value="' . $PropertyOptionValue . '">' . $PropertyOptionValue . '</option>';
                    }
                }
开发者ID:strollClouds,项目名称:snkStudy,代码行数:31,代码来源:StockClone.php

示例4: locale_number_format

        if ($k == 1) {
            echo '<tr class="EvenTableRows">';
            $k = 0;
        } else {
            echo '<tr class="OddTableRows">';
            $k = 1;
        }
        $OnOrder = $PurchQty + $WoQty;
        $Available = $QOH - $DemandQty + $OnOrder;
        echo '<td>' . $myrow['stockid'] . '</td>
				<td>' . $myrow['description'] . '</td>
				<td>' . $myrow['stockunits'] . '</td>
				<td class="number">' . locale_number_format($QOH, $DecimalPlaces) . '</td>
				<td class="number">' . locale_number_format($DemandQty, $DecimalPlaces) . '</td>
				<td class="number">' . locale_number_format($OnOrder, $DecimalPlaces) . '</td>
				<td class="number">' . locale_number_format($Available, $DecimalPlaces) . '</td>
				<td><input class="number"  tabindex="' . ($j + 7) . '" type="text" size="6" name="Quantity' . $i . '" value="0" />
				<input type="hidden" name="StockID' . $i . '" value="' . $myrow['stockid'] . '" />
				</td>
			</tr>';
        echo '<input type="hidden" name="DecimalPlaces' . $i . '" value="' . $myrow['decimalplaces'] . '" />';
        echo '<input type="hidden" name="ItemDescription' . $i . '" value="' . $myrow['description'] . '" />';
        echo '<input type="hidden" name="Units' . $i . '" value="' . $myrow['stockunits'] . '" />';
        if ($j == 1) {
            $jsCall = '<script  type="text/javascript">if (document.SelectParts) {defaultControl(document.SelectParts.itm' . $myrow['stockid'] . ');}</script>';
        }
        $i++;
        #end of page full new headings if
    }
    #end of while loop
    echo '<tr><td><input type="hidden" name="Previous" value="' . ($Offset - 1) . '" />
开发者ID:BackupTheBerlios,项目名称:kwamoja,代码行数:31,代码来源:InternalStockRequest.php

示例5: locale_money_format

                $pdf->line($Left_Margin, $YPos + $line_height - 2, $Page_Width - $Right_Margin, $YPos + $line_height - 2);
                $YPos -= 2 * $line_height;
            }
            $CatTot_Val = 0;
        }
        $LeftOvers = $pdf->addTextWrap($Left_Margin, $YPos, 260 - $Left_Margin, $FontSize, $InventoryValn['categoryid'] . " - " . $InventoryValn['categorydescription']);
        $Category = $InventoryValn['categoryid'];
        $CategoryName = $InventoryValn['categorydescription'];
    }
    if ($_POST['DetailedReport'] == 'Yes') {
        $YPos -= $line_height;
        $FontSize = 8;
        $LeftOvers = $pdf->addTextWrap($Left_Margin, $YPos, 60, $FontSize, $InventoryValn['stockid']);
        $LeftOvers = $pdf->addTextWrap(120, $YPos, 260, $FontSize, $InventoryValn['description']);
        $DisplayUnitCost = locale_money_format($InventoryValn['unitcost'], $_SESSION['CompanyRecord']['currencydefault']);
        $DisplayQtyOnHand = locale_number_format($InventoryValn['qtyonhand'], $InventoryValn['decimalplaces']);
        $DisplayItemTotal = locale_money_format($InventoryValn['itemtotal'], $_SESSION['CompanyRecord']['currencydefault']);
        $LeftOvers = $pdf->addTextWrap(380, $YPos, 60, $FontSize, $DisplayQtyOnHand, 'right');
        $LeftOvers = $pdf->addTextWrap(440, $YPos, 60, $FontSize, $DisplayUnitCost, 'right');
        $LeftOvers = $pdf->addTextWrap(500, $YPos, 60, $FontSize, $DisplayItemTotal, 'right');
    }
    $Tot_Val += $InventoryValn['itemtotal'];
    $CatTot_Val += $InventoryValn['itemtotal'];
    if ($YPos < $Bottom_Margin + $line_height) {
        include 'includes/PDFInventoryValnPageHeader.inc';
    }
}
/*end inventory valn while loop */
$FontSize = 10;
/*Print out the category totals */
if ($_POST['DetailedReport'] == 'Yes') {
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:31,代码来源:MailInventoryValuation.php

示例6: locale_number_format

						<td class="number"><i>%s</i></td>
						<td class="number"><i>%s</i></td>
						<td class="number"><i>%s</i></td>
						<td class="number"><i>%s</i></td>
						</tr>', $ParentGroups[$Level], locale_number_format($GrpActual[$Level], $_SESSION['CompanyRecord']['decimalplaces']), locale_number_format($GrpBudget[$Level], $_SESSION['CompanyRecord']['decimalplaces']), locale_number_format($GrpPrdActual[$Level], $_SESSION['CompanyRecord']['decimalplaces']), locale_number_format($GrpPrdBudget[$Level], $_SESSION['CompanyRecord']['decimalplaces']));
                    $GrpActual[$Level] = 0;
                    $GrpBudget[$Level] = 0;
                    $GrpPrdActual[$Level] = 0;
                    $GrpPrdBudget[$Level] = 0;
                    $ParentGroups[$Level] = '';
                } else {
                    $Level = 1;
                }
            }
        }
        printf('<tr style="background-color:#ffffff">
				<td colspan="2"><b>' . _('Check Totals') . '</b></td>
				<td class="number">%s</td>
				<td class="number">%s</td>
				<td class="number">%s</td>
				<td class="number">%s</td>
			</tr>', locale_number_format($CheckMonth, $_SESSION['CompanyRecord']['decimalplaces']), locale_number_format($CheckBudgetMonth, $_SESSION['CompanyRecord']['decimalplaces']), locale_number_format($CheckPeriodActual, $_SESSION['CompanyRecord']['decimalplaces']), locale_number_format($CheckPeriodBudget, $_SESSION['CompanyRecord']['decimalplaces']));
        echo '</table><br />';
        echo '<div class="centre">
			<input type="submit" name="SelectADifferentPeriod" value="' . _('Select A Different Period') . '" />
		</div>';
    }
}
echo '</div>
	</form>';
include 'includes/footer.inc';
开发者ID:strollClouds,项目名称:snkStudy,代码行数:31,代码来源:GLTrialBalance.php

示例7: max

         $NumberMonths = $_POST['NumberMonthsHolding'] - 10;
         $MaxMthSales = ($SalesRow['prd1'] + $SalesRow['prd2'] + $SalesRow['prd3'] + $SalesRow['prd4'] + $SalesRow['prd5']) / 5;
     } else {
         $NumberMonths = $_POST['NumberMonthsHolding'];
         $MaxMthSales = max($SalesRow['prd1'], $SalesRow['prd2'], $SalesRow['prd3'], $SalesRow['prd4'], $SalesRow['prd5']);
     }
     $IdealStockHolding = ceil($MaxMthSales * $NumberMonths);
     $LeftOvers = $pdf->addTextWrap(497, $YPos, 40, $FontSize, locale_number_format($IdealStockHolding, 0), 'right');
     $LeftOvers = $pdf->addTextWrap(597, $YPos, 40, $FontSize, locale_number_format($InventoryPlan['qoh'], 0), 'right');
     $LeftOvers = $pdf->addTextWrap(638, $YPos, 40, $FontSize, locale_number_format($TotalDemand, 0), 'right');
     $LeftOvers = $pdf->addTextWrap(679, $YPos, 40, $FontSize, locale_number_format($QOO, 0), 'right');
     $SuggestedTopUpOrder = $IdealStockHolding - $InventoryPlan['qoh'] + $TotalDemand - $QOO;
     if ($SuggestedTopUpOrder <= 0) {
         $LeftOvers = $pdf->addTextWrap(720, $YPos, 40, $FontSize, '   ', 'right');
     } else {
         $LeftOvers = $pdf->addTextWrap(720, $YPos, 40, $FontSize, locale_number_format($SuggestedTopUpOrder, 0), 'right');
     }
     if ($YPos < $Bottom_Margin + $line_height) {
         $PageNumber++;
         include 'includes/PDFInventoryPlanPageHeader.inc';
     }
 }
 /*end inventory valn while loop */
 $YPos -= 2 * $line_height;
 $pdf->line($Left_Margin, $YPos + $line_height, $Page_Width - $Right_Margin, $YPos + $line_height);
 if ($ListCount == 0) {
     $Title = _('Print Inventory Planning Report Empty');
     include 'includes/header.inc';
     prnMsg(_('There were no items in the range and location specified'), 'error');
     echo '<br /><a href="' . $RootPath . '/index.php">' . _('Back to the menu') . '</a>';
     include 'includes/footer.inc';
开发者ID:sjhelios,项目名称:trikemindo,代码行数:31,代码来源:InventoryPlanning.php

示例8: _

     $YPos -= $line_height;
 }
 $YPos -= $line_height;
 $LeftOvers = $pdf->addTextWrap(20, $YPos, 60, $FontSize, $Customers['debtorno']);
 $LeftOvers = $pdf->addTextWrap(80, $YPos, 150, $FontSize, $Customers['name']);
 $LeftOvers = $pdf->addTextWrap(80, $YPos - 10, 150, $FontSize, $Customers['address1']);
 $LeftOvers = $pdf->addTextWrap(80, $YPos - 20, 150, $FontSize, $Customers['address2']);
 $LeftOvers = $pdf->addTextWrap(80, $YPos - 30, 150, $FontSize, $Customers['address3']);
 $LeftOvers = $pdf->addTextWrap(140, $YPos - 30, 150, $FontSize, $Customers['address4']);
 $LeftOvers = $pdf->addTextWrap(180, $YPos - 30, 150, $FontSize, $Customers['address5']);
 $LeftOvers = $pdf->addTextWrap(210, $YPos - 30, 150, $FontSize, $Customers['address6']);
 $LeftOvers = $pdf->addTextWrap(230, $YPos, 60, $FontSize, $Customers['branchcode']);
 $LeftOvers = $pdf->addTextWrap(230, $YPos - 10, 60, $FontSize, _('Price List') . ': ' . $Customers['salestype']);
 if ($_POST['Activity'] != 'All') {
     $LeftOvers = $pdf->addTextWrap(230, $YPos - 20, 60, $FontSize, _('Turnover'), 'right');
     $LeftOvers = $pdf->addTextWrap(230, $YPos - 30, 60, $FontSize, locale_number_format($LocalCurrencyTurnover, 0), 'right');
 }
 $LeftOvers = $pdf->addTextWrap(290, $YPos, 150, $FontSize, $Customers['brname']);
 $LeftOvers = $pdf->addTextWrap(290, $YPos - 10, 150, $FontSize, $Customers['contactname']);
 $LeftOvers = $pdf->addTextWrap(290, $YPos - 20, 150, $FontSize, _('Ph') . ': ' . $Customers['phoneno']);
 $LeftOvers = $pdf->addTextWrap(290, $YPos - 30, 150, $FontSize, _('Fax') . ': ' . $Customers['faxno']);
 $LeftOvers = $pdf->addTextWrap(440, $YPos, 150, $FontSize, $Customers['braddress1']);
 $LeftOvers = $pdf->addTextWrap(440, $YPos - 10, 150, $FontSize, $Customers['braddress2']);
 $LeftOvers = $pdf->addTextWrap(440, $YPos - 20, 150, $FontSize, $Customers['braddress3']);
 $LeftOvers = $pdf->addTextWrap(500, $YPos - 20, 150, $FontSize, $Customers['braddress4']);
 $LeftOvers = $pdf->addTextWrap(540, $YPos - 20, 150, $FontSize, $Customers['braddress5']);
 $LeftOvers = $pdf->addTextWrap(570, $YPos - 20, 150, $FontSize, $Customers['braddress6']);
 $LeftOvers = $pdf->addTextWrap(440, $YPos - 30, 150, $FontSize, $Customers['email']);
 $pdf->line($Page_Width - $Right_Margin, $YPos - 32, $Left_Margin, $YPos - 32);
 $YPos -= 40;
 if ($YPos < $Bottom_Margin + 30) {
开发者ID:strollClouds,项目名称:snkStudy,代码行数:31,代码来源:PDFCustomerList.php

示例9: _

     $CatTot_Val += $InventoryValn['itemtotal'];
     $CatTot_Qty += $InventoryValn['qtyonhand'];
     if ($YPos < $Bottom_Margin + $line_height) {
         include 'includes/PDFInventoryValnPageHeader.inc';
     }
 }
 /*end inventory valn while loop */
 $FontSize = 10;
 /*Print out the category totals */
 if ($_POST['DetailedReport'] == 'Yes') {
     $YPos -= 2 * $line_height;
     $LeftOvers = $pdf->addTextWrap($Left_Margin, $YPos, 260 - $Left_Margin, $FontSize, _('Total for') . ' ' . $Category . ' - ' . $CategoryName, 'left');
 }
 $DisplayCatTotVal = locale_money_format($CatTot_Val, $_SESSION['CompanyRecord']['currencydefault']);
 $LeftOvers = $pdf->addTextWrap(500, $YPos, 60, $FontSize, $DisplayCatTotVal, 'right');
 $DisplayCatTotQty = locale_number_format($CatTot_Qty, 2);
 $LeftOvers = $pdf->addTextWrap(360, $YPos, 60, $FontSize, $DisplayCatTotQty, 'right');
 if ($_POST['DetailedReport'] == 'Yes') {
     /*draw a line under the CATEGORY TOTAL*/
     $YPos -= $line_height;
     $pdf->line($Left_Margin, $YPos + $line_height - 2, $Page_Width - $Right_Margin, $YPos + $line_height - 2);
 }
 $YPos -= 2 * $line_height;
 if ($YPos < $Bottom_Margin + $line_height) {
     include 'includes/PDFInventoryValnPageHeader.inc';
 }
 /*Print out the grand totals */
 $LeftOvers = $pdf->addTextWrap(80, $YPos, 260 - $Left_Margin, $FontSize, _('Grand Total Value'), 'right');
 $DisplayTotalVal = locale_money_format($Tot_Val, $_SESSION['CompanyRecord']['currencydefault']);
 $LeftOvers = $pdf->addTextWrap(500, $YPos, 60, $FontSize, $DisplayTotalVal, 'right');
 $pdf->OutputD($_SESSION['DatabaseName'] . '_Inventory_Valuation_' . Date('Y-m-d') . '.pdf');
开发者ID:patmark,项目名称:weberp-elct,代码行数:31,代码来源:InventoryValuation.php

示例10: Date

if (!isset($_POST['ReceivedDate'])) {
    $_POST['ReceivedDate'] = Date($_SESSION['DefaultDateFormat']);
}
echo '<table cellpadding="2" class="selection">
		<tr><td>' . _('Receive work order') . ':</td>
			<td>' . $_POST['WO'] . '</td><td>' . _('Item') . ':</td>
			<td>' . $_POST['StockID'] . ' - ' . $WORow['description'] . '</td></tr>
		 <tr><td>' . _('Manufactured at') . ':</td>
		 	<td>' . $WORow['locationname'] . '</td>
			<td>' . _('Required By') . ':</td>
			<td>' . ConvertSQLDate($WORow['requiredby']) . '</td></tr>
		 <tr><td>' . _('Quantity Ordered') . ':</td>
		 	<td class="number">' . locale_number_format($WORow['qtyreqd'], $WORow['decimalplaces']) . '</td>
			<td colspan="2">' . $WORow['units'] . '</td></tr>
		 <tr><td>' . _('Already Received') . ':</td>
		 	<td class="number">' . locale_number_format($WORow['qtyrecd'], $WORow['decimalplaces']) . '</td>
			<td colspan="2">' . $WORow['units'] . '</td></tr>
		 <tr><td>' . _('Date Received') . ':</td>
		 	<td>' . Date($_SESSION['DefaultDateFormat']) . '</td>
			<td>' . _('Received Into') . ':</td><td>
		 <select name="IntoLocation">';
if (!isset($_POST['IntoLocation'])) {
    $_POST['IntoLocation'] = $WORow['loccode'];
}
$LocResult = DB_query("SELECT loccode, locationname FROM locations", $db);
while ($LocRow = DB_fetch_array($LocResult)) {
    if ($_POST['IntoLocation'] == $LocRow['loccode']) {
        echo '<option selected="True" value="' . $LocRow['loccode'] . '">' . $LocRow['locationname'] . '</option>';
    } else {
        echo '<option value="' . $LocRow['loccode'] . '">' . $LocRow['locationname'] . '</option>';
    }
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:31,代码来源:WorkOrderReceive.php

示例11: printf

                echo '<tr>
					<td colspan="2"></td>
					<td colspan="6"><hr /></td>
				</tr>';
                printf('<tr>
						<td colspan="2"><font size="2"><i>' . _('Gross Profit Percent') . '</i></font></td>
						<td></td>
						<td class="number"><i>%s</i></td>
						<td></td>
						<td class="number"><i>%s</i></td>
						<td></td>
						<td class="number"><i>%s</i></td>
					</tr>
					<tr>
						<td colspan="6"> </td>
					</tr>', locale_number_format($PrdGPPercent, 1) . '%');
                $j++;
            }
            $SectionPrdActual = 0;
            $Section = $myrow['sectioninaccounts'];
            if ($_POST['Detail'] == 'Detailed' and isset($Sections[$myrow['sectioninaccounts']])) {
                printf('<tr>
						<th colspan="6" class="header" style="text-align: left;">%s</th>
					</tr>', $Sections[$myrow['sectioninaccounts']]);
            }
            $j++;
        }
        echo '<tr>
			<td colspan="2"></td>
			<td colspan="6"><hr /></td>
		</tr>';
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:31,代码来源:GLTagProfit_Loss.php

示例12: _

				</tr>';
            echo '<tr>
					<td class="select">' . _('Customer since:') . '</td>
					<td class="select"> <b>' . ConvertSQLDate($myrow['clientsince']) . '</b> </td>
					<td class="select">' . $myrow['customersincedays'] . ' ' . _('days') . '</td>
				</tr>';
            if ($row['total'] == 0) {
                echo '<tr>
						<td class="select">' . _('No Spend from this Customer.') . '</b></td>
						<td class="select"></td>
						<td class="select"></td>
					</tr>';
            } else {
                echo '<tr>
						<td class="select">' . _('Total Spend from this Customer (inc tax):') . ' </td>
						<td class="select"><b>' . locale_number_format($row['total'], $myrow['currdecimalplaces']) . '</b></td>
						<td class="select"></td>
					</tr>';
            }
            echo '<tr>
					<td class="select">' . _('Customer Type:') . ' </td>
					<td class="select"><b>' . $CustomerTypeName . '</b></td>
					<td class="select"></td>
				</tr>';
            echo '</table>';
        }
        //$_SESSION['CustomerID'] != ''
        // Customer Contacts
        $sql = "SELECT * FROM custcontacts\n\t\t\t\tWHERE debtorno='" . $_SESSION['CustomerID'] . "'\n\t\t\t\tORDER BY contid";
        $result = DB_query($sql, $db);
        if (DB_num_rows($result) != 0) {
开发者ID:rrsc,项目名称:KwaMoja,代码行数:31,代码来源:SelectCustomer.php

示例13: ConvertSQLDate

     $FontSize = 8;
 }
 $YPos -= $line_height;
 $LeftOvers = $pdf->addTextWrap($Left_Margin, $YPos, 80, $FontSize, $PriceList['stockid']);
 $LeftOvers = $pdf->addTextWrap($Left_Margin + 100, $YPos, 47, $FontSize, ConvertSQLDate($PriceList['startdate']));
 if ($PriceList['enddate'] != '0000-00-00') {
     $DisplayEndDate = ConvertSQLDate($PriceList['enddate']);
 } else {
     $DisplayEndDate = _('No End Date');
 }
 $LeftOvers = $pdf->addTextWrap($Left_Margin + 100 + 47, $YPos, 47, $FontSize, $DisplayEndDate);
 $LeftOvers = $pdf->addTextWrap($Left_Margin + 130 + 47 + 47, $YPos, 130, $FontSize, $PriceList['description']);
 $DisplayUnitPrice = locale_number_format($PriceList['price'], $PriceList['decimalplaces']);
 $LeftOvers = $pdf->addTextWrap($Left_Margin + 110 + 47 + 47 + 130, $YPos, 180, $FontSize, $DisplayUnitPrice, 'right');
 if ($PriceList['price'] != 0) {
     $DisplayGPPercent = locale_number_format(($PriceList['price'] - $PriceList['standardcost']) * 100 / $PriceList['price'], 1) . '%';
 } else {
     $DisplayGPPercent = 0;
 }
 if ($_POST['ShowGPPercentages'] == 'Yes') {
     $LeftOvers = $pdf->addTextWrap($Left_Margin + 135 + 47 + 47 + 130 + 65, $YPos, 20, $FontSize, $DisplayGPPercent, 'right');
 }
 if ($_POST['CustomerSpecials'] == 'Customer Special Prices Only') {
     /*Need to show to which branch the price relates */
     if ($PriceList['branchcode'] != '') {
         $LeftOvers = $pdf->addTextWrap($Left_Margin + 80 + 47 + 47 + 130 + 65 + 25, $YPos, 60, $FontSize, $PriceList['brname'], 'left');
     } else {
         $LeftOvers = $pdf->addTextWrap($Left_Margin + 80 + 47 + 47 + 130 + 65 + 25, $YPos, 60, $FontSize, _('All'), 'left');
     }
 } else {
     if ($_POST['CustomerSpecials'] == 'Full Description') {
开发者ID:BackupTheBerlios,项目名称:kwamoja,代码行数:31,代码来源:PDFPriceList.php

示例14: while

					</tr>';
            echo $TableHeader;
            /* show the GRNs outstanding to be invoiced that could be reversed */
            $RowCounter = 0;
            $k = 0;
            while ($myrow = DB_fetch_array($result)) {
                if ($k == 1) {
                    echo '<tr class="EvenTableRows">';
                    $k = 0;
                } else {
                    echo '<tr class="OddTableRows">';
                    $k = 1;
                }
                $DisplayQtyRecd = locale_number_format($myrow['qtyrecd'], $myrow['decimalplaces']);
                $DisplayQtyInv = locale_number_format($myrow['quantityinv'], $myrow['decimalplaces']);
                $DisplayQtyRev = locale_number_format($myrow['qtytoreverse'], $myrow['decimalplaces']);
                $DisplayDateDel = ConvertSQLDate($myrow['deliverydate']);
                $LinkToRevGRN = '<a href="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '?GRNNo=' . $myrow['grnno'] . '">' . _('Reverse') . '</a>';
                printf('<td>%s</td>
					<td>%s</td>
					<td>%s</td>
					<td>%s</td>
					<td class="number">%s</td>
					<td class="number">%s</td>
					<td class="number">%s</td>
					<td>%s</td>
					</tr>', $myrow['grnno'], $myrow['itemcode'], $myrow['itemdescription'], $DisplayDateDel, $DisplayQtyRecd, $DisplayQtyInv, $DisplayQtyRev, $LinkToRevGRN);
                $RowCounter++;
                if ($RowCounter > 20) {
                    $RowCounter = 0;
                    echo $TableHeader;
开发者ID:patmark,项目名称:weberp-elct,代码行数:31,代码来源:ReverseGRN.php

示例15: _

        }
    }
}
echo '</select></td></tr>';
echo '<input type="hidden" name="Item" value="' . $Item . '" />';
echo '<tr><td>' . _('Decimal Places') . '<br />' . _('to display') . '</td>';
if (isset($_POST['DecimalPlaces'])) {
    echo '<td><input type="text" class="number" name="DecimalPlaces" size="8" maxlength="8" value="' . $_POST['DecimalPlaces'] . '" /></td></tr>';
} else {
    echo '<td><input type="text" class="number" name="DecimalPlaces" size="8" maxlength="8" value="0" /></td></tr>';
}
echo '<tr><td>' . _('Conversion Factor') . '<br />' . _('to stock units') . '</td>';
if (isset($_POST['ConversionFactor'])) {
    echo '<td><input type="text" class="number" name="ConversionFactor" size="8" maxlength="8" value="' . locale_number_format($_POST['ConversionFactor'], 4) . '" /></td></tr>';
} else {
    echo '<td><input type="text" class="number" name="ConversionFactor" size="8" maxlength="8" value="' . locale_number_format(1, 4) . '" /></td></tr>';
}
echo '<tr><td>' . _('Price') . ':</td>
	          <td><input type="text" class="number" name="Price" size="11" maxlength="10" value="' . locale_money_format($_POST['Price'], $CustomerCurrencyCode) . '" /></td>
				</tr></table>';
echo '<br /><div class="centre"><button type="submit" name="submit">' . _('Enter Information') . '</button></div>';
echo '</form>';
include 'includes/footer.inc';
function ReSequenceEffectiveDates($Item, $PriceList, $CurrAbbrev, $CustomerID, $db)
{
    /*This is quite complicated - the idea is that prices set up should be unique and there is no way two prices could be returned as valid - when getting a price in includes/GetPrice.inc the logic is to first look for a price of the salestype/currency within the effective start and end dates - then if not get the price with a start date prior but a blank end date (the default price). We would not want two prices where the effective dates fall between an existing price so it is necessary to update enddates of prices  - with me - I am just hanging on here myself
    	 Prices with no end date are default prices and need to be ignored in this resquence*/
    $SQL = "SELECT branchcode,\n\t\t\t\t\t\tstartdate,\n\t\t\t\t\t\tenddate\n\t\t\t\t\t\tFROM prices\n\t\t\t\t\t\tWHERE debtorno='" . $CustomerID . "'\n\t\t\t\t\t\tAND stockid='" . $Item . "'\n\t\t\t\t\t\tAND currabrev='" . $CurrAbbrev . "'\n\t\t\t\t\t\tAND typeabbrev='" . $PriceList . "'\n\t\t\t\t\t\tAND enddate<>''\n\t\t\t\t\t\tORDER BY\n\t\t\t\t\t\tbranchcode,\n\t\t\t\t\t\tstartdate,\n\t\t\t\t\t\tenddate";
    $result = DB_query($SQL, $db);
    unset($BranchCode);
    while ($myrow = DB_fetch_array($result)) {
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:31,代码来源:Prices_Customer.php


注:本文中的locale_number_format函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。