From: <dai...@us...> - 2011-06-18 05:13:49
|
Revision: 4599 http://web-erp.svn.sourceforge.net/web-erp/?rev=4599&view=rev Author: daintree Date: 2011-06-18 05:13:36 +0000 (Sat, 18 Jun 2011) Log Message: ----------- doh Modified Paths: -------------- trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.mo trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po trunk/locale/de_DE.utf8/LC_MESSAGES/messages.mo trunk/locale/de_DE.utf8/LC_MESSAGES/messages.po trunk/locale/el_GR.utf8/LC_MESSAGES/messages.mo trunk/locale/el_GR.utf8/LC_MESSAGES/messages.po trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot trunk/locale/en_US.utf8/LC_MESSAGES/messages.mo trunk/locale/en_US.utf8/LC_MESSAGES/messages.po trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po trunk/locale/et_EE.utf8/LC_MESSAGES/messages.mo trunk/locale/et_EE.utf8/LC_MESSAGES/messages.po trunk/locale/fa_IR.utf8/LC_MESSAGES/messages.mo trunk/locale/fa_IR.utf8/LC_MESSAGES/messages.po trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.mo trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.mo trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.po trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.mo trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.po trunk/locale/hu_HU.utf8/LC_MESSAGES/messages.mo trunk/locale/hu_HU.utf8/LC_MESSAGES/messages.po trunk/locale/id_ID.utf8/LC_MESSAGES/messages.mo trunk/locale/id_ID.utf8/LC_MESSAGES/messages.po trunk/locale/it_IT.utf8/LC_MESSAGES/messages.mo trunk/locale/it_IT.utf8/LC_MESSAGES/messages.po trunk/locale/ja_JP.utf8/LC_MESSAGES/messages.mo trunk/locale/ja_JP.utf8/LC_MESSAGES/messages.po trunk/locale/lv_LV.utf8/LC_MESSAGES/messages.mo trunk/locale/lv_LV.utf8/LC_MESSAGES/messages.po trunk/locale/nl_NL.utf8/LC_MESSAGES/messages.mo trunk/locale/nl_NL.utf8/LC_MESSAGES/messages.po trunk/locale/pl_PL.utf8/LC_MESSAGES/messages.mo trunk/locale/pl_PL.utf8/LC_MESSAGES/messages.po trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.mo trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.po trunk/locale/pt_PT.utf8/LC_MESSAGES/messages.mo trunk/locale/pt_PT.utf8/LC_MESSAGES/messages.po trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.mo trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.po trunk/locale/ru_RU.utf8/LC_MESSAGES/messages.mo trunk/locale/ru_RU.utf8/LC_MESSAGES/messages.po trunk/locale/sq_AL.utf8/LC_MESSAGES/messages.mo trunk/locale/sq_AL.utf8/LC_MESSAGES/messages.po trunk/locale/sv_SE.utf8/LC_MESSAGES/messages.mo trunk/locale/sv_SE.utf8/LC_MESSAGES/messages.po trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.mo trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.po trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.mo trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.po trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.mo trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.po trunk/sql/mysql/weberp-demo.sql trunk/sql/mysql/weberp-new.sql Added Paths: ----------- trunk/sql/mysql/upgrade4.04.4-4.04.5.sql Modified: trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.mo =================================================================== (Binary files differ) Modified: trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po 2011-06-18 04:55:08 UTC (rev 4598) +++ trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po 2011-06-18 05:13:36 UTC (rev 4599) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: webERP 3.08\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-06-12 21:39+1200\n" +"POT-Creation-Date: 2011-06-18 17:04+1200\n" "PO-Revision-Date: 2011-02-07 15:33+0000\n" "Last-Translator: Tim Schofield <Unknown>\n" "Language-Team: Czech <cs...@li...>\n" @@ -130,11 +130,11 @@ "pomocí této skupině" #: AccountGroups.php:180 AccountGroups.php:190 AccountSections.php:137 -#: Areas.php:116 Areas.php:125 BankAccounts.php:157 CreditStatus.php:125 -#: Currencies.php:143 Currencies.php:151 Currencies.php:158 +#: Areas.php:116 Areas.php:125 BankAccounts.php:157 CreditStatus.php:123 +#: Currencies.php:164 Currencies.php:172 Currencies.php:180 #: CustomerBranches.php:286 CustomerBranches.php:296 CustomerBranches.php:306 -#: CustomerBranches.php:316 Customers.php:311 Customers.php:320 -#: Customers.php:328 Customers.php:336 CustomerTypes.php:147 +#: CustomerBranches.php:316 Customers.php:312 Customers.php:321 +#: Customers.php:329 Customers.php:337 CustomerTypes.php:147 #: CustomerTypes.php:157 Factors.php:134 FixedAssetCategories.php:130 #: GLAccounts.php:80 GLAccounts.php:94 Locations.php:244 Locations.php:252 #: Locations.php:261 Locations.php:269 Locations.php:277 Locations.php:285 @@ -193,12 +193,12 @@ msgstr "Nemohu získat účetní skupiny, protože" #: AccountGroups.php:224 AccountSections.php:175 AddCustomerContacts.php:25 -#: AddCustomerContacts.php:28 AddCustomerNotes.php:97 -#: AddCustomerTypeNotes.php:94 AgedDebtors.php:454 AgedSuppliers.php:277 +#: AddCustomerContacts.php:28 AddCustomerNotes.php:101 +#: AddCustomerTypeNotes.php:95 AgedDebtors.php:454 AgedSuppliers.php:268 #: Areas.php:144 AuditTrail.php:11 BankReconciliation.php:13 -#: BOMExtendedQty.php:272 BOMIndented.php:247 BOMIndentedReverse.php:246 -#: BOMInquiry.php:165 BOMListing.php:112 BOMs.php:208 BOMs.php:790 -#: COGSGLPostings.php:18 CompanyPreferences.php:155 CounterSales.php:1983 +#: BOMExtendedQty.php:259 BOMIndented.php:246 BOMIndentedReverse.php:236 +#: BOMInquiry.php:171 BOMListing.php:112 BOMs.php:208 BOMs.php:798 +#: COGSGLPostings.php:18 CompanyPreferences.php:153 CounterSales.php:1983 #: CounterSales.php:2107 Credit_Invoice.php:255 CreditStatus.php:20 #: Currencies.php:28 CustEDISetup.php:17 DailyBankTransactions.php:10 #: DebtorsAtPeriodEnd.php:124 DiscountCategories.php:10 @@ -218,7 +218,7 @@ #: RecurringSalesOrders.php:310 SalesAnalReptCols.php:51 SalesAnalRepts.php:11 #: SalesCategories.php:11 SalesGLPostings.php:17 SalesGraph.php:34 #: SalesPeople.php:20 SalesTypes.php:20 SelectAsset.php:45 -#: SelectCompletedOrder.php:11 SelectContract.php:81 SelectCreditItems.php:202 +#: SelectCompletedOrder.php:11 SelectContract.php:78 SelectCreditItems.php:202 #: SelectCreditItems.php:270 SelectCustomer.php:323 SelectGLAccount.php:19 #: SelectGLAccount.php:79 SelectOrderItems.php:617 SelectOrderItems.php:1443 #: SelectOrderItems.php:1563 SelectProduct.php:485 SelectSalesOrder.php:454 @@ -231,7 +231,7 @@ #: WhereUsedInquiry.php:18 WorkCentres.php:110 WorkCentres.php:157 #: WorkOrderCosting.php:12 WorkOrderEntry.php:10 WorkOrderIssue.php:20 #: WorkOrderReceive.php:13 WorkOrderStatus.php:41 WWW_Access.php:11 -#: WWW_Users.php:31 Z_BottomUpCosts.php:51 +#: WWW_Users.php:32 Z_BottomUpCosts.php:51 msgid "Search" msgstr "Vyhledávání" @@ -258,19 +258,18 @@ msgstr "Rodičovská skupina" #: AccountGroups.php:248 AccountGroups.php:251 AccountGroups.php:381 -#: AccountGroups.php:383 BankAccounts.php:212 BankAccounts.php:356 -#: BankAccounts.php:358 BankAccounts.php:362 BOMs.php:122 BOMs.php:709 -#: BOMs.php:711 CompanyPreferences.php:439 CompanyPreferences.php:441 -#: CompanyPreferences.php:452 CompanyPreferences.php:454 -#: CompanyPreferences.php:465 CompanyPreferences.php:467 -#: ContractCosting.php:174 CustLoginSetup.php:578 CustLoginSetup.php:580 -#: CustomerBranches.php:410 Customers.php:595 Customers.php:863 -#: Customers.php:871 Customers.php:874 DeliveryDetails.php:1064 -#: DeliveryDetails.php:1104 DeliveryDetails.php:1107 GLTransInquiry.php:69 -#: MRPCalendar.php:220 MRP.php:527 MRP.php:531 MRP.php:535 MRP.php:539 -#: PaymentMethods.php:199 PaymentMethods.php:200 PaymentMethods.php:201 -#: PaymentMethods.php:264 PaymentMethods.php:270 PaymentMethods.php:276 -#: PcAuthorizeExpenses.php:239 PDFChequeListing.php:62 +#: AccountGroups.php:383 BankAccounts.php:211 BankAccounts.php:366 +#: BankAccounts.php:370 BankAccounts.php:374 BOMs.php:122 BOMs.php:717 +#: BOMs.php:719 CompanyPreferences.php:443 CompanyPreferences.php:445 +#: CompanyPreferences.php:456 CompanyPreferences.php:458 +#: CompanyPreferences.php:469 CompanyPreferences.php:471 +#: ContractCosting.php:176 CustomerBranches.php:410 Customers.php:597 +#: Customers.php:865 Customers.php:873 Customers.php:876 +#: DeliveryDetails.php:1064 DeliveryDetails.php:1104 DeliveryDetails.php:1107 +#: GLTransInquiry.php:69 MRPCalendar.php:220 MRP.php:527 MRP.php:531 +#: MRP.php:535 MRP.php:539 PaymentMethods.php:199 PaymentMethods.php:200 +#: PaymentMethods.php:201 PaymentMethods.php:264 PaymentMethods.php:270 +#: PaymentMethods.php:276 PcAuthorizeExpenses.php:239 PDFChequeListing.php:62 #: PDFDeliveryDifferences.php:64 PDFDIFOT.php:67 #: PO_AuthorisationLevels.php:132 PO_AuthorisationLevels.php:137 #: PO_Header.php:761 PO_PDFPurchOrder.php:360 PO_PDFPurchOrder.php:363 @@ -290,24 +289,23 @@ #: SystemParameters.php:893 SystemParameters.php:895 SystemParameters.php:905 #: SystemParameters.php:907 SystemParameters.php:961 SystemParameters.php:973 #: SystemParameters.php:975 TaxGroups.php:293 TaxGroups.php:296 -#: TaxGroups.php:345 WWW_Users.php:605 WWW_Users.php:607 +#: TaxGroups.php:345 WWW_Users.php:592 WWW_Users.php:594 msgid "Yes" msgstr "Ano" #: AccountGroups.php:254 AccountGroups.php:386 AccountGroups.php:388 -#: BankAccounts.php:210 BankAccounts.php:356 BankAccounts.php:358 -#: BankAccounts.php:363 BOMs.php:124 BOMs.php:708 BOMs.php:712 -#: CompanyPreferences.php:438 CompanyPreferences.php:442 -#: CompanyPreferences.php:451 CompanyPreferences.php:455 -#: CompanyPreferences.php:464 CompanyPreferences.php:468 -#: ContractCosting.php:172 CustLoginSetup.php:577 CustLoginSetup.php:581 -#: CustomerBranches.php:410 Customers.php:594 Customers.php:859 -#: Customers.php:870 Customers.php:873 DeliveryDetails.php:1065 -#: DeliveryDetails.php:1105 DeliveryDetails.php:1108 GLTransInquiry.php:123 -#: MRPCalendar.php:222 MRP.php:525 MRP.php:529 MRP.php:533 MRP.php:537 -#: PaymentMethods.php:199 PaymentMethods.php:200 PaymentMethods.php:201 -#: PaymentMethods.php:265 PaymentMethods.php:271 PaymentMethods.php:277 -#: PcAuthorizeExpenses.php:237 PDFChequeListing.php:61 +#: BankAccounts.php:209 BankAccounts.php:367 BankAccounts.php:369 +#: BankAccounts.php:375 BOMs.php:124 BOMs.php:716 BOMs.php:720 +#: CompanyPreferences.php:442 CompanyPreferences.php:446 +#: CompanyPreferences.php:455 CompanyPreferences.php:459 +#: CompanyPreferences.php:468 CompanyPreferences.php:472 +#: ContractCosting.php:174 CustomerBranches.php:410 Customers.php:596 +#: Customers.php:861 Customers.php:872 Customers.php:875 +#: DeliveryDetails.php:1065 DeliveryDetails.php:1105 DeliveryDetails.php:1108 +#: GLTransInquiry.php:123 MRPCalendar.php:222 MRP.php:525 MRP.php:529 +#: MRP.php:533 MRP.php:537 PaymentMethods.php:199 PaymentMethods.php:200 +#: PaymentMethods.php:201 PaymentMethods.php:265 PaymentMethods.php:271 +#: PaymentMethods.php:277 PcAuthorizeExpenses.php:237 PDFChequeListing.php:61 #: PDFDeliveryDifferences.php:63 PDFDIFOT.php:66 #: PO_AuthorisationLevels.php:134 PO_AuthorisationLevels.php:139 #: PO_Header.php:760 PO_PDFPurchOrder.php:361 PO_PDFPurchOrder.php:364 @@ -327,17 +325,17 @@ #: SystemParameters.php:892 SystemParameters.php:896 SystemParameters.php:904 #: SystemParameters.php:908 SystemParameters.php:962 SystemParameters.php:972 #: SystemParameters.php:976 TaxGroups.php:294 TaxGroups.php:297 -#: TaxGroups.php:347 WWW_Users.php:604 WWW_Users.php:608 +#: TaxGroups.php:347 WWW_Users.php:591 WWW_Users.php:595 #: includes/PDFLowGPPageHeader.inc:44 includes/PDFTaxPageHeader.inc:35 msgid "No" msgstr "Ne" -#: AccountGroups.php:263 AccountSections.php:195 AddCustomerContacts.php:131 -#: AddCustomerNotes.php:125 AddCustomerTypeNotes.php:123 Areas.php:164 -#: BankAccounts.php:221 BOMs.php:144 COGSGLPostings.php:108 -#: COGSGLPostings.php:211 CreditStatus.php:174 Currencies.php:238 -#: CustLoginSetup.php:307 CustomerBranches.php:414 Customers.php:917 -#: Customers.php:949 CustomerTypes.php:202 EDIMessageFormat.php:150 +#: AccountGroups.php:263 AccountSections.php:196 AddCustomerContacts.php:149 +#: AddCustomerNotes.php:132 AddCustomerTypeNotes.php:123 Areas.php:164 +#: BankAccounts.php:220 BOMs.php:144 COGSGLPostings.php:107 +#: COGSGLPostings.php:204 CreditStatus.php:172 Currencies.php:269 +#: CustLoginSetup.php:219 CustomerBranches.php:414 Customers.php:940 +#: Customers.php:973 CustomerTypes.php:202 EDIMessageFormat.php:150 #: Factors.php:299 FixedAssetCategories.php:180 FixedAssetLocations.php:102 #: FreightCosts.php:240 GeocodeSetup.php:170 GLAccounts.php:308 GLTags.php:82 #: Labels.php:414 Locations.php:377 MRPDemands.php:303 MRPDemandTypes.php:120 @@ -346,26 +344,26 @@ #: PcTypeTabs.php:172 PO_AuthorisationLevels.php:149 Prices_Customer.php:280 #: Prices.php:246 PurchData.php:210 SalesCategories.php:256 #: SalesGLPostings.php:132 SalesGLPostings.php:245 SalesPeople.php:219 -#: SalesTypes.php:216 SecurityTokens.php:110 SelectCustomer.php:613 -#: SelectCustomer.php:630 SelectCustomer.php:654 SelectCustomer.php:671 -#: SelectCustomer.php:694 SelectCustomer.php:710 Shippers.php:144 +#: SalesTypes.php:216 SecurityTokens.php:110 SelectCustomer.php:614 +#: SelectCustomer.php:632 SelectCustomer.php:656 SelectCustomer.php:673 +#: SelectCustomer.php:696 SelectCustomer.php:712 Shippers.php:144 #: StockCategories.php:240 SupplierContacts.php:157 SupplierTypes.php:189 #: SuppLoginSetup.php:271 SuppTransGLAnalysis.php:118 TaxAuthorities.php:172 #: TaxCategories.php:182 TaxGroups.php:178 TaxProvinces.php:176 #: UnitsOfMeasure.php:188 WorkCentres.php:137 WWW_Access.php:123 -#: WWW_Users.php:305 includes/InputSerialItems.php:88 +#: WWW_Users.php:306 includes/InputSerialItems.php:88 #: includes/OutputSerialItems.php:21 #, php-format msgid "Edit" msgstr "Upravit" -#: AccountGroups.php:264 AccountSections.php:199 AddCustomerContacts.php:132 -#: AddCustomerNotes.php:126 AddCustomerTypeNotes.php:124 Areas.php:165 -#: BankAccounts.php:222 BOMs.php:146 COGSGLPostings.php:109 -#: COGSGLPostings.php:212 ContractBOM.php:270 ContractOtherReqts.php:121 -#: CounterSales.php:781 Credit_Invoice.php:384 CreditStatus.php:175 -#: Currencies.php:241 CustLoginSetup.php:308 CustomerReceipt.php:863 -#: Customers.php:950 CustomerTypes.php:203 DiscountCategories.php:215 +#: AccountGroups.php:264 AccountSections.php:200 AddCustomerContacts.php:150 +#: AddCustomerNotes.php:133 AddCustomerTypeNotes.php:124 Areas.php:165 +#: BankAccounts.php:221 BOMs.php:146 COGSGLPostings.php:108 +#: COGSGLPostings.php:205 ContractBOM.php:268 ContractOtherReqts.php:117 +#: CounterSales.php:781 Credit_Invoice.php:384 CreditStatus.php:173 +#: Currencies.php:272 CustLoginSetup.php:220 CustomerReceipt.php:863 +#: Customers.php:974 CustomerTypes.php:203 DiscountCategories.php:215 #: DiscountMatrix.php:173 EDIMessageFormat.php:151 #: FixedAssetCategories.php:181 FixedAssetJournal.php:393 FreightCosts.php:241 #: GeocodeSetup.php:171 GLAccounts.php:309 GLJournal.php:382 GLTags.php:83 @@ -377,9 +375,9 @@ #: Prices.php:247 PurchData.php:211 SalesAnalReptCols.php:294 #: SalesAnalRepts.php:302 SalesCategories.php:257 SalesGLPostings.php:133 #: SalesGLPostings.php:246 SalesPeople.php:220 SalesTypes.php:217 -#: SecurityTokens.php:111 SelectCreditItems.php:745 SelectCustomer.php:614 -#: SelectCustomer.php:631 SelectCustomer.php:655 SelectCustomer.php:672 -#: SelectCustomer.php:695 SelectCustomer.php:711 SelectOrderItems.php:1370 +#: SecurityTokens.php:111 SelectCreditItems.php:745 SelectCustomer.php:615 +#: SelectCustomer.php:633 SelectCustomer.php:657 SelectCustomer.php:674 +#: SelectCustomer.php:697 SelectCustomer.php:713 SelectOrderItems.php:1370 #: Shipments.php:423 Shippers.php:145 SpecialOrder.php:581 #: StockCategories.php:241 StockCategories.php:535 SuppContractChgs.php:91 #: SuppCreditGRNs.php:92 SuppFixedAssetChgs.php:84 SuppInvGRNs.php:132 @@ -387,7 +385,7 @@ #: SuppShiptChgs.php:89 SuppTransGLAnalysis.php:119 TaxAuthorities.php:173 #: TaxCategories.php:183 TaxGroups.php:179 TaxProvinces.php:177 #: UnitsOfMeasure.php:189 WorkCentres.php:138 WOSerialNos.php:303 -#: WWW_Access.php:124 WWW_Users.php:306 includes/InputSerialItemsKeyed.php:59 +#: WWW_Access.php:124 WWW_Users.php:307 includes/InputSerialItemsKeyed.php:59 #: includes/OutputSerialItems.php:98 #, php-format msgid "Delete" @@ -430,10 +428,10 @@ msgid "Section In Accounts" msgstr "Sekce v účtech" -#: AccountGroups.php:398 AccountSections.php:263 AddCustomerContacts.php:208 -#: AddCustomerNotes.php:201 AddCustomerTypeNotes.php:192 Areas.php:220 -#: BankAccounts.php:369 BOMs.php:722 COGSGLPostings.php:349 -#: CreditStatus.php:246 Currencies.php:345 CustLoginSetup.php:599 +#: AccountGroups.php:398 AccountSections.php:264 AddCustomerContacts.php:244 +#: AddCustomerNotes.php:211 AddCustomerTypeNotes.php:191 Areas.php:220 +#: BankAccounts.php:381 BOMs.php:730 COGSGLPostings.php:342 +#: CreditStatus.php:250 Currencies.php:393 CustLoginSetup.php:439 #: DiscountMatrix.php:136 EDIMessageFormat.php:247 #: FixedAssetCategories.php:322 FixedAssetLocations.php:148 #: FreightCosts.php:339 GeocodeSetup.php:267 GLAccounts.php:258 @@ -444,7 +442,7 @@ #: SalesPeople.php:329 Shippers.php:196 StockCategories.php:557 #: SupplierContacts.php:258 SuppLoginSetup.php:529 TaxAuthorities.php:312 #: TaxCategories.php:233 TaxProvinces.php:227 UnitsOfMeasure.php:240 -#: WorkCentres.php:261 WWW_Users.php:638 +#: WorkCentres.php:261 WWW_Users.php:625 msgid "Enter Information" msgstr "Vložit informace" @@ -489,42 +487,44 @@ msgid "Could not get account group sections because" msgstr "Nelze získat body účet skupiny, protože" -#: AccountSections.php:179 AccountSections.php:237 AccountSections.php:255 +#: AccountSections.php:180 AccountSections.php:238 AccountSections.php:256 msgid "Section Number" msgstr "Číslo sekce" -#: AccountSections.php:180 AccountSections.php:259 +#: AccountSections.php:181 AccountSections.php:260 msgid "Section Description" msgstr "Popis sekce" -#: AccountSections.php:197 +#: AccountSections.php:198 msgid "Restricted" msgstr "Omezeno" -#: AccountSections.php:208 +#: AccountSections.php:209 msgid "Review Account Sections" msgstr "Přezkoumání účtu Sekce" -#: AccountSections.php:226 +#: AccountSections.php:227 msgid "Could not retrieve the requested section please try again." msgstr "Nepodařilo se získat požadovanou sekci prosím zkuste to znovu." -#: AddCustomerContacts.php:6 AddCustomerContacts.php:59 SelectCustomer.php:607 -#: SelectCustomer.php:637 +#: AddCustomerContacts.php:6 AddCustomerContacts.php:61 SelectCustomer.php:607 +#: SelectCustomer.php:639 msgid "Customer Contacts" msgstr "Zákazník Kontakty" -#: AddCustomerContacts.php:20 CustEDISetup.php:9 CustLoginSetup.php:22 +#: AddCustomerContacts.php:20 CustEDISetup.php:9 CustLoginSetup.php:11 #: Z_CheckDebtorsControl.php:20 msgid "Back to Customers" msgstr "Zpět k zákazníkům" #: AddCustomerContacts.php:26 -msgid "Contacts for Customer: <b>" +#, fuzzy +msgid "Contacts for Customer:" msgstr "Kontakt pro zákazníky:" #: AddCustomerContacts.php:29 -msgid "Edit contact for <b>" +#, fuzzy +msgid "Edit contact for" msgstr "Upravit kontakt" #: AddCustomerContacts.php:41 @@ -542,8 +542,15 @@ msgid "The contact name may not be empty" msgstr "Jméno kontaktu nesmí být prázdný" -#: AddCustomerContacts.php:59 AddCustomerNotes.php:49 -#: AddCustomerTypeNotes.php:49 Areas.php:73 CustomerTypes.php:69 +#: AddCustomerContacts.php:50 +#, fuzzy +msgid "The contact email address is not a valid email address" +msgstr "" +"E-mailová adresa se nezdá být platnou e-mailovou adresu. Transakce nebyla e-" +"mailem" + +#: AddCustomerContacts.php:61 AddCustomerNotes.php:50 +#: AddCustomerTypeNotes.php:48 Areas.php:73 CustomerTypes.php:69 #: DeliveryDetails.php:771 Factors.php:105 FixedAssetItems.php:236 #: PcAssignCashToTab.php:88 PcClaimExpensesFromTab.php:79 PcExpenses.php:93 #: PcTabs.php:102 PcTypeTabs.php:60 PO_Items.php:356 SalesAnalReptCols.php:129 @@ -552,56 +559,77 @@ msgid "has been updated" msgstr "byla aktualizována" -#: AddCustomerContacts.php:70 +#: AddCustomerContacts.php:76 msgid "The contact record has been added" msgstr "Kontakt záznam byl přidán" -#: AddCustomerContacts.php:98 +#: AddCustomerContacts.php:105 msgid "The contact record has been deleted" msgstr "Kontakt záznam byl odstraněn" -#: AddCustomerContacts.php:112 CompanyPreferences.php:224 -#: CustomerBranches.php:368 Customers.php:907 Customers.php:913 -#: Customers.php:978 SalesPeople.php:191 SelectCustomer.php:609 -#: StockDispatch.php:185 StockDispatch.php:197 SupplierContacts.php:145 -#: SupplierCredit.php:441 SupplierInvoice.php:408 SuppTransGLAnalysis.php:103 +#: AddCustomerContacts.php:128 CompanyPreferences.php:222 +#: CustomerBranches.php:368 Customers.php:928 Customers.php:935 +#: SalesPeople.php:191 SelectCustomer.php:609 StockDispatch.php:185 +#: StockDispatch.php:197 SupplierContacts.php:145 SupplierCredit.php:441 +#: SupplierInvoice.php:408 SuppTransGLAnalysis.php:103 #: includes/InputSerialItemsFile.php:84 includes/InputSerialItemsFile.php:124 #: includes/PDFTaxPageHeader.inc:37 msgid "Name" msgstr "Název" -#: AddCustomerContacts.php:113 AddCustomerContacts.php:190 Customers.php:908 -#: Customers.php:914 Customers.php:980 SelectCustomer.php:610 -#: WWW_Access.php:107 WWW_Access.php:168 +#: AddCustomerContacts.php:129 AddCustomerContacts.php:220 Customers.php:929 +#: Customers.php:936 SelectCustomer.php:610 WWW_Access.php:107 +#: WWW_Access.php:168 msgid "Role" msgstr "Roli" -#: AddCustomerContacts.php:114 Customers.php:982 +#: AddCustomerContacts.php:130 msgid "Phone no" msgstr "Telefonní číslo" -#: AddCustomerContacts.php:115 AddCustomerContacts.php:202 Customers.php:910 -#: Customers.php:916 Customers.php:984 PcAssignCashToTab.php:220 -#: PcAssignCashToTab.php:346 PcAuthorizeExpenses.php:91 -#: PcClaimExpensesFromTab.php:214 PcClaimExpensesFromTab.php:372 -#: PcReportTab.php:327 SelectCustomer.php:612 SystemParameters.php:319 -#: WOSerialNos.php:280 WOSerialNos.php:282 +#: AddCustomerContacts.php:131 AddCustomerContacts.php:232 +#: CustLoginSetup.php:193 CustomerBranches.php:374 CustomerBranches.php:716 +#: CustomerInquiry.php:249 Customers.php:931 Customers.php:938 +#: EmailCustTrans.php:15 EmailCustTrans.php:63 Factors.php:226 Factors.php:263 +#: Locations.php:533 OrderDetails.php:105 PDFRemittanceAdvice.php:251 +#: PO_PDFPurchOrder.php:347 PO_PDFPurchOrder.php:350 PrintCustTrans.php:664 +#: PrintCustTrans.php:884 PrintCustTrans.php:931 +#: PrintCustTransPortrait.php:715 PrintCustTransPortrait.php:935 +#: PrintCustTransPortrait.php:979 SelectCustomer.php:612 +#: SupplierContacts.php:149 SupplierContacts.php:253 SuppLoginSetup.php:237 +#: UserSettings.php:180 WWW_Users.php:262 includes/PDFPickingListHeader.inc:25 +#: includes/PDFStatementPageHeader.inc:67 includes/PDFTransPageHeader.inc:82 +#: includes/PDFTransPageHeaderPortrait.inc:109 +#: includes/PO_PDFOrderPageHeader.inc:29 +msgid "Email" +msgstr "E-mail" + +#: AddCustomerContacts.php:132 AddCustomerContacts.php:238 Customers.php:932 +#: Customers.php:939 PcAssignCashToTab.php:220 PcAssignCashToTab.php:346 +#: PcAuthorizeExpenses.php:91 PcClaimExpensesFromTab.php:214 +#: PcClaimExpensesFromTab.php:372 PcReportTab.php:327 SelectCustomer.php:613 +#: SystemParameters.php:319 WOSerialNos.php:280 WOSerialNos.php:282 msgid "Notes" msgstr "Bere na vědomí" -#: AddCustomerContacts.php:149 +#: AddCustomerContacts.php:150 SupplierContacts.php:158 +#, php-format +msgid "Are you sure you wish to delete this contact?" +msgstr "Jste si jisti, že chcete smazat tento kontakt?" + +#: AddCustomerContacts.php:169 msgid "Review all contacts for this Customer" msgstr "Přezkoumání všech kontaktů pro tohoto zákazníka" -#: AddCustomerContacts.php:179 +#: AddCustomerContacts.php:206 msgid "Contact Code" msgstr "Kontakt kód" -#: AddCustomerContacts.php:184 Factors.php:220 SupplierContacts.php:225 +#: AddCustomerContacts.php:214 Factors.php:220 SupplierContacts.php:225 msgid "Contact Name" msgstr "Jméno kontaktní osoby" -#: AddCustomerContacts.php:196 Contracts.php:777 PDFRemittanceAdvice.php:247 +#: AddCustomerContacts.php:226 Contracts.php:777 PDFRemittanceAdvice.php:247 #: PO_Header.php:965 PO_Header.php:1035 SelectCreditItems.php:223 #: SelectCustomer.php:463 SelectOrderItems.php:646 #: includes/PDFStatementPageHeader.inc:63 includes/PDFTransPageHeader.inc:81 @@ -609,45 +637,45 @@ msgid "Phone" msgstr "Telefon" -#: AddCustomerNotes.php:6 AddCustomerNotes.php:49 SelectCustomer.php:647 -#: SelectCustomer.php:678 +#: AddCustomerNotes.php:6 AddCustomerNotes.php:50 SelectCustomer.php:649 +#: SelectCustomer.php:680 msgid "Customer Notes" msgstr "Zákazník bere na vědomí" -#: AddCustomerNotes.php:20 AddCustomerTypeNotes.php:20 +#: AddCustomerNotes.php:21 AddCustomerTypeNotes.php:19 msgid "Back to Select Customer" msgstr "Zpět na výběr zákazníka" -#: AddCustomerNotes.php:31 +#: AddCustomerNotes.php:32 msgid "The contact priority must be an integer." msgstr "Kontakt priorita musí být celé číslo." -#: AddCustomerNotes.php:34 AddCustomerTypeNotes.php:34 +#: AddCustomerNotes.php:35 AddCustomerTypeNotes.php:33 msgid "The contact's notes must be two hundred characters or less long" msgstr "Kontaktu poznámky musí být dvě stovky postav či méně dlouhou" -#: AddCustomerNotes.php:37 AddCustomerTypeNotes.php:37 +#: AddCustomerNotes.php:38 AddCustomerTypeNotes.php:36 msgid "The contact's notes may not be empty" msgstr "Kontaktu poznámky nesmí být prázdný" -#: AddCustomerNotes.php:60 +#: AddCustomerNotes.php:63 msgid "The contact notes record has been added" msgstr "Kontakt poznámky záznam byl přidán" -#: AddCustomerNotes.php:87 +#: AddCustomerNotes.php:91 msgid "The contact note record has been deleted" msgstr "Kontakt na vědomí záznam byl odstraněn" -#: AddCustomerNotes.php:98 +#: AddCustomerNotes.php:102 msgid "Notes for Customer" msgstr "Poznámky pro zákazníka" -#: AddCustomerNotes.php:106 AddCustomerNotes.php:189 -#: AddCustomerTypeNotes.php:104 AddCustomerTypeNotes.php:186 -#: BankMatching.php:228 BankReconciliation.php:194 BankReconciliation.php:266 -#: ContractCosting.php:149 CustomerAllocations.php:331 +#: AddCustomerNotes.php:113 AddCustomerNotes.php:199 +#: AddCustomerTypeNotes.php:104 AddCustomerTypeNotes.php:185 +#: BankMatching.php:231 BankReconciliation.php:198 BankReconciliation.php:270 +#: ContractCosting.php:151 CustomerAllocations.php:331 #: CustomerAllocations.php:357 CustomerInquiry.php:192 -#: CustomerTransInquiry.php:87 GLAccountInquiry.php:154 GLAccountReportphp:157 +#: CustomerTransInquiry.php:90 GLAccountInquiry.php:154 GLAccountReportphp:157 #: GLAccountReport.php:369 GLTransInquiry.php:41 MRPCalendar.php:215 #: PaymentAllocations.php:77 PcAssignCashToTab.php:216 #: PcAuthorizeExpenses.php:87 PDFRemittanceAdvice.php:308 @@ -665,10 +693,10 @@ msgid "Date" msgstr "Datum" -#: AddCustomerNotes.php:107 AddCustomerTypeNotes.php:105 PcReportTab.php:173 -#: Stocks.php:882 UpgradeDatabase.php:169 UpgradeDatabase.php:172 -#: UpgradeDatabase.php:175 UpgradeDatabase.php:178 UpgradeDatabase.php:181 -#: UpgradeDatabase.php:184 UpgradeDatabase.php:187 UpgradeDatabase.php:190 +#: AddCustomerNotes.php:114 AddCustomerTypeNotes.php:105 PcReportTab.php:173 +#: Stocks.php:882 UpgradeDatabase.php:171 UpgradeDatabase.php:174 +#: UpgradeDatabase.php:177 UpgradeDatabase.php:180 UpgradeDatabase.php:183 +#: UpgradeDatabase.php:186 UpgradeDatabase.php:189 UpgradeDatabase.php:192 #: Z_Upgrade_3.10-3.11.php:62 Z_Upgrade_3.10-3.11.php:66 #: Z_Upgrade_3.10-3.11.php:70 Z_Upgrade_3.10-3.11.php:74 #: Z_Upgrade_3.10-3.11.php:78 Z_Upgrade_3.11-4.00.php:62 @@ -677,48 +705,48 @@ msgid "Note" msgstr "Poznámka:" -#: AddCustomerNotes.php:108 AddCustomerNotes.php:183 +#: AddCustomerNotes.php:115 AddCustomerNotes.php:193 msgid "WWW" msgstr "WWW" -#: AddCustomerNotes.php:109 AddCustomerNotes.php:195 -#: AddCustomerTypeNotes.php:107 AddCustomerTypeNotes.php:189 +#: AddCustomerNotes.php:116 AddCustomerNotes.php:205 +#: AddCustomerTypeNotes.php:107 AddCustomerTypeNotes.php:188 msgid "Priority" msgstr "Prioritních" -#: AddCustomerNotes.php:143 +#: AddCustomerNotes.php:150 msgid "Review all notes for this Customer" msgstr "Zkontrolovat všechny poznámky pro tohoto zákazníka" -#: AddCustomerNotes.php:172 AddCustomerTypeNotes.php:171 +#: AddCustomerNotes.php:180 AddCustomerTypeNotes.php:170 msgid "Note ID" msgstr "Poznámka: ID" -#: AddCustomerNotes.php:177 +#: AddCustomerNotes.php:187 msgid "Contact Note" msgstr "Kontakt Poznámka:" -#: AddCustomerTypeNotes.php:6 SelectCustomer.php:687 +#: AddCustomerTypeNotes.php:5 SelectCustomer.php:689 msgid "Customer Type (Group) Notes" msgstr "Typ zákazníka (Group) Poznámky" -#: AddCustomerTypeNotes.php:31 +#: AddCustomerTypeNotes.php:30 msgid "The Contact priority must be an integer." msgstr "Prioritou Kontakt musí být celé číslo." -#: AddCustomerTypeNotes.php:49 SelectCustomer.php:717 +#: AddCustomerTypeNotes.php:48 SelectCustomer.php:719 msgid "Customer Group Notes" msgstr "Zákaznická skupina bere na vědomí" -#: AddCustomerTypeNotes.php:60 +#: AddCustomerTypeNotes.php:61 msgid "The contact group notes record has been added" msgstr "Kontaktní skupina bere na vědomí záznam byl přidán" -#: AddCustomerTypeNotes.php:84 +#: AddCustomerTypeNotes.php:85 msgid "The contact group note record has been deleted" msgstr "Kontaktní skupina na vědomí záznam byl odstraněn" -#: AddCustomerTypeNotes.php:95 +#: AddCustomerTypeNotes.php:96 msgid "Notes for Customer Type" msgstr "Poznámky pro zákazníka typu" @@ -726,15 +754,20 @@ msgid "href" msgstr "href" +#: AddCustomerTypeNotes.php:124 +#, fuzzy, php-format +msgid "Are you sure you wish to delete this customer type note?" +msgstr "Jste si jisti, že chcete smazat tento typ zákazníka?" + #: AddCustomerTypeNotes.php:141 msgid "Review all notes for this Customer Type" msgstr "Zkontrolovat všechny poznámky tohoto typu zákazníka" -#: AddCustomerTypeNotes.php:182 +#: AddCustomerTypeNotes.php:181 msgid "Contact Group Note" msgstr "Kontaktní skupina Poznámka:" -#: AddCustomerTypeNotes.php:184 +#: AddCustomerTypeNotes.php:183 msgid "Web site" msgstr "Webové stránky" @@ -751,8 +784,8 @@ msgstr "Ve věku od zákaznického účtu analýza" #: AgedDebtors.php:270 AgedDebtors.php:369 AgedDebtors.php:434 -#: AgedSuppliers.php:105 BOMExtendedQty.php:159 BOMIndented.php:150 -#: BOMIndentedReverse.php:151 BOMListing.php:44 BOMListing.php:55 +#: AgedSuppliers.php:107 BOMExtendedQty.php:149 BOMIndented.php:150 +#: BOMIndentedReverse.php:141 BOMListing.php:44 BOMListing.php:55 #: DebtorsAtPeriodEnd.php:56 DebtorsAtPeriodEnd.php:68 GLBalanceSheet.php:90 #: GLBalanceSheet.php:128 GLProfit_Loss.php:157 GLTagProfit_Loss.php:172 #: GLTrialBalance.php:151 InventoryPlanning.php:99 InventoryPlanning.php:174 @@ -780,9 +813,9 @@ msgstr "Zákazník podrobnosti se nepodařilo získat do SQL, protože" #: AgedDebtors.php:273 AgedDebtors.php:372 AgedDebtors.php:440 -#: AgedSuppliers.php:108 AgedSuppliers.php:190 BOMExtendedQty.php:162 -#: BOMExtendedQty.php:259 BOMIndented.php:153 BOMIndented.php:234 -#: BOMIndentedReverse.php:154 BOMIndentedReverse.php:232 BOMListing.php:47 +#: AgedSuppliers.php:110 AgedSuppliers.php:192 BOMExtendedQty.php:152 +#: BOMExtendedQty.php:246 BOMIndented.php:153 BOMIndented.php:234 +#: BOMIndentedReverse.php:145 BOMIndentedReverse.php:222 BOMListing.php:47 #: Credit_Invoice.php:184 DebtorsAtPeriodEnd.php:59 DebtorsAtPeriodEnd.php:71 #: FTP_RadioBeacon.php:187 GetStockImage.php:154 GLBalanceSheet.php:93 #: GLBalanceSheet.php:131 GLBalanceSheet.php:294 GLProfit_Loss.php:160 @@ -798,7 +831,7 @@ #: InventoryValuation.php:92 MailInventoryValuation.php:118 #: MailInventoryValuation.php:214 MRPPlannedPurchaseOrders.php:117 #: MRPPlannedPurchaseOrders.php:128 MRPPlannedWorkOrders.php:108 -#: MRPPlannedWorkOrders.php:119 MRPPlannedWorkOrders.php:316 MRPReport.php:39 +#: MRPPlannedWorkOrders.php:119 MRPPlannedWorkOrders.php:306 MRPReport.php:39 #: MRPReport.php:50 MRPReport.php:150 MRPReschedules.php:48 #: MRPReschedules.php:60 MRPShortages.php:158 MRPShortages.php:170 #: OutstandingGRNs.php:51 OutstandingGRNs.php:63 PDFCustomerList.php:233 @@ -834,7 +867,7 @@ msgid "The details of outstanding transactions for customer" msgstr "Podrobnosti o nesplacených transakcí pro zákazníka" -#: AgedDebtors.php:371 AgedSuppliers.php:189 GLAccountCSV.php:168 +#: AgedDebtors.php:371 AgedSuppliers.php:191 GLAccountCSV.php:168 #: GLAccountInquiry.php:145 GLAccountReportphp:149 GLAccountReport.php:93 #: PO_Items.php:416 PO_Items.php:538 PO_Items.php:562 #: SalesAnalReptCols.php:356 SpecialOrder.php:370 @@ -843,12 +876,12 @@ msgid "could not be retrieved because" msgstr "se nepodařilo získat, protože" -#: AgedDebtors.php:374 AgedSuppliers.php:192 Areas.php:95 -#: ConfirmDispatch_Invoice.php:150 ConfirmDispatch_Invoice.php:962 -#: ConfirmDispatch_Invoice.php:976 Contracts.php:581 CounterSales.php:1323 +#: AgedDebtors.php:374 AgedSuppliers.php:194 Areas.php:95 +#: ConfirmDispatch_Invoice.php:150 ConfirmDispatch_Invoice.php:957 +#: ConfirmDispatch_Invoice.php:971 Contracts.php:581 CounterSales.php:1323 #: CounterSales.php:1337 Credit_Invoice.php:703 Credit_Invoice.php:725 #: CustomerReceipt.php:523 CustomerReceipt.php:655 CustomerReceipt.php:683 -#: CustomerTransInquiry.php:79 DeliveryDetails.php:393 GLProfit_Loss.php:579 +#: CustomerTransInquiry.php:82 DeliveryDetails.php:393 GLProfit_Loss.php:579 #: GLTagProfit_Loss.php:488 Payments.php:312 PDFRemittanceAdvice.php:86 #: PurchData.php:95 PurchData.php:113 PurchData.php:245 ReverseGRN.php:191 #: ReverseGRN.php:205 ReverseGRN.php:366 SelectCreditItems.php:1372 @@ -887,7 +920,7 @@ msgid "To Customer Code" msgstr "Do kódu zákazníka" -#: AgedDebtors.php:471 AgedSuppliers.php:293 +#: AgedDebtors.php:471 AgedSuppliers.php:285 msgid "All balances or overdues only" msgstr "Všechny zůstatky nebo overdues pouze" @@ -895,7 +928,7 @@ msgid "All customers with balances" msgstr "Všichni zákazníci s bilancí" -#: AgedDebtors.php:474 AgedSuppliers.php:296 +#: AgedDebtors.php:474 AgedSuppliers.php:288 msgid "Overdue accounts only" msgstr "Po lhůtě splatnosti účtů" @@ -907,28 +940,33 @@ msgid "Only Show Customers Of" msgstr "Zobrazit jen zákazníky" -#: AgedDebtors.php:493 +#: AgedDebtors.php:486 +#, fuzzy +msgid "All Sales people" +msgstr "Všechny Prodejci" + +#: AgedDebtors.php:492 msgid "Only show customers trading in" msgstr "Zobrazovat pouze zákazníkům obchodování" -#: AgedDebtors.php:508 +#: AgedDebtors.php:507 msgid "Summary or detailed report" msgstr "Souhrn nebo podrobné zprávy" -#: AgedDebtors.php:510 AgedSuppliers.php:316 InventoryValuation.php:247 +#: AgedDebtors.php:509 AgedSuppliers.php:308 InventoryValuation.php:247 msgid "Summary Report" msgstr "Souhrnná zpráva" -#: AgedDebtors.php:511 AgedSuppliers.php:317 InventoryValuation.php:248 +#: AgedDebtors.php:510 AgedSuppliers.php:309 InventoryValuation.php:248 msgid "Detailed Report" msgstr "Podrobná zpráva" -#: AgedDebtors.php:516 AgedSuppliers.php:320 BOMExtendedQty.php:286 -#: BOMIndented.php:271 BOMIndentedReverse.php:255 BOMListing.php:132 +#: AgedDebtors.php:515 AgedSuppliers.php:312 BOMExtendedQty.php:282 +#: BOMIndented.php:272 BOMIndentedReverse.php:250 BOMListing.php:132 #: DebtorsAtPeriodEnd.php:156 InventoryPlanning.php:442 #: InventoryPlanningPrefSupplier.php:518 InventoryQuantities.php:187 #: InventoryValuation.php:251 MRPPlannedPurchaseOrders.php:282 -#: MRPPlannedWorkOrders.php:343 MRPReschedules.php:140 MRPShortages.php:290 +#: MRPPlannedWorkOrders.php:335 MRPReschedules.php:140 MRPShortages.php:290 #: OutstandingGRNs.php:162 PDFCustomerList.php:410 PDFLowGP.php:145 #: PDFPriceList.php:301 PDFRemittanceAdvice.php:152 #: PDFStockCheckComparison.php:379 PrintCustTrans.php:506 @@ -937,53 +975,53 @@ msgid "Print PDF" msgstr "Tisknout PDF" -#: AgedSuppliers.php:18 +#: AgedSuppliers.php:15 msgid "Aged Supplier Listing" msgstr "Dodavatel ve věku Výpis" -#: AgedSuppliers.php:19 +#: AgedSuppliers.php:16 msgid "Aged Suppliers" msgstr "Ve věku od dodavatelů" -#: AgedSuppliers.php:105 +#: AgedSuppliers.php:107 msgid "Aged Supplier Account Analysis" msgstr "Dodavatel ve věku účtu analýza" -#: AgedSuppliers.php:107 SupplierBalsAtPeriodEnd.php:55 +#: AgedSuppliers.php:109 SupplierBalsAtPeriodEnd.php:55 msgid "The Supplier details could not be retrieved by the SQL because" msgstr "Dodavatel údaje se nepodařilo získat do SQL, protože" -#: AgedSuppliers.php:187 +#: AgedSuppliers.php:189 msgid "Aged Supplier Account Analysis - Problem Report" msgstr "Dodavatel ve věku účtu analýza - nahlášení problému" -#: AgedSuppliers.php:189 +#: AgedSuppliers.php:191 msgid "The details of outstanding transactions for Supplier" msgstr "Podrobnosti o nesplacených transakcí pro dodavatele" -#: AgedSuppliers.php:273 +#: AgedSuppliers.php:264 msgid "Aged Supplier Analysis" msgstr "Dodavatel ve věku analýza" -#: AgedSuppliers.php:286 OutstandingGRNs.php:157 PDFRemittanceAdvice.php:138 +#: AgedSuppliers.php:278 OutstandingGRNs.php:157 PDFRemittanceAdvice.php:138 #: SupplierBalsAtPeriodEnd.php:131 SuppPaymentRun.php:259 msgid "From Supplier Code" msgstr "Od kódu dodavatele" -#: AgedSuppliers.php:289 OutstandingGRNs.php:159 PDFRemittanceAdvice.php:140 +#: AgedSuppliers.php:281 OutstandingGRNs.php:159 PDFRemittanceAdvice.php:140 #: SupplierBalsAtPeriodEnd.php:133 SuppPaymentRun.php:261 msgid "To Supplier Code" msgstr "Do kódu dodavatele" -#: AgedSuppliers.php:295 +#: AgedSuppliers.php:287 msgid "All suppliers with balances" msgstr "Všem dodavatelům s bilancí" -#: AgedSuppliers.php:299 +#: AgedSuppliers.php:291 msgid "For suppliers trading in" msgstr "Pro dodavatele obchodování" -#: AgedSuppliers.php:314 InventoryValuation.php:245 +#: AgedSuppliers.php:306 InventoryValuation.php:245 msgid "Summary or Detailed Report" msgstr "Souhrnné nebo podrobné zprávy" @@ -1090,25 +1128,25 @@ msgid "Incorrect date format used, please re-enter" msgstr "Nesprávné datum používaného formátu, prosím, re-zadání" -#: AuditTrail.php:35 BOMIndented.php:309 BOMIndentedReverse.php:294 +#: AuditTrail.php:35 BOMIndented.php:310 BOMIndentedReverse.php:289 #: MRPCalendar.php:258 msgid "From Date" msgstr "Od data" -#: AuditTrail.php:37 BOMIndented.php:310 BOMIndentedReverse.php:295 +#: AuditTrail.php:37 BOMIndented.php:311 BOMIndentedReverse.php:290 #: MRPCalendar.php:260 msgid "To Date" msgstr "To Date" #: AuditTrail.php:41 PO_AuthorisationLevels.php:123 #: PO_AuthorisationLevels.php:170 PO_AuthorisationLevels.php:173 -#: UserSettings.php:109 +#: UserSettings.php:110 msgid "User ID" msgstr "ID uživatele" -#: AuditTrail.php:43 AuditTrail.php:56 ContractBOM.php:297 -#: CounterSales.php:2113 CounterSales.php:2116 DailySalesInquiry.php:41 -#: DailySalesInquiry.php:43 FixedAssetRegister.php:56 +#: AuditTrail.php:43 AuditTrail.php:56 ContractBOM.php:300 +#: CounterSales.php:2113 CounterSales.php:2116 CustomerTransInquiry.php:29 +#: DailySalesInquiry.php:41 DailySalesInquiry.php:43 FixedAssetRegister.php:56 #: FixedAssetRegister.php:65 InventoryQuantities.php:153 #: InventoryQuantities.php:175 InventoryQuantities.php:177 MRP.php:562 #: MRPReport.php:523 MRPReport.php:525 MRPReschedules.php:135 @@ -1136,7 +1174,7 @@ msgstr "Tabulka " #: AuditTrail.php:67 MRPReport.php:768 PO_SelectPurchOrder.php:391 -#: SelectContract.php:196 SelectProduct.php:739 +#: SelectContract.php:193 SelectProduct.php:739 msgid "View" msgstr "Zobrazit" @@ -1148,9 +1186,9 @@ msgid "User" msgstr "Uživatel" -#: AuditTrail.php:146 BankReconciliation.php:195 BankReconciliation.php:267 +#: AuditTrail.php:146 BankReconciliation.php:199 BankReconciliation.php:271 #: CustomerAllocations.php:355 CustomerInquiry.php:190 -#: CustomerTransInquiry.php:21 CustomerTransInquiry.php:85 +#: CustomerTransInquiry.php:18 CustomerTransInquiry.php:88 #: CustWhereAlloc.php:17 CustWhereAlloc.php:88 DailyBankTransactions.php:104 #: GLAccountInquiry.php:152 GLAccountReportphp:155 GLAccountReport.php:367 #: GLJournal.php:240 MRPReschedules.php:178 SalesByTypePeriodInquiry.php:327 @@ -1258,35 +1296,35 @@ msgid "Bank account deleted" msgstr "Bankovní účet smazán" -#: BankAccounts.php:184 +#: BankAccounts.php:183 msgid "The bank accounts set up could not be retrieved because" msgstr "Bankovní účty zřízené se nepodařilo získat, protože" -#: BankAccounts.php:185 +#: BankAccounts.php:184 msgid "The SQL used to retrieve the bank account details was" msgstr "SQL používá k načtení údaje o bankovním účtu bylo" -#: BankAccounts.php:191 GLJournal.php:264 +#: BankAccounts.php:190 GLJournal.php:264 msgid "GL Account Code" msgstr "GL kódu účtu" -#: BankAccounts.php:192 BankAccounts.php:321 +#: BankAccounts.php:191 BankAccounts.php:323 msgid "Bank Account Name" msgstr "Název bankovního účtu" -#: BankAccounts.php:193 BankAccounts.php:323 +#: BankAccounts.php:192 BankAccounts.php:325 msgid "Bank Account Code" msgstr "Bankovní účet kódu" -#: BankAccounts.php:194 BankAccounts.php:325 +#: BankAccounts.php:193 BankAccounts.php:327 msgid "Bank Account Number" msgstr "Číslo bankovního účtu" -#: BankAccounts.php:195 BankAccounts.php:327 +#: BankAccounts.php:194 BankAccounts.php:329 msgid "Bank Address" msgstr "Adresa banky" -#: BankAccounts.php:196 CustomerReceipt.php:753 CustomerTransInquiry.php:95 +#: BankAccounts.php:195 CustomerReceipt.php:753 CustomerTransInquiry.php:98 #: OffersReceived.php:99 PcReportTab.php:267 PcTabs.php:206 PcTabs.php:349 #: PDFPrintLabel.php:93 PO_AuthorisationLevels.php:125 #: PO_AuthorisationLevels.php:205 PO_AuthorisationLevels.php:210 @@ -1301,19 +1339,24 @@ msgid "Currency" msgstr "Měna" -#: BankAccounts.php:197 BankAccounts.php:346 +#: BankAccounts.php:196 BankAccounts.php:352 msgid "Default for Invoices" msgstr "Výchozí pro Faktury" -#: BankAccounts.php:246 +#: BankAccounts.php:221 +#, fuzzy, php-format +msgid "Are you sure you wish to delete this bank account?" +msgstr "Jste si jisti, že chcete smazat tento obor?" + +#: BankAccounts.php:245 msgid "Show All Bank Accounts Defined" msgstr "Zobrazit všechny bankovní účty definované" -#: BankAccounts.php:279 BankAccounts.php:282 +#: BankAccounts.php:279 BankAccounts.php:284 msgid "Bank Account GL Code" msgstr "Bankovní účet GL kód" -#: BankAccounts.php:329 +#: BankAccounts.php:331 msgid "Currency Of Account" msgstr "Měna účtu" @@ -1358,16 +1401,16 @@ msgid "Could not match off this payment because" msgstr "Nemohl zápas z této platby, protože" -#: BankMatching.php:63 +#: BankMatching.php:64 msgid "Could not update the amount matched off this bank transaction because" msgstr "" "Nepodařilo se aktualizovat částku uzavřeno z této banky, protože transakce" -#: BankMatching.php:69 +#: BankMatching.php:70 msgid "Could not unclear this bank transaction because" msgstr "Nemohu nejasné tento bankovní transakci, protože" -#: BankMatching.php:77 +#: BankMatching.php:78 msgid "" "Use this screen to match webERP Receipts and Payments to your Bank " "Statement. Check your bank statement and click the check-box when you find " @@ -1377,24 +1420,24 @@ "účtu. Zkontrolujte, zda vaše bankovní výpis a klikněte na check-box, když " "zjistíte, odpovídající transakce." -#: BankMatching.php:85 BankReconciliation.php:99 CustomerReceipt.php:726 +#: BankMatching.php:87 BankReconciliation.php:101 CustomerReceipt.php:726 #: DailyBankTransactions.php:29 Payments.php:737 PDFChequeListing.php:44 #: TaxAuthorities.php:149 TaxAuthorities.php:305 msgid "Bank Account" msgstr "Bankovní účet" -#: BankMatching.php:107 +#: BankMatching.php:110 msgid "Show" msgstr "Zobrazit" -#: BankMatching.php:107 CreditItemsControlled.php:78 FreightCosts.php:267 +#: BankMatching.php:110 CreditItemsControlled.php:78 FreightCosts.php:267 #: GoodsReceivedControlled.php:65 GoodsReceived.php:65 #: StockLocTransferReceive.php:426 SupplierAllocations.php:434 #: SuppShiptChgs.php:129 msgid "from" msgstr "od" -#: BankMatching.php:110 ConfirmDispatchControlled_Invoice.php:58 +#: BankMatching.php:113 ConfirmDispatchControlled_Invoice.php:58 #: EmailCustTrans.php:63 FixedAssetRegister.php:78 FTP_RadioBeacon.php:280 #: GLAccountCSV.php:171 GLAccountReport.php:102 Payments.php:717 #: PcReportTab.php:102 PDFChequeListing.php:107 PDFChequeListing.php:117 @@ -1424,29 +1467,29 @@ msgid "to" msgstr "na" -#: BankMatching.php:112 +#: BankMatching.php:115 msgid "Choose outstanding" msgstr "Zvolte vynikající" -#: BankMatching.php:112 +#: BankMatching.php:115 msgid "only or all" msgstr "jen nebo všechny" -#: BankMatching.php:112 BankMatching.php:116 BankMatching.php:119 -#: BankMatching.php:127 BankMatching.php:130 +#: BankMatching.php:115 BankMatching.php:119 BankMatching.php:122 +#: BankMatching.php:130 BankMatching.php:133 msgid "in the date range" msgstr "v rozmezí dat" -#: BankMatching.php:116 BankMatching.php:119 BankMatching.php:127 -#: BankMatching.php:130 +#: BankMatching.php:119 BankMatching.php:122 BankMatching.php:130 +#: BankMatching.php:133 msgid "Show all" msgstr "Zobrazit všechny" -#: BankMatching.php:117 BankMatching.php:120 +#: BankMatching.php:120 BankMatching.php:123 msgid "Show unmatched" msgstr "Zobrazit bezkonkurenční" -#: BankMatching.php:117 BankMatching.php:120 ReverseGRN.php:103 +#: BankMatching.php:120 BankMatching.php:123 ReverseGRN.php:103 #: includes/PDFCustomerListPageHeader.inc:46 #: includes/PDFDeliveryDifferencesPageHeader.inc:24 #: includes/PDFDIFOTPageHeader.inc:24 @@ -1455,62 +1498,62 @@ msgid "only" msgstr "jen" -#: BankMatching.php:124 +#: BankMatching.php:127 msgid "Choose to display only the first 20 matching" msgstr "Vyberte, zda chcete zobrazit pouze prvních 20 odpovídající" -#: BankMatching.php:125 +#: BankMatching.php:128 msgid "or all" msgstr "nebo všechny" -#: BankMatching.php:125 +#: BankMatching.php:128 msgid "meeting the criteria" msgstr "splňující kritéria" -#: BankMatching.php:128 BankMatching.php:131 +#: BankMatching.php:131 BankMatching.php:134 msgid "Show only the first 20" msgstr "Zobrazit jen prvních 20" -#: BankMatching.php:136 +#: BankMatching.php:139 msgid "Show selected" msgstr "Zobrazit vybrané" -#: BankMatching.php:137 +#: BankMatching.php:140 msgid "Show reconciliation" msgstr "Zobrazit usmíření" -#: BankMatching.php:143 BankMatching.php:149 +#: BankMatching.php:146 BankMatching.php:152 msgid "The date entered for the field to show" msgstr "Datum vstoupil na pole show" -#: BankMatching.php:143 +#: BankMatching.php:146 msgid "before" msgstr "před" -#: BankMatching.php:144 BankMatching.php:150 +#: BankMatching.php:147 BankMatching.php:153 msgid "is not entered in a recognised date format" msgstr "není zapsán v uznávané formátu data" -#: BankMatching.php:144 BankMatching.php:150 +#: BankMatching.php:147 BankMatching.php:153 msgid "Entry is expected in the format" msgstr "Vstup se očekává ve formátu" -#: BankMatching.php:149 +#: BankMatching.php:152 msgid "after" msgstr "po" -#: BankMatching.php:223 +#: BankMatching.php:226 msgid "The payments with the selected criteria could not be retrieved because" msgstr "Platby podle zadaných kriterií se nepodařilo získat, protože" -#: BankMatching.php:226 ShipmentCosting.php:507 ShipmentCosting.php:578 +#: BankMatching.php:229 ShipmentCosting.php:507 ShipmentCosting.php:578 #: SupplierAllocations.php:455 msgid "Ref" msgstr "Ref" -#: BankMatching.php:229 ConfirmDispatch_Invoice.php:274 Credit_Invoice.php:279 +#: BankMatching.php:232 ConfirmDispatch_Invoice.php:274 Credit_Invoice.php:279 #: CustomerAllocations.php:358 CustomerReceipt.php:842 -#: CustomerTransInquiry.php:94 CustWhereAlloc.php:92 PaymentAllocations.php:78 +#: CustomerTransInquiry.php:97 CustWhereAlloc.php:92 PaymentAllocations.php:78 #: Payments.php:969 Payments.php:972 Payments.php:984 #: PcAssignCashToTab.php:218 PcAssignCashToTab.php:339 #: PcAuthorizeExpenses.php:89 PcClaimExpensesFromTab.php:212 @@ -1528,7 +1571,7 @@ msgid "Amount" msgstr "Částka" -#: BankMatching.php:230 BankReconciliation.php:199 BankReconciliation.php:271 +#: BankMatching.php:233 BankReconciliation.php:203 BankReconciliation.php:275 #: PDFOrdersInvoiced.php:345 PDFOrderStatus.php:319 #: PO_SelectOSPurchOrder.php:213 PO_SelectPurchOrder.php:180 #: Shipt_Select.php:182 SuppCreditGRNs.php:227 @@ -1537,15 +1580,15 @@ msgid "Outstanding" msgstr "Vynikající" -#: BankMatching.php:231 +#: BankMatching.php:234 msgid "Clear" msgstr "Jasný" -#: BankMatching.php:231 BankMatching.php:259 +#: BankMatching.php:234 BankMatching.php:262 msgid "Unclear" msgstr "Nejasný" -#: BankMatching.php:305 +#: BankMatching.php:308 msgid "Update Matching" msgstr "Odpovídající aktualizace" @@ -1563,86 +1606,86 @@ "měly být zaneseny. Kurzových rozdílů nebyla vypočtena žádná obecná a knihy " "časopis byl vytvořen" -#: BankReconciliation.php:33 +#: BankReconciliation.php:34 msgid "Could not retrieve the exchange rate for the selected bank account" msgstr "Nepodařilo se načíst směnný kurz pro vybrané bankovní účet" -#: BankReconciliation.php:63 BankReconciliation.php:81 +#: BankReconciliation.php:65 BankReconciliation.php:83 msgid "reconciliation on" msgstr "usmíření, na" -#: BankReconciliation.php:66 +#: BankReconciliation.php:68 msgid "Cannot insert a GL entry for the exchange difference because" msgstr "Nelze vložit záznam GL pro výměnu rozdíl, protože" -#: BankReconciliation.php:67 +#: BankReconciliation.php:69 msgid "The SQL that failed to insert the exchange difference GL entry was" msgstr "SQL, které se nepodařilo vložit kurzový rozdíl GL vstup" -#: BankReconciliation.php:87 +#: BankReconciliation.php:89 msgid "Exchange difference of" msgstr "Kurzových rozdílů z" -#: BankReconciliation.php:87 +#: BankReconciliation.php:89 msgid "has been posted" msgstr "byl vyslán" -#: BankReconciliation.php:95 SuppPaymentRun.php:300 +#: BankReconciliation.php:97 SuppPaymentRun.php:300 msgid "The bank accounts could not be retrieved by the SQL because" msgstr "Bankovní účty se nepodařilo získat na SQL, protože" -#: BankReconciliation.php:96 CustomerReceipt.php:717 +#: BankReconciliation.php:98 CustomerReceipt.php:717 #: DailyBankTransactions.php:26 Payments.php:734 SuppPaymentRun.php:302 msgid "The SQL used to retrieve the bank accounts was" msgstr "SQL slouží k získání bankovní účty byly" -#: BankReconciliation.php:106 CustomerReceipt.php:731 +#: BankReconciliation.php:108 CustomerReceipt.php:731 msgid "Bank Accounts have not yet been defined" msgstr "Bankovní účty dosud nebyly definovány" -#: BankReconciliation.php:106 CustomerReceipt.php:731 +#: BankReconciliation.php:108 CustomerReceipt.php:731 msgid "You must first" msgstr "Musíte nejprve" -#: BankReconciliation.php:106 CustomerReceipt.php:731 +#: BankReconciliation.php:108 CustomerReceipt.php:731 #: DailyBankTransactions.php:34 Payments.php:742 SuppPaymentRun.php:310 msgid "define the bank accounts" msgstr "definovat bankovních účtů" -#: BankReconciliation.php:106 CustomerReceipt.php:731 +#: BankReconciliation.php:108 CustomerReceipt.php:731 #: DailyBankTransactions.php:34 Payments.php:742 SuppPaymentRun.php:310 msgid "and general ledger accounts to be affected" msgstr "a účtů hlavní knihy mohly být postiženy" -#: BankReconciliation.php:125 +#: BankReconciliation.php:128 msgid "Show bank reconciliation statement" msgstr "Zobrazit bankovní prohlášení o smíření" -#: BankReconciliation.php:144 +#: BankReconciliation.php:147 msgid "The bank account balance could not be returned by the SQL because" msgstr "Bankovního účtu nemůže být vrácen, protože SQL" -#: BankReconciliation.php:157 +#: BankReconciliation.php:160 msgid "" "Could not retrieve the currency and exchange rate for the selected bank " "account" msgstr "Nepodařilo se načíst měny a směnného kurzu pro zvolený bankovní účet" -#: BankReconciliation.php:165 +#: BankReconciliation.php:168 msgid "Balance as at" msgstr "Zůstatek k" -#: BankReconciliation.php:188 +#: BankReconciliation.php:192 msgid "The unpresented cheques could not be retrieved by the SQL because" msgstr "Unpresented Kontroly se nepodařilo získat do SQL, protože" -#: BankReconciliation.php:191 +#: BankReconciliation.php:195 msgid "Add back unpresented cheques" msgstr "Přidat zpět unpresented kontroly" -#: BankReconciliation.php:196 BankReconciliation.php:268 +#: BankReconciliation.php:200 BankReconciliation.php:272 #: CustomerAllocations.php:330 CustomerAllocations.php:356 -#: CustomerInquiry.php:191 CustomerTransInquiry.php:86 CustWhereAlloc.php:89 +#: CustomerInquiry.php:191 CustomerTransInquiry.php:89 CustWhereAlloc.php:89 #: EmailCustTrans.php:15 GLAccountInquiry.php:153 GLAccountReportphp:156 #: PrintCustTrans.php:450 PrintCustTrans.php:651 PrintCustTrans.php:871 #: PrintCustTrans.php:918 PrintCustTransPortrait.php:502 @@ -1659,8 +1702,8 @@ msgid "Number" msgstr "Číslo" -#: BankReconciliation.php:197 BankReconciliation.php:269 -#: ContractCosting.php:148 CustomerInquiry.php:194 CustomerTransInquiry.php:90 +#: BankReconciliation.php:201 BankReconciliation.php:273 +#: ContractCosting.php:150 CustomerInquiry.php:194 CustomerTransInquiry.php:93 #: CustWhereAlloc.php:90 DailyBankTransactions.php:105 GLAccountReport.php:368 #: PaymentAllocations.php:75 PaymentAllocations.php:76 #: PDFRemittanceAdvice.php:309 ShiptsList.php:37 StockCounts.php:99 @@ -1676,39 +1719,39 @@ msgid "Reference" msgstr "Reference" -#: BankReconciliation.php:198 BankReconciliation.php:270 +#: BankReconciliation.php:202 BankReconciliation.php:274 msgid "Orig Amount" msgstr "Orig Částka" -#: BankReconciliation.php:241 +#: BankReconciliation.php:245 msgid "Total of all unpresented cheques" msgstr "Celkem ze všech kontrol unpresented" -#: BankReconciliation.php:259 +#: BankReconciliation.php:263 msgid "The uncleared deposits could not be retrieved by the SQL because" msgstr "Uncleared vklady se nepodařilo získat do SQL, protože" -#: BankReconciliation.php:263 +#: BankReconciliation.php:267 msgid "Less deposits not cleared" msgstr "Méně vklady nejsou schváleny" -#: BankReconciliation.php:313 +#: BankReconciliation.php:318 msgid "Total of all uncleared deposits" msgstr "Souhrn všech vkladů uncleared" -#: BankReconciliation.php:315 +#: BankReconciliation.php:324 msgid "Bank statement balance should be" msgstr "Bankovní výpis bilance by měla být" -#: BankReconciliation.php:319 +#: BankReconciliation.php:329 msgid "Enter the actual bank statement balance" msgstr "Zadejte aktuální výpis z účtu zůstatek" -#: BankReconciliation.php:321 BankReconciliation.php:331 +#: BankReconciliation.php:331 BankReconciliation.php:341 msgid "Calculate and Post Exchange Difference" msgstr "Vypočítat a příspěvek kurzových rozdílů" -#: BankReconciliation.php:321 +#: BankReconciliation.php:331 msgid "" "This will create a general ledger journal to write off the exchange " "difference in the current balance of the account. It is important that the " @@ -1718,13 +1761,13 @@ "zůstatek na účtu. Je důležité, že směnný kurz výše odráží současnou hodnotu " "měny bankovního účtu" -#: BankReconciliation.php:321 CounterSales.php:781 Customers.php:1024 +#: BankReconciliation.php:331 CounterSales.php:781 Customers.php:1000 #: SelectOrderItems.php:1381 Stocks.php:1041 WorkOrderCosting.php:517 #: WorkOrderEntry.php:548 msgid "Are You Sure?" msgstr "Opravdu provést?" -#: BankReconciliation.php:330 +#: BankReconciliation.php:340 msgid "" "It is normal for foreign currency accounts to have exchange differences that " "need to be reflected as the exchange rate varies. This reconciliation is " @@ -1741,58 +1784,58 @@ "vytvořit časopis, aby odrážely kurzový rozdíl na základě aktuálního směnného " "kurzu k opravě k usmíření skutečného stavu bankovního výpisu klikněte níže." -#: BankReconciliation.php:338 BankReconciliation.php:341 +#: BankReconciliation.php:348 BankReconciliation.php:351 msgid "Match off cleared payments" msgstr "Utkání vypnutí vymazány plateb" -#: BankReconciliation.php:339 BankReconciliation.php:342 +#: BankReconciliation.php:349 BankReconciliation.php:352 msgid "Match off cleared deposits" msgstr "Utkání vypnutí vymazány vklady" -#: BOMExtendedQty.php:12 BOMExtendedQty.php:13 BOMExtendedQty.php:159 -#: BOMExtendedQty.php:269 +#: BOMExtendedQty.php:12 BOMExtendedQty.php:13 BOMExtendedQty.php:149 +#: BOMExtendedQty.php:256 msgid "Quantity Extended BOM Listing" msgstr "Množství Rozšířené kusovníku Výpis" -#: BOMExtendedQty.php:32 BOMIndentedReverse.php:29 MRPCalendar.php:85 +#: BOMExtendedQty.php:29 BOMIndentedReverse.php:26 MRPCalendar.php:85 #: MRP.php:27 msgid "The SQL to to create passbom failed with the message" msgstr "SQL k vytvoření passbom nepodařilo se zprávou" -#: BOMExtendedQty.php:45 BOMIndented.php:40 BOMIndentedReverse.php:42 +#: BOMExtendedQty.php:42 BOMIndented.php:40 BOMIndentedReverse.php:39 #: MRP.php:34 msgid "Create of tempbom failed because" msgstr "Vytvořit z tempbom se nezdařila, protože" -#: BOMExtendedQty.php:161 +#: BOMExtendedQty.php:151 msgid "" "The Quantiy Extended BOM Listing could not be retrieved by the SQL because" msgstr "Quantiy Rozšířená rozpisky Výpis se nepodařilo získat na SQL, protože" -#: BOMExtendedQty.php:256 BOMIndented.php:231 +#: BOMExtendedQty.php:243 BOMIndented.php:231 msgid "Print Indented BOM Listing Error" msgstr "Tisk Odsazené kusovníku výpis chyby" -#: BOMExtendedQty.php:258 BOMIndented.php:233 +#: BOMExtendedQty.php:245 BOMIndented.php:233 msgid "There were no items for the selected assembly" msgstr "Nebyly zjištěny žádné položky pro vybraný montáž" -#: BOMExtendedQty.php:276 BOMIndented.php:252 BOMIndentedReverse.php:249 +#: BOMExtendedQty.php:263 BOMIndented.php:253 BOMIndentedReverse.php:242 msgid "Part" msgstr "Část" -#: BOMExtendedQty.php:277 BOMExtendedQty.php:328 BOMExtendedQty.php:329 -#: BOMExtendedQty.php:330 BOMExtendedQty.php:331 BOMIndented.php:308 -#: BOMIndentedReverse.php:293 BOMInquiry.php:173 BOMs.php:516 BOMs.php:677 -#: ContractBOM.php:241 ContractBOM.php:344 ContractCosting.php:74 -#: ContractCosting.php:80 ContractCosting.php:131 ContractOtherReqts.php:95 -#: Contracts.php:932 Contracts.php:956 CounterSales.php:701 +#: BOMExtendedQty.php:265 BOMExtendedQty.php:325 BOMExtendedQty.php:326 +#: BOMExtendedQty.php:327 BOMExtendedQty.php:328 BOMIndented.php:309 +#: BOMIndentedReverse.php:288 BOMInquiry.php:178 BOMs.php:522 BOMs.php:685 +#: ContractBOM.php:239 ContractBOM.php:347 ContractCosting.php:73 +#: ContractCosting.php:79 ContractCosting.php:130 ContractOtherReqts.php:92 +#: Contracts.php:938 Contracts.php:963 CounterSales.php:701 #: CounterSales.php:1994 CounterSales.php:2174 CounterSales.php:2302 #: Credit_Invoice.php:273 DeliveryDetails.php:822 DeliveryDetails.php:887 #: GoodsReceived.php:88 GoodsReceived.php:92 GoodsReceived.php:95 #: InventoryPlanningPrefSupplier.php:83 InventoryQuantities.php:223 #: MRPDemands.php:291 MRPDemands.php:381 MRPPlannedPurchaseOrders.php:326 -#: MRPPlannedWorkOrders.php:259 MRPPlannedWorkOrders.php:387 MRPReport.php:413 +#: MRPPlannedWorkOrders.php:258 MRPPlannedWorkOrders.php:379 MRPReport.php:413 #: MRPReport.php:419 MRPReschedules.php:179 OffersReceived.php:95 #: OffersReceived.php:197 OffersReceived.php:244 OrderDetails.php:155 #: PDFOrdersInvoiced.php:384 POReport.php:743 POReport.php:1428 @@ -1807,7 +1850,7 @@ #: SelectOrderItems.php:1634 SelectOrderItems.php:1758 ShipmentCosting.php:144 #: ShipmentCosting.php:145 Shipments.php:385 Shipments.php:387 #: Shipments.php:388 Shipments.php:463 Shipments.php:465 SpecialOrder.php:542 -#: StockCounts.php:98 StockLocMovements.php:85 StockLocTransfer.php:179 +#: StockCounts.php:98 StockLocMovements.php:85 StockLocTransfer.php:185 #: StockMovements.php:95 StockStatus.php:312 StockUsageGraph.php:12 #: SuppCreditGRNs.php:227 SuppCreditGRNs.php:228 SupplierCredit.php:313 #: SupplierTenders.php:265 SupplierTenders.php:493 WOSerialNos.php:249 @@ -1833,44 +1876,44 @@ msgid "Quantity" msgstr "Množství" -#: BOMExtendedQty.php:278 +#:... [truncated message content] |
From: <dai...@us...> - 2011-06-18 05:13:51
|
Revision: 4599 http://web-erp.svn.sourceforge.net/web-erp/?rev=4599&view=rev Author: daintree Date: 2011-06-18 05:13:36 +0000 (Sat, 18 Jun 2011) Log Message: ----------- doh Modified Paths: -------------- trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.mo trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po trunk/locale/de_DE.utf8/LC_MESSAGES/messages.mo trunk/locale/de_DE.utf8/LC_MESSAGES/messages.po trunk/locale/el_GR.utf8/LC_MESSAGES/messages.mo trunk/locale/el_GR.utf8/LC_MESSAGES/messages.po trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot trunk/locale/en_US.utf8/LC_MESSAGES/messages.mo trunk/locale/en_US.utf8/LC_MESSAGES/messages.po trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po trunk/locale/et_EE.utf8/LC_MESSAGES/messages.mo trunk/locale/et_EE.utf8/LC_MESSAGES/messages.po trunk/locale/fa_IR.utf8/LC_MESSAGES/messages.mo trunk/locale/fa_IR.utf8/LC_MESSAGES/messages.po trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.mo trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.mo trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.po trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.mo trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.po trunk/locale/hu_HU.utf8/LC_MESSAGES/messages.mo trunk/locale/hu_HU.utf8/LC_MESSAGES/messages.po trunk/locale/id_ID.utf8/LC_MESSAGES/messages.mo trunk/locale/id_ID.utf8/LC_MESSAGES/messages.po trunk/locale/it_IT.utf8/LC_MESSAGES/messages.mo trunk/locale/it_IT.utf8/LC_MESSAGES/messages.po trunk/locale/ja_JP.utf8/LC_MESSAGES/messages.mo trunk/locale/ja_JP.utf8/LC_MESSAGES/messages.po trunk/locale/lv_LV.utf8/LC_MESSAGES/messages.mo trunk/locale/lv_LV.utf8/LC_MESSAGES/messages.po trunk/locale/nl_NL.utf8/LC_MESSAGES/messages.mo trunk/locale/nl_NL.utf8/LC_MESSAGES/messages.po trunk/locale/pl_PL.utf8/LC_MESSAGES/messages.mo trunk/locale/pl_PL.utf8/LC_MESSAGES/messages.po trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.mo trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.po trunk/locale/pt_PT.utf8/LC_MESSAGES/messages.mo trunk/locale/pt_PT.utf8/LC_MESSAGES/messages.po trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.mo trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.po trunk/locale/ru_RU.utf8/LC_MESSAGES/messages.mo trunk/locale/ru_RU.utf8/LC_MESSAGES/messages.po trunk/locale/sq_AL.utf8/LC_MESSAGES/messages.mo trunk/locale/sq_AL.utf8/LC_MESSAGES/messages.po trunk/locale/sv_SE.utf8/LC_MESSAGES/messages.mo trunk/locale/sv_SE.utf8/LC_MESSAGES/messages.po trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.mo trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.po trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.mo trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.po trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.mo trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.po trunk/sql/mysql/weberp-demo.sql trunk/sql/mysql/weberp-new.sql Added Paths: ----------- trunk/sql/mysql/upgrade4.04.4-4.04.5.sql Modified: trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.mo =================================================================== (Binary files differ) Modified: trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po =================================================================== --- trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po 2011-06-18 04:55:08 UTC (rev 4598) +++ trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po 2011-06-18 05:13:36 UTC (rev 4599) @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: webERP 3.08\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-06-12 21:39+1200\n" +"POT-Creation-Date: 2011-06-18 17:04+1200\n" "PO-Revision-Date: 2011-02-07 15:33+0000\n" "Last-Translator: Tim Schofield <Unknown>\n" "Language-Team: Czech <cs...@li...>\n" @@ -130,11 +130,11 @@ "pomocí této skupině" #: AccountGroups.php:180 AccountGroups.php:190 AccountSections.php:137 -#: Areas.php:116 Areas.php:125 BankAccounts.php:157 CreditStatus.php:125 -#: Currencies.php:143 Currencies.php:151 Currencies.php:158 +#: Areas.php:116 Areas.php:125 BankAccounts.php:157 CreditStatus.php:123 +#: Currencies.php:164 Currencies.php:172 Currencies.php:180 #: CustomerBranches.php:286 CustomerBranches.php:296 CustomerBranches.php:306 -#: CustomerBranches.php:316 Customers.php:311 Customers.php:320 -#: Customers.php:328 Customers.php:336 CustomerTypes.php:147 +#: CustomerBranches.php:316 Customers.php:312 Customers.php:321 +#: Customers.php:329 Customers.php:337 CustomerTypes.php:147 #: CustomerTypes.php:157 Factors.php:134 FixedAssetCategories.php:130 #: GLAccounts.php:80 GLAccounts.php:94 Locations.php:244 Locations.php:252 #: Locations.php:261 Locations.php:269 Locations.php:277 Locations.php:285 @@ -193,12 +193,12 @@ msgstr "Nemohu získat účetní skupiny, protože" #: AccountGroups.php:224 AccountSections.php:175 AddCustomerContacts.php:25 -#: AddCustomerContacts.php:28 AddCustomerNotes.php:97 -#: AddCustomerTypeNotes.php:94 AgedDebtors.php:454 AgedSuppliers.php:277 +#: AddCustomerContacts.php:28 AddCustomerNotes.php:101 +#: AddCustomerTypeNotes.php:95 AgedDebtors.php:454 AgedSuppliers.php:268 #: Areas.php:144 AuditTrail.php:11 BankReconciliation.php:13 -#: BOMExtendedQty.php:272 BOMIndented.php:247 BOMIndentedReverse.php:246 -#: BOMInquiry.php:165 BOMListing.php:112 BOMs.php:208 BOMs.php:790 -#: COGSGLPostings.php:18 CompanyPreferences.php:155 CounterSales.php:1983 +#: BOMExtendedQty.php:259 BOMIndented.php:246 BOMIndentedReverse.php:236 +#: BOMInquiry.php:171 BOMListing.php:112 BOMs.php:208 BOMs.php:798 +#: COGSGLPostings.php:18 CompanyPreferences.php:153 CounterSales.php:1983 #: CounterSales.php:2107 Credit_Invoice.php:255 CreditStatus.php:20 #: Currencies.php:28 CustEDISetup.php:17 DailyBankTransactions.php:10 #: DebtorsAtPeriodEnd.php:124 DiscountCategories.php:10 @@ -218,7 +218,7 @@ #: RecurringSalesOrders.php:310 SalesAnalReptCols.php:51 SalesAnalRepts.php:11 #: SalesCategories.php:11 SalesGLPostings.php:17 SalesGraph.php:34 #: SalesPeople.php:20 SalesTypes.php:20 SelectAsset.php:45 -#: SelectCompletedOrder.php:11 SelectContract.php:81 SelectCreditItems.php:202 +#: SelectCompletedOrder.php:11 SelectContract.php:78 SelectCreditItems.php:202 #: SelectCreditItems.php:270 SelectCustomer.php:323 SelectGLAccount.php:19 #: SelectGLAccount.php:79 SelectOrderItems.php:617 SelectOrderItems.php:1443 #: SelectOrderItems.php:1563 SelectProduct.php:485 SelectSalesOrder.php:454 @@ -231,7 +231,7 @@ #: WhereUsedInquiry.php:18 WorkCentres.php:110 WorkCentres.php:157 #: WorkOrderCosting.php:12 WorkOrderEntry.php:10 WorkOrderIssue.php:20 #: WorkOrderReceive.php:13 WorkOrderStatus.php:41 WWW_Access.php:11 -#: WWW_Users.php:31 Z_BottomUpCosts.php:51 +#: WWW_Users.php:32 Z_BottomUpCosts.php:51 msgid "Search" msgstr "Vyhledávání" @@ -258,19 +258,18 @@ msgstr "Rodičovská skupina" #: AccountGroups.php:248 AccountGroups.php:251 AccountGroups.php:381 -#: AccountGroups.php:383 BankAccounts.php:212 BankAccounts.php:356 -#: BankAccounts.php:358 BankAccounts.php:362 BOMs.php:122 BOMs.php:709 -#: BOMs.php:711 CompanyPreferences.php:439 CompanyPreferences.php:441 -#: CompanyPreferences.php:452 CompanyPreferences.php:454 -#: CompanyPreferences.php:465 CompanyPreferences.php:467 -#: ContractCosting.php:174 CustLoginSetup.php:578 CustLoginSetup.php:580 -#: CustomerBranches.php:410 Customers.php:595 Customers.php:863 -#: Customers.php:871 Customers.php:874 DeliveryDetails.php:1064 -#: DeliveryDetails.php:1104 DeliveryDetails.php:1107 GLTransInquiry.php:69 -#: MRPCalendar.php:220 MRP.php:527 MRP.php:531 MRP.php:535 MRP.php:539 -#: PaymentMethods.php:199 PaymentMethods.php:200 PaymentMethods.php:201 -#: PaymentMethods.php:264 PaymentMethods.php:270 PaymentMethods.php:276 -#: PcAuthorizeExpenses.php:239 PDFChequeListing.php:62 +#: AccountGroups.php:383 BankAccounts.php:211 BankAccounts.php:366 +#: BankAccounts.php:370 BankAccounts.php:374 BOMs.php:122 BOMs.php:717 +#: BOMs.php:719 CompanyPreferences.php:443 CompanyPreferences.php:445 +#: CompanyPreferences.php:456 CompanyPreferences.php:458 +#: CompanyPreferences.php:469 CompanyPreferences.php:471 +#: ContractCosting.php:176 CustomerBranches.php:410 Customers.php:597 +#: Customers.php:865 Customers.php:873 Customers.php:876 +#: DeliveryDetails.php:1064 DeliveryDetails.php:1104 DeliveryDetails.php:1107 +#: GLTransInquiry.php:69 MRPCalendar.php:220 MRP.php:527 MRP.php:531 +#: MRP.php:535 MRP.php:539 PaymentMethods.php:199 PaymentMethods.php:200 +#: PaymentMethods.php:201 PaymentMethods.php:264 PaymentMethods.php:270 +#: PaymentMethods.php:276 PcAuthorizeExpenses.php:239 PDFChequeListing.php:62 #: PDFDeliveryDifferences.php:64 PDFDIFOT.php:67 #: PO_AuthorisationLevels.php:132 PO_AuthorisationLevels.php:137 #: PO_Header.php:761 PO_PDFPurchOrder.php:360 PO_PDFPurchOrder.php:363 @@ -290,24 +289,23 @@ #: SystemParameters.php:893 SystemParameters.php:895 SystemParameters.php:905 #: SystemParameters.php:907 SystemParameters.php:961 SystemParameters.php:973 #: SystemParameters.php:975 TaxGroups.php:293 TaxGroups.php:296 -#: TaxGroups.php:345 WWW_Users.php:605 WWW_Users.php:607 +#: TaxGroups.php:345 WWW_Users.php:592 WWW_Users.php:594 msgid "Yes" msgstr "Ano" #: AccountGroups.php:254 AccountGroups.php:386 AccountGroups.php:388 -#: BankAccounts.php:210 BankAccounts.php:356 BankAccounts.php:358 -#: BankAccounts.php:363 BOMs.php:124 BOMs.php:708 BOMs.php:712 -#: CompanyPreferences.php:438 CompanyPreferences.php:442 -#: CompanyPreferences.php:451 CompanyPreferences.php:455 -#: CompanyPreferences.php:464 CompanyPreferences.php:468 -#: ContractCosting.php:172 CustLoginSetup.php:577 CustLoginSetup.php:581 -#: CustomerBranches.php:410 Customers.php:594 Customers.php:859 -#: Customers.php:870 Customers.php:873 DeliveryDetails.php:1065 -#: DeliveryDetails.php:1105 DeliveryDetails.php:1108 GLTransInquiry.php:123 -#: MRPCalendar.php:222 MRP.php:525 MRP.php:529 MRP.php:533 MRP.php:537 -#: PaymentMethods.php:199 PaymentMethods.php:200 PaymentMethods.php:201 -#: PaymentMethods.php:265 PaymentMethods.php:271 PaymentMethods.php:277 -#: PcAuthorizeExpenses.php:237 PDFChequeListing.php:61 +#: BankAccounts.php:209 BankAccounts.php:367 BankAccounts.php:369 +#: BankAccounts.php:375 BOMs.php:124 BOMs.php:716 BOMs.php:720 +#: CompanyPreferences.php:442 CompanyPreferences.php:446 +#: CompanyPreferences.php:455 CompanyPreferences.php:459 +#: CompanyPreferences.php:468 CompanyPreferences.php:472 +#: ContractCosting.php:174 CustomerBranches.php:410 Customers.php:596 +#: Customers.php:861 Customers.php:872 Customers.php:875 +#: DeliveryDetails.php:1065 DeliveryDetails.php:1105 DeliveryDetails.php:1108 +#: GLTransInquiry.php:123 MRPCalendar.php:222 MRP.php:525 MRP.php:529 +#: MRP.php:533 MRP.php:537 PaymentMethods.php:199 PaymentMethods.php:200 +#: PaymentMethods.php:201 PaymentMethods.php:265 PaymentMethods.php:271 +#: PaymentMethods.php:277 PcAuthorizeExpenses.php:237 PDFChequeListing.php:61 #: PDFDeliveryDifferences.php:63 PDFDIFOT.php:66 #: PO_AuthorisationLevels.php:134 PO_AuthorisationLevels.php:139 #: PO_Header.php:760 PO_PDFPurchOrder.php:361 PO_PDFPurchOrder.php:364 @@ -327,17 +325,17 @@ #: SystemParameters.php:892 SystemParameters.php:896 SystemParameters.php:904 #: SystemParameters.php:908 SystemParameters.php:962 SystemParameters.php:972 #: SystemParameters.php:976 TaxGroups.php:294 TaxGroups.php:297 -#: TaxGroups.php:347 WWW_Users.php:604 WWW_Users.php:608 +#: TaxGroups.php:347 WWW_Users.php:591 WWW_Users.php:595 #: includes/PDFLowGPPageHeader.inc:44 includes/PDFTaxPageHeader.inc:35 msgid "No" msgstr "Ne" -#: AccountGroups.php:263 AccountSections.php:195 AddCustomerContacts.php:131 -#: AddCustomerNotes.php:125 AddCustomerTypeNotes.php:123 Areas.php:164 -#: BankAccounts.php:221 BOMs.php:144 COGSGLPostings.php:108 -#: COGSGLPostings.php:211 CreditStatus.php:174 Currencies.php:238 -#: CustLoginSetup.php:307 CustomerBranches.php:414 Customers.php:917 -#: Customers.php:949 CustomerTypes.php:202 EDIMessageFormat.php:150 +#: AccountGroups.php:263 AccountSections.php:196 AddCustomerContacts.php:149 +#: AddCustomerNotes.php:132 AddCustomerTypeNotes.php:123 Areas.php:164 +#: BankAccounts.php:220 BOMs.php:144 COGSGLPostings.php:107 +#: COGSGLPostings.php:204 CreditStatus.php:172 Currencies.php:269 +#: CustLoginSetup.php:219 CustomerBranches.php:414 Customers.php:940 +#: Customers.php:973 CustomerTypes.php:202 EDIMessageFormat.php:150 #: Factors.php:299 FixedAssetCategories.php:180 FixedAssetLocations.php:102 #: FreightCosts.php:240 GeocodeSetup.php:170 GLAccounts.php:308 GLTags.php:82 #: Labels.php:414 Locations.php:377 MRPDemands.php:303 MRPDemandTypes.php:120 @@ -346,26 +344,26 @@ #: PcTypeTabs.php:172 PO_AuthorisationLevels.php:149 Prices_Customer.php:280 #: Prices.php:246 PurchData.php:210 SalesCategories.php:256 #: SalesGLPostings.php:132 SalesGLPostings.php:245 SalesPeople.php:219 -#: SalesTypes.php:216 SecurityTokens.php:110 SelectCustomer.php:613 -#: SelectCustomer.php:630 SelectCustomer.php:654 SelectCustomer.php:671 -#: SelectCustomer.php:694 SelectCustomer.php:710 Shippers.php:144 +#: SalesTypes.php:216 SecurityTokens.php:110 SelectCustomer.php:614 +#: SelectCustomer.php:632 SelectCustomer.php:656 SelectCustomer.php:673 +#: SelectCustomer.php:696 SelectCustomer.php:712 Shippers.php:144 #: StockCategories.php:240 SupplierContacts.php:157 SupplierTypes.php:189 #: SuppLoginSetup.php:271 SuppTransGLAnalysis.php:118 TaxAuthorities.php:172 #: TaxCategories.php:182 TaxGroups.php:178 TaxProvinces.php:176 #: UnitsOfMeasure.php:188 WorkCentres.php:137 WWW_Access.php:123 -#: WWW_Users.php:305 includes/InputSerialItems.php:88 +#: WWW_Users.php:306 includes/InputSerialItems.php:88 #: includes/OutputSerialItems.php:21 #, php-format msgid "Edit" msgstr "Upravit" -#: AccountGroups.php:264 AccountSections.php:199 AddCustomerContacts.php:132 -#: AddCustomerNotes.php:126 AddCustomerTypeNotes.php:124 Areas.php:165 -#: BankAccounts.php:222 BOMs.php:146 COGSGLPostings.php:109 -#: COGSGLPostings.php:212 ContractBOM.php:270 ContractOtherReqts.php:121 -#: CounterSales.php:781 Credit_Invoice.php:384 CreditStatus.php:175 -#: Currencies.php:241 CustLoginSetup.php:308 CustomerReceipt.php:863 -#: Customers.php:950 CustomerTypes.php:203 DiscountCategories.php:215 +#: AccountGroups.php:264 AccountSections.php:200 AddCustomerContacts.php:150 +#: AddCustomerNotes.php:133 AddCustomerTypeNotes.php:124 Areas.php:165 +#: BankAccounts.php:221 BOMs.php:146 COGSGLPostings.php:108 +#: COGSGLPostings.php:205 ContractBOM.php:268 ContractOtherReqts.php:117 +#: CounterSales.php:781 Credit_Invoice.php:384 CreditStatus.php:173 +#: Currencies.php:272 CustLoginSetup.php:220 CustomerReceipt.php:863 +#: Customers.php:974 CustomerTypes.php:203 DiscountCategories.php:215 #: DiscountMatrix.php:173 EDIMessageFormat.php:151 #: FixedAssetCategories.php:181 FixedAssetJournal.php:393 FreightCosts.php:241 #: GeocodeSetup.php:171 GLAccounts.php:309 GLJournal.php:382 GLTags.php:83 @@ -377,9 +375,9 @@ #: Prices.php:247 PurchData.php:211 SalesAnalReptCols.php:294 #: SalesAnalRepts.php:302 SalesCategories.php:257 SalesGLPostings.php:133 #: SalesGLPostings.php:246 SalesPeople.php:220 SalesTypes.php:217 -#: SecurityTokens.php:111 SelectCreditItems.php:745 SelectCustomer.php:614 -#: SelectCustomer.php:631 SelectCustomer.php:655 SelectCustomer.php:672 -#: SelectCustomer.php:695 SelectCustomer.php:711 SelectOrderItems.php:1370 +#: SecurityTokens.php:111 SelectCreditItems.php:745 SelectCustomer.php:615 +#: SelectCustomer.php:633 SelectCustomer.php:657 SelectCustomer.php:674 +#: SelectCustomer.php:697 SelectCustomer.php:713 SelectOrderItems.php:1370 #: Shipments.php:423 Shippers.php:145 SpecialOrder.php:581 #: StockCategories.php:241 StockCategories.php:535 SuppContractChgs.php:91 #: SuppCreditGRNs.php:92 SuppFixedAssetChgs.php:84 SuppInvGRNs.php:132 @@ -387,7 +385,7 @@ #: SuppShiptChgs.php:89 SuppTransGLAnalysis.php:119 TaxAuthorities.php:173 #: TaxCategories.php:183 TaxGroups.php:179 TaxProvinces.php:177 #: UnitsOfMeasure.php:189 WorkCentres.php:138 WOSerialNos.php:303 -#: WWW_Access.php:124 WWW_Users.php:306 includes/InputSerialItemsKeyed.php:59 +#: WWW_Access.php:124 WWW_Users.php:307 includes/InputSerialItemsKeyed.php:59 #: includes/OutputSerialItems.php:98 #, php-format msgid "Delete" @@ -430,10 +428,10 @@ msgid "Section In Accounts" msgstr "Sekce v účtech" -#: AccountGroups.php:398 AccountSections.php:263 AddCustomerContacts.php:208 -#: AddCustomerNotes.php:201 AddCustomerTypeNotes.php:192 Areas.php:220 -#: BankAccounts.php:369 BOMs.php:722 COGSGLPostings.php:349 -#: CreditStatus.php:246 Currencies.php:345 CustLoginSetup.php:599 +#: AccountGroups.php:398 AccountSections.php:264 AddCustomerContacts.php:244 +#: AddCustomerNotes.php:211 AddCustomerTypeNotes.php:191 Areas.php:220 +#: BankAccounts.php:381 BOMs.php:730 COGSGLPostings.php:342 +#: CreditStatus.php:250 Currencies.php:393 CustLoginSetup.php:439 #: DiscountMatrix.php:136 EDIMessageFormat.php:247 #: FixedAssetCategories.php:322 FixedAssetLocations.php:148 #: FreightCosts.php:339 GeocodeSetup.php:267 GLAccounts.php:258 @@ -444,7 +442,7 @@ #: SalesPeople.php:329 Shippers.php:196 StockCategories.php:557 #: SupplierContacts.php:258 SuppLoginSetup.php:529 TaxAuthorities.php:312 #: TaxCategories.php:233 TaxProvinces.php:227 UnitsOfMeasure.php:240 -#: WorkCentres.php:261 WWW_Users.php:638 +#: WorkCentres.php:261 WWW_Users.php:625 msgid "Enter Information" msgstr "Vložit informace" @@ -489,42 +487,44 @@ msgid "Could not get account group sections because" msgstr "Nelze získat body účet skupiny, protože" -#: AccountSections.php:179 AccountSections.php:237 AccountSections.php:255 +#: AccountSections.php:180 AccountSections.php:238 AccountSections.php:256 msgid "Section Number" msgstr "Číslo sekce" -#: AccountSections.php:180 AccountSections.php:259 +#: AccountSections.php:181 AccountSections.php:260 msgid "Section Description" msgstr "Popis sekce" -#: AccountSections.php:197 +#: AccountSections.php:198 msgid "Restricted" msgstr "Omezeno" -#: AccountSections.php:208 +#: AccountSections.php:209 msgid "Review Account Sections" msgstr "Přezkoumání účtu Sekce" -#: AccountSections.php:226 +#: AccountSections.php:227 msgid "Could not retrieve the requested section please try again." msgstr "Nepodařilo se získat požadovanou sekci prosím zkuste to znovu." -#: AddCustomerContacts.php:6 AddCustomerContacts.php:59 SelectCustomer.php:607 -#: SelectCustomer.php:637 +#: AddCustomerContacts.php:6 AddCustomerContacts.php:61 SelectCustomer.php:607 +#: SelectCustomer.php:639 msgid "Customer Contacts" msgstr "Zákazník Kontakty" -#: AddCustomerContacts.php:20 CustEDISetup.php:9 CustLoginSetup.php:22 +#: AddCustomerContacts.php:20 CustEDISetup.php:9 CustLoginSetup.php:11 #: Z_CheckDebtorsControl.php:20 msgid "Back to Customers" msgstr "Zpět k zákazníkům" #: AddCustomerContacts.php:26 -msgid "Contacts for Customer: <b>" +#, fuzzy +msgid "Contacts for Customer:" msgstr "Kontakt pro zákazníky:" #: AddCustomerContacts.php:29 -msgid "Edit contact for <b>" +#, fuzzy +msgid "Edit contact for" msgstr "Upravit kontakt" #: AddCustomerContacts.php:41 @@ -542,8 +542,15 @@ msgid "The contact name may not be empty" msgstr "Jméno kontaktu nesmí být prázdný" -#: AddCustomerContacts.php:59 AddCustomerNotes.php:49 -#: AddCustomerTypeNotes.php:49 Areas.php:73 CustomerTypes.php:69 +#: AddCustomerContacts.php:50 +#, fuzzy +msgid "The contact email address is not a valid email address" +msgstr "" +"E-mailová adresa se nezdá být platnou e-mailovou adresu. Transakce nebyla e-" +"mailem" + +#: AddCustomerContacts.php:61 AddCustomerNotes.php:50 +#: AddCustomerTypeNotes.php:48 Areas.php:73 CustomerTypes.php:69 #: DeliveryDetails.php:771 Factors.php:105 FixedAssetItems.php:236 #: PcAssignCashToTab.php:88 PcClaimExpensesFromTab.php:79 PcExpenses.php:93 #: PcTabs.php:102 PcTypeTabs.php:60 PO_Items.php:356 SalesAnalReptCols.php:129 @@ -552,56 +559,77 @@ msgid "has been updated" msgstr "byla aktualizována" -#: AddCustomerContacts.php:70 +#: AddCustomerContacts.php:76 msgid "The contact record has been added" msgstr "Kontakt záznam byl přidán" -#: AddCustomerContacts.php:98 +#: AddCustomerContacts.php:105 msgid "The contact record has been deleted" msgstr "Kontakt záznam byl odstraněn" -#: AddCustomerContacts.php:112 CompanyPreferences.php:224 -#: CustomerBranches.php:368 Customers.php:907 Customers.php:913 -#: Customers.php:978 SalesPeople.php:191 SelectCustomer.php:609 -#: StockDispatch.php:185 StockDispatch.php:197 SupplierContacts.php:145 -#: SupplierCredit.php:441 SupplierInvoice.php:408 SuppTransGLAnalysis.php:103 +#: AddCustomerContacts.php:128 CompanyPreferences.php:222 +#: CustomerBranches.php:368 Customers.php:928 Customers.php:935 +#: SalesPeople.php:191 SelectCustomer.php:609 StockDispatch.php:185 +#: StockDispatch.php:197 SupplierContacts.php:145 SupplierCredit.php:441 +#: SupplierInvoice.php:408 SuppTransGLAnalysis.php:103 #: includes/InputSerialItemsFile.php:84 includes/InputSerialItemsFile.php:124 #: includes/PDFTaxPageHeader.inc:37 msgid "Name" msgstr "Název" -#: AddCustomerContacts.php:113 AddCustomerContacts.php:190 Customers.php:908 -#: Customers.php:914 Customers.php:980 SelectCustomer.php:610 -#: WWW_Access.php:107 WWW_Access.php:168 +#: AddCustomerContacts.php:129 AddCustomerContacts.php:220 Customers.php:929 +#: Customers.php:936 SelectCustomer.php:610 WWW_Access.php:107 +#: WWW_Access.php:168 msgid "Role" msgstr "Roli" -#: AddCustomerContacts.php:114 Customers.php:982 +#: AddCustomerContacts.php:130 msgid "Phone no" msgstr "Telefonní číslo" -#: AddCustomerContacts.php:115 AddCustomerContacts.php:202 Customers.php:910 -#: Customers.php:916 Customers.php:984 PcAssignCashToTab.php:220 -#: PcAssignCashToTab.php:346 PcAuthorizeExpenses.php:91 -#: PcClaimExpensesFromTab.php:214 PcClaimExpensesFromTab.php:372 -#: PcReportTab.php:327 SelectCustomer.php:612 SystemParameters.php:319 -#: WOSerialNos.php:280 WOSerialNos.php:282 +#: AddCustomerContacts.php:131 AddCustomerContacts.php:232 +#: CustLoginSetup.php:193 CustomerBranches.php:374 CustomerBranches.php:716 +#: CustomerInquiry.php:249 Customers.php:931 Customers.php:938 +#: EmailCustTrans.php:15 EmailCustTrans.php:63 Factors.php:226 Factors.php:263 +#: Locations.php:533 OrderDetails.php:105 PDFRemittanceAdvice.php:251 +#: PO_PDFPurchOrder.php:347 PO_PDFPurchOrder.php:350 PrintCustTrans.php:664 +#: PrintCustTrans.php:884 PrintCustTrans.php:931 +#: PrintCustTransPortrait.php:715 PrintCustTransPortrait.php:935 +#: PrintCustTransPortrait.php:979 SelectCustomer.php:612 +#: SupplierContacts.php:149 SupplierContacts.php:253 SuppLoginSetup.php:237 +#: UserSettings.php:180 WWW_Users.php:262 includes/PDFPickingListHeader.inc:25 +#: includes/PDFStatementPageHeader.inc:67 includes/PDFTransPageHeader.inc:82 +#: includes/PDFTransPageHeaderPortrait.inc:109 +#: includes/PO_PDFOrderPageHeader.inc:29 +msgid "Email" +msgstr "E-mail" + +#: AddCustomerContacts.php:132 AddCustomerContacts.php:238 Customers.php:932 +#: Customers.php:939 PcAssignCashToTab.php:220 PcAssignCashToTab.php:346 +#: PcAuthorizeExpenses.php:91 PcClaimExpensesFromTab.php:214 +#: PcClaimExpensesFromTab.php:372 PcReportTab.php:327 SelectCustomer.php:613 +#: SystemParameters.php:319 WOSerialNos.php:280 WOSerialNos.php:282 msgid "Notes" msgstr "Bere na vědomí" -#: AddCustomerContacts.php:149 +#: AddCustomerContacts.php:150 SupplierContacts.php:158 +#, php-format +msgid "Are you sure you wish to delete this contact?" +msgstr "Jste si jisti, že chcete smazat tento kontakt?" + +#: AddCustomerContacts.php:169 msgid "Review all contacts for this Customer" msgstr "Přezkoumání všech kontaktů pro tohoto zákazníka" -#: AddCustomerContacts.php:179 +#: AddCustomerContacts.php:206 msgid "Contact Code" msgstr "Kontakt kód" -#: AddCustomerContacts.php:184 Factors.php:220 SupplierContacts.php:225 +#: AddCustomerContacts.php:214 Factors.php:220 SupplierContacts.php:225 msgid "Contact Name" msgstr "Jméno kontaktní osoby" -#: AddCustomerContacts.php:196 Contracts.php:777 PDFRemittanceAdvice.php:247 +#: AddCustomerContacts.php:226 Contracts.php:777 PDFRemittanceAdvice.php:247 #: PO_Header.php:965 PO_Header.php:1035 SelectCreditItems.php:223 #: SelectCustomer.php:463 SelectOrderItems.php:646 #: includes/PDFStatementPageHeader.inc:63 includes/PDFTransPageHeader.inc:81 @@ -609,45 +637,45 @@ msgid "Phone" msgstr "Telefon" -#: AddCustomerNotes.php:6 AddCustomerNotes.php:49 SelectCustomer.php:647 -#: SelectCustomer.php:678 +#: AddCustomerNotes.php:6 AddCustomerNotes.php:50 SelectCustomer.php:649 +#: SelectCustomer.php:680 msgid "Customer Notes" msgstr "Zákazník bere na vědomí" -#: AddCustomerNotes.php:20 AddCustomerTypeNotes.php:20 +#: AddCustomerNotes.php:21 AddCustomerTypeNotes.php:19 msgid "Back to Select Customer" msgstr "Zpět na výběr zákazníka" -#: AddCustomerNotes.php:31 +#: AddCustomerNotes.php:32 msgid "The contact priority must be an integer." msgstr "Kontakt priorita musí být celé číslo." -#: AddCustomerNotes.php:34 AddCustomerTypeNotes.php:34 +#: AddCustomerNotes.php:35 AddCustomerTypeNotes.php:33 msgid "The contact's notes must be two hundred characters or less long" msgstr "Kontaktu poznámky musí být dvě stovky postav či méně dlouhou" -#: AddCustomerNotes.php:37 AddCustomerTypeNotes.php:37 +#: AddCustomerNotes.php:38 AddCustomerTypeNotes.php:36 msgid "The contact's notes may not be empty" msgstr "Kontaktu poznámky nesmí být prázdný" -#: AddCustomerNotes.php:60 +#: AddCustomerNotes.php:63 msgid "The contact notes record has been added" msgstr "Kontakt poznámky záznam byl přidán" -#: AddCustomerNotes.php:87 +#: AddCustomerNotes.php:91 msgid "The contact note record has been deleted" msgstr "Kontakt na vědomí záznam byl odstraněn" -#: AddCustomerNotes.php:98 +#: AddCustomerNotes.php:102 msgid "Notes for Customer" msgstr "Poznámky pro zákazníka" -#: AddCustomerNotes.php:106 AddCustomerNotes.php:189 -#: AddCustomerTypeNotes.php:104 AddCustomerTypeNotes.php:186 -#: BankMatching.php:228 BankReconciliation.php:194 BankReconciliation.php:266 -#: ContractCosting.php:149 CustomerAllocations.php:331 +#: AddCustomerNotes.php:113 AddCustomerNotes.php:199 +#: AddCustomerTypeNotes.php:104 AddCustomerTypeNotes.php:185 +#: BankMatching.php:231 BankReconciliation.php:198 BankReconciliation.php:270 +#: ContractCosting.php:151 CustomerAllocations.php:331 #: CustomerAllocations.php:357 CustomerInquiry.php:192 -#: CustomerTransInquiry.php:87 GLAccountInquiry.php:154 GLAccountReportphp:157 +#: CustomerTransInquiry.php:90 GLAccountInquiry.php:154 GLAccountReportphp:157 #: GLAccountReport.php:369 GLTransInquiry.php:41 MRPCalendar.php:215 #: PaymentAllocations.php:77 PcAssignCashToTab.php:216 #: PcAuthorizeExpenses.php:87 PDFRemittanceAdvice.php:308 @@ -665,10 +693,10 @@ msgid "Date" msgstr "Datum" -#: AddCustomerNotes.php:107 AddCustomerTypeNotes.php:105 PcReportTab.php:173 -#: Stocks.php:882 UpgradeDatabase.php:169 UpgradeDatabase.php:172 -#: UpgradeDatabase.php:175 UpgradeDatabase.php:178 UpgradeDatabase.php:181 -#: UpgradeDatabase.php:184 UpgradeDatabase.php:187 UpgradeDatabase.php:190 +#: AddCustomerNotes.php:114 AddCustomerTypeNotes.php:105 PcReportTab.php:173 +#: Stocks.php:882 UpgradeDatabase.php:171 UpgradeDatabase.php:174 +#: UpgradeDatabase.php:177 UpgradeDatabase.php:180 UpgradeDatabase.php:183 +#: UpgradeDatabase.php:186 UpgradeDatabase.php:189 UpgradeDatabase.php:192 #: Z_Upgrade_3.10-3.11.php:62 Z_Upgrade_3.10-3.11.php:66 #: Z_Upgrade_3.10-3.11.php:70 Z_Upgrade_3.10-3.11.php:74 #: Z_Upgrade_3.10-3.11.php:78 Z_Upgrade_3.11-4.00.php:62 @@ -677,48 +705,48 @@ msgid "Note" msgstr "Poznámka:" -#: AddCustomerNotes.php:108 AddCustomerNotes.php:183 +#: AddCustomerNotes.php:115 AddCustomerNotes.php:193 msgid "WWW" msgstr "WWW" -#: AddCustomerNotes.php:109 AddCustomerNotes.php:195 -#: AddCustomerTypeNotes.php:107 AddCustomerTypeNotes.php:189 +#: AddCustomerNotes.php:116 AddCustomerNotes.php:205 +#: AddCustomerTypeNotes.php:107 AddCustomerTypeNotes.php:188 msgid "Priority" msgstr "Prioritních" -#: AddCustomerNotes.php:143 +#: AddCustomerNotes.php:150 msgid "Review all notes for this Customer" msgstr "Zkontrolovat všechny poznámky pro tohoto zákazníka" -#: AddCustomerNotes.php:172 AddCustomerTypeNotes.php:171 +#: AddCustomerNotes.php:180 AddCustomerTypeNotes.php:170 msgid "Note ID" msgstr "Poznámka: ID" -#: AddCustomerNotes.php:177 +#: AddCustomerNotes.php:187 msgid "Contact Note" msgstr "Kontakt Poznámka:" -#: AddCustomerTypeNotes.php:6 SelectCustomer.php:687 +#: AddCustomerTypeNotes.php:5 SelectCustomer.php:689 msgid "Customer Type (Group) Notes" msgstr "Typ zákazníka (Group) Poznámky" -#: AddCustomerTypeNotes.php:31 +#: AddCustomerTypeNotes.php:30 msgid "The Contact priority must be an integer." msgstr "Prioritou Kontakt musí být celé číslo." -#: AddCustomerTypeNotes.php:49 SelectCustomer.php:717 +#: AddCustomerTypeNotes.php:48 SelectCustomer.php:719 msgid "Customer Group Notes" msgstr "Zákaznická skupina bere na vědomí" -#: AddCustomerTypeNotes.php:60 +#: AddCustomerTypeNotes.php:61 msgid "The contact group notes record has been added" msgstr "Kontaktní skupina bere na vědomí záznam byl přidán" -#: AddCustomerTypeNotes.php:84 +#: AddCustomerTypeNotes.php:85 msgid "The contact group note record has been deleted" msgstr "Kontaktní skupina na vědomí záznam byl odstraněn" -#: AddCustomerTypeNotes.php:95 +#: AddCustomerTypeNotes.php:96 msgid "Notes for Customer Type" msgstr "Poznámky pro zákazníka typu" @@ -726,15 +754,20 @@ msgid "href" msgstr "href" +#: AddCustomerTypeNotes.php:124 +#, fuzzy, php-format +msgid "Are you sure you wish to delete this customer type note?" +msgstr "Jste si jisti, že chcete smazat tento typ zákazníka?" + #: AddCustomerTypeNotes.php:141 msgid "Review all notes for this Customer Type" msgstr "Zkontrolovat všechny poznámky tohoto typu zákazníka" -#: AddCustomerTypeNotes.php:182 +#: AddCustomerTypeNotes.php:181 msgid "Contact Group Note" msgstr "Kontaktní skupina Poznámka:" -#: AddCustomerTypeNotes.php:184 +#: AddCustomerTypeNotes.php:183 msgid "Web site" msgstr "Webové stránky" @@ -751,8 +784,8 @@ msgstr "Ve věku od zákaznického účtu analýza" #: AgedDebtors.php:270 AgedDebtors.php:369 AgedDebtors.php:434 -#: AgedSuppliers.php:105 BOMExtendedQty.php:159 BOMIndented.php:150 -#: BOMIndentedReverse.php:151 BOMListing.php:44 BOMListing.php:55 +#: AgedSuppliers.php:107 BOMExtendedQty.php:149 BOMIndented.php:150 +#: BOMIndentedReverse.php:141 BOMListing.php:44 BOMListing.php:55 #: DebtorsAtPeriodEnd.php:56 DebtorsAtPeriodEnd.php:68 GLBalanceSheet.php:90 #: GLBalanceSheet.php:128 GLProfit_Loss.php:157 GLTagProfit_Loss.php:172 #: GLTrialBalance.php:151 InventoryPlanning.php:99 InventoryPlanning.php:174 @@ -780,9 +813,9 @@ msgstr "Zákazník podrobnosti se nepodařilo získat do SQL, protože" #: AgedDebtors.php:273 AgedDebtors.php:372 AgedDebtors.php:440 -#: AgedSuppliers.php:108 AgedSuppliers.php:190 BOMExtendedQty.php:162 -#: BOMExtendedQty.php:259 BOMIndented.php:153 BOMIndented.php:234 -#: BOMIndentedReverse.php:154 BOMIndentedReverse.php:232 BOMListing.php:47 +#: AgedSuppliers.php:110 AgedSuppliers.php:192 BOMExtendedQty.php:152 +#: BOMExtendedQty.php:246 BOMIndented.php:153 BOMIndented.php:234 +#: BOMIndentedReverse.php:145 BOMIndentedReverse.php:222 BOMListing.php:47 #: Credit_Invoice.php:184 DebtorsAtPeriodEnd.php:59 DebtorsAtPeriodEnd.php:71 #: FTP_RadioBeacon.php:187 GetStockImage.php:154 GLBalanceSheet.php:93 #: GLBalanceSheet.php:131 GLBalanceSheet.php:294 GLProfit_Loss.php:160 @@ -798,7 +831,7 @@ #: InventoryValuation.php:92 MailInventoryValuation.php:118 #: MailInventoryValuation.php:214 MRPPlannedPurchaseOrders.php:117 #: MRPPlannedPurchaseOrders.php:128 MRPPlannedWorkOrders.php:108 -#: MRPPlannedWorkOrders.php:119 MRPPlannedWorkOrders.php:316 MRPReport.php:39 +#: MRPPlannedWorkOrders.php:119 MRPPlannedWorkOrders.php:306 MRPReport.php:39 #: MRPReport.php:50 MRPReport.php:150 MRPReschedules.php:48 #: MRPReschedules.php:60 MRPShortages.php:158 MRPShortages.php:170 #: OutstandingGRNs.php:51 OutstandingGRNs.php:63 PDFCustomerList.php:233 @@ -834,7 +867,7 @@ msgid "The details of outstanding transactions for customer" msgstr "Podrobnosti o nesplacených transakcí pro zákazníka" -#: AgedDebtors.php:371 AgedSuppliers.php:189 GLAccountCSV.php:168 +#: AgedDebtors.php:371 AgedSuppliers.php:191 GLAccountCSV.php:168 #: GLAccountInquiry.php:145 GLAccountReportphp:149 GLAccountReport.php:93 #: PO_Items.php:416 PO_Items.php:538 PO_Items.php:562 #: SalesAnalReptCols.php:356 SpecialOrder.php:370 @@ -843,12 +876,12 @@ msgid "could not be retrieved because" msgstr "se nepodařilo získat, protože" -#: AgedDebtors.php:374 AgedSuppliers.php:192 Areas.php:95 -#: ConfirmDispatch_Invoice.php:150 ConfirmDispatch_Invoice.php:962 -#: ConfirmDispatch_Invoice.php:976 Contracts.php:581 CounterSales.php:1323 +#: AgedDebtors.php:374 AgedSuppliers.php:194 Areas.php:95 +#: ConfirmDispatch_Invoice.php:150 ConfirmDispatch_Invoice.php:957 +#: ConfirmDispatch_Invoice.php:971 Contracts.php:581 CounterSales.php:1323 #: CounterSales.php:1337 Credit_Invoice.php:703 Credit_Invoice.php:725 #: CustomerReceipt.php:523 CustomerReceipt.php:655 CustomerReceipt.php:683 -#: CustomerTransInquiry.php:79 DeliveryDetails.php:393 GLProfit_Loss.php:579 +#: CustomerTransInquiry.php:82 DeliveryDetails.php:393 GLProfit_Loss.php:579 #: GLTagProfit_Loss.php:488 Payments.php:312 PDFRemittanceAdvice.php:86 #: PurchData.php:95 PurchData.php:113 PurchData.php:245 ReverseGRN.php:191 #: ReverseGRN.php:205 ReverseGRN.php:366 SelectCreditItems.php:1372 @@ -887,7 +920,7 @@ msgid "To Customer Code" msgstr "Do kódu zákazníka" -#: AgedDebtors.php:471 AgedSuppliers.php:293 +#: AgedDebtors.php:471 AgedSuppliers.php:285 msgid "All balances or overdues only" msgstr "Všechny zůstatky nebo overdues pouze" @@ -895,7 +928,7 @@ msgid "All customers with balances" msgstr "Všichni zákazníci s bilancí" -#: AgedDebtors.php:474 AgedSuppliers.php:296 +#: AgedDebtors.php:474 AgedSuppliers.php:288 msgid "Overdue accounts only" msgstr "Po lhůtě splatnosti účtů" @@ -907,28 +940,33 @@ msgid "Only Show Customers Of" msgstr "Zobrazit jen zákazníky" -#: AgedDebtors.php:493 +#: AgedDebtors.php:486 +#, fuzzy +msgid "All Sales people" +msgstr "Všechny Prodejci" + +#: AgedDebtors.php:492 msgid "Only show customers trading in" msgstr "Zobrazovat pouze zákazníkům obchodování" -#: AgedDebtors.php:508 +#: AgedDebtors.php:507 msgid "Summary or detailed report" msgstr "Souhrn nebo podrobné zprávy" -#: AgedDebtors.php:510 AgedSuppliers.php:316 InventoryValuation.php:247 +#: AgedDebtors.php:509 AgedSuppliers.php:308 InventoryValuation.php:247 msgid "Summary Report" msgstr "Souhrnná zpráva" -#: AgedDebtors.php:511 AgedSuppliers.php:317 InventoryValuation.php:248 +#: AgedDebtors.php:510 AgedSuppliers.php:309 InventoryValuation.php:248 msgid "Detailed Report" msgstr "Podrobná zpráva" -#: AgedDebtors.php:516 AgedSuppliers.php:320 BOMExtendedQty.php:286 -#: BOMIndented.php:271 BOMIndentedReverse.php:255 BOMListing.php:132 +#: AgedDebtors.php:515 AgedSuppliers.php:312 BOMExtendedQty.php:282 +#: BOMIndented.php:272 BOMIndentedReverse.php:250 BOMListing.php:132 #: DebtorsAtPeriodEnd.php:156 InventoryPlanning.php:442 #: InventoryPlanningPrefSupplier.php:518 InventoryQuantities.php:187 #: InventoryValuation.php:251 MRPPlannedPurchaseOrders.php:282 -#: MRPPlannedWorkOrders.php:343 MRPReschedules.php:140 MRPShortages.php:290 +#: MRPPlannedWorkOrders.php:335 MRPReschedules.php:140 MRPShortages.php:290 #: OutstandingGRNs.php:162 PDFCustomerList.php:410 PDFLowGP.php:145 #: PDFPriceList.php:301 PDFRemittanceAdvice.php:152 #: PDFStockCheckComparison.php:379 PrintCustTrans.php:506 @@ -937,53 +975,53 @@ msgid "Print PDF" msgstr "Tisknout PDF" -#: AgedSuppliers.php:18 +#: AgedSuppliers.php:15 msgid "Aged Supplier Listing" msgstr "Dodavatel ve věku Výpis" -#: AgedSuppliers.php:19 +#: AgedSuppliers.php:16 msgid "Aged Suppliers" msgstr "Ve věku od dodavatelů" -#: AgedSuppliers.php:105 +#: AgedSuppliers.php:107 msgid "Aged Supplier Account Analysis" msgstr "Dodavatel ve věku účtu analýza" -#: AgedSuppliers.php:107 SupplierBalsAtPeriodEnd.php:55 +#: AgedSuppliers.php:109 SupplierBalsAtPeriodEnd.php:55 msgid "The Supplier details could not be retrieved by the SQL because" msgstr "Dodavatel údaje se nepodařilo získat do SQL, protože" -#: AgedSuppliers.php:187 +#: AgedSuppliers.php:189 msgid "Aged Supplier Account Analysis - Problem Report" msgstr "Dodavatel ve věku účtu analýza - nahlášení problému" -#: AgedSuppliers.php:189 +#: AgedSuppliers.php:191 msgid "The details of outstanding transactions for Supplier" msgstr "Podrobnosti o nesplacených transakcí pro dodavatele" -#: AgedSuppliers.php:273 +#: AgedSuppliers.php:264 msgid "Aged Supplier Analysis" msgstr "Dodavatel ve věku analýza" -#: AgedSuppliers.php:286 OutstandingGRNs.php:157 PDFRemittanceAdvice.php:138 +#: AgedSuppliers.php:278 OutstandingGRNs.php:157 PDFRemittanceAdvice.php:138 #: SupplierBalsAtPeriodEnd.php:131 SuppPaymentRun.php:259 msgid "From Supplier Code" msgstr "Od kódu dodavatele" -#: AgedSuppliers.php:289 OutstandingGRNs.php:159 PDFRemittanceAdvice.php:140 +#: AgedSuppliers.php:281 OutstandingGRNs.php:159 PDFRemittanceAdvice.php:140 #: SupplierBalsAtPeriodEnd.php:133 SuppPaymentRun.php:261 msgid "To Supplier Code" msgstr "Do kódu dodavatele" -#: AgedSuppliers.php:295 +#: AgedSuppliers.php:287 msgid "All suppliers with balances" msgstr "Všem dodavatelům s bilancí" -#: AgedSuppliers.php:299 +#: AgedSuppliers.php:291 msgid "For suppliers trading in" msgstr "Pro dodavatele obchodování" -#: AgedSuppliers.php:314 InventoryValuation.php:245 +#: AgedSuppliers.php:306 InventoryValuation.php:245 msgid "Summary or Detailed Report" msgstr "Souhrnné nebo podrobné zprávy" @@ -1090,25 +1128,25 @@ msgid "Incorrect date format used, please re-enter" msgstr "Nesprávné datum používaného formátu, prosím, re-zadání" -#: AuditTrail.php:35 BOMIndented.php:309 BOMIndentedReverse.php:294 +#: AuditTrail.php:35 BOMIndented.php:310 BOMIndentedReverse.php:289 #: MRPCalendar.php:258 msgid "From Date" msgstr "Od data" -#: AuditTrail.php:37 BOMIndented.php:310 BOMIndentedReverse.php:295 +#: AuditTrail.php:37 BOMIndented.php:311 BOMIndentedReverse.php:290 #: MRPCalendar.php:260 msgid "To Date" msgstr "To Date" #: AuditTrail.php:41 PO_AuthorisationLevels.php:123 #: PO_AuthorisationLevels.php:170 PO_AuthorisationLevels.php:173 -#: UserSettings.php:109 +#: UserSettings.php:110 msgid "User ID" msgstr "ID uživatele" -#: AuditTrail.php:43 AuditTrail.php:56 ContractBOM.php:297 -#: CounterSales.php:2113 CounterSales.php:2116 DailySalesInquiry.php:41 -#: DailySalesInquiry.php:43 FixedAssetRegister.php:56 +#: AuditTrail.php:43 AuditTrail.php:56 ContractBOM.php:300 +#: CounterSales.php:2113 CounterSales.php:2116 CustomerTransInquiry.php:29 +#: DailySalesInquiry.php:41 DailySalesInquiry.php:43 FixedAssetRegister.php:56 #: FixedAssetRegister.php:65 InventoryQuantities.php:153 #: InventoryQuantities.php:175 InventoryQuantities.php:177 MRP.php:562 #: MRPReport.php:523 MRPReport.php:525 MRPReschedules.php:135 @@ -1136,7 +1174,7 @@ msgstr "Tabulka " #: AuditTrail.php:67 MRPReport.php:768 PO_SelectPurchOrder.php:391 -#: SelectContract.php:196 SelectProduct.php:739 +#: SelectContract.php:193 SelectProduct.php:739 msgid "View" msgstr "Zobrazit" @@ -1148,9 +1186,9 @@ msgid "User" msgstr "Uživatel" -#: AuditTrail.php:146 BankReconciliation.php:195 BankReconciliation.php:267 +#: AuditTrail.php:146 BankReconciliation.php:199 BankReconciliation.php:271 #: CustomerAllocations.php:355 CustomerInquiry.php:190 -#: CustomerTransInquiry.php:21 CustomerTransInquiry.php:85 +#: CustomerTransInquiry.php:18 CustomerTransInquiry.php:88 #: CustWhereAlloc.php:17 CustWhereAlloc.php:88 DailyBankTransactions.php:104 #: GLAccountInquiry.php:152 GLAccountReportphp:155 GLAccountReport.php:367 #: GLJournal.php:240 MRPReschedules.php:178 SalesByTypePeriodInquiry.php:327 @@ -1258,35 +1296,35 @@ msgid "Bank account deleted" msgstr "Bankovní účet smazán" -#: BankAccounts.php:184 +#: BankAccounts.php:183 msgid "The bank accounts set up could not be retrieved because" msgstr "Bankovní účty zřízené se nepodařilo získat, protože" -#: BankAccounts.php:185 +#: BankAccounts.php:184 msgid "The SQL used to retrieve the bank account details was" msgstr "SQL používá k načtení údaje o bankovním účtu bylo" -#: BankAccounts.php:191 GLJournal.php:264 +#: BankAccounts.php:190 GLJournal.php:264 msgid "GL Account Code" msgstr "GL kódu účtu" -#: BankAccounts.php:192 BankAccounts.php:321 +#: BankAccounts.php:191 BankAccounts.php:323 msgid "Bank Account Name" msgstr "Název bankovního účtu" -#: BankAccounts.php:193 BankAccounts.php:323 +#: BankAccounts.php:192 BankAccounts.php:325 msgid "Bank Account Code" msgstr "Bankovní účet kódu" -#: BankAccounts.php:194 BankAccounts.php:325 +#: BankAccounts.php:193 BankAccounts.php:327 msgid "Bank Account Number" msgstr "Číslo bankovního účtu" -#: BankAccounts.php:195 BankAccounts.php:327 +#: BankAccounts.php:194 BankAccounts.php:329 msgid "Bank Address" msgstr "Adresa banky" -#: BankAccounts.php:196 CustomerReceipt.php:753 CustomerTransInquiry.php:95 +#: BankAccounts.php:195 CustomerReceipt.php:753 CustomerTransInquiry.php:98 #: OffersReceived.php:99 PcReportTab.php:267 PcTabs.php:206 PcTabs.php:349 #: PDFPrintLabel.php:93 PO_AuthorisationLevels.php:125 #: PO_AuthorisationLevels.php:205 PO_AuthorisationLevels.php:210 @@ -1301,19 +1339,24 @@ msgid "Currency" msgstr "Měna" -#: BankAccounts.php:197 BankAccounts.php:346 +#: BankAccounts.php:196 BankAccounts.php:352 msgid "Default for Invoices" msgstr "Výchozí pro Faktury" -#: BankAccounts.php:246 +#: BankAccounts.php:221 +#, fuzzy, php-format +msgid "Are you sure you wish to delete this bank account?" +msgstr "Jste si jisti, že chcete smazat tento obor?" + +#: BankAccounts.php:245 msgid "Show All Bank Accounts Defined" msgstr "Zobrazit všechny bankovní účty definované" -#: BankAccounts.php:279 BankAccounts.php:282 +#: BankAccounts.php:279 BankAccounts.php:284 msgid "Bank Account GL Code" msgstr "Bankovní účet GL kód" -#: BankAccounts.php:329 +#: BankAccounts.php:331 msgid "Currency Of Account" msgstr "Měna účtu" @@ -1358,16 +1401,16 @@ msgid "Could not match off this payment because" msgstr "Nemohl zápas z této platby, protože" -#: BankMatching.php:63 +#: BankMatching.php:64 msgid "Could not update the amount matched off this bank transaction because" msgstr "" "Nepodařilo se aktualizovat částku uzavřeno z této banky, protože transakce" -#: BankMatching.php:69 +#: BankMatching.php:70 msgid "Could not unclear this bank transaction because" msgstr "Nemohu nejasné tento bankovní transakci, protože" -#: BankMatching.php:77 +#: BankMatching.php:78 msgid "" "Use this screen to match webERP Receipts and Payments to your Bank " "Statement. Check your bank statement and click the check-box when you find " @@ -1377,24 +1420,24 @@ "účtu. Zkontrolujte, zda vaše bankovní výpis a klikněte na check-box, když " "zjistíte, odpovídající transakce." -#: BankMatching.php:85 BankReconciliation.php:99 CustomerReceipt.php:726 +#: BankMatching.php:87 BankReconciliation.php:101 CustomerReceipt.php:726 #: DailyBankTransactions.php:29 Payments.php:737 PDFChequeListing.php:44 #: TaxAuthorities.php:149 TaxAuthorities.php:305 msgid "Bank Account" msgstr "Bankovní účet" -#: BankMatching.php:107 +#: BankMatching.php:110 msgid "Show" msgstr "Zobrazit" -#: BankMatching.php:107 CreditItemsControlled.php:78 FreightCosts.php:267 +#: BankMatching.php:110 CreditItemsControlled.php:78 FreightCosts.php:267 #: GoodsReceivedControlled.php:65 GoodsReceived.php:65 #: StockLocTransferReceive.php:426 SupplierAllocations.php:434 #: SuppShiptChgs.php:129 msgid "from" msgstr "od" -#: BankMatching.php:110 ConfirmDispatchControlled_Invoice.php:58 +#: BankMatching.php:113 ConfirmDispatchControlled_Invoice.php:58 #: EmailCustTrans.php:63 FixedAssetRegister.php:78 FTP_RadioBeacon.php:280 #: GLAccountCSV.php:171 GLAccountReport.php:102 Payments.php:717 #: PcReportTab.php:102 PDFChequeListing.php:107 PDFChequeListing.php:117 @@ -1424,29 +1467,29 @@ msgid "to" msgstr "na" -#: BankMatching.php:112 +#: BankMatching.php:115 msgid "Choose outstanding" msgstr "Zvolte vynikající" -#: BankMatching.php:112 +#: BankMatching.php:115 msgid "only or all" msgstr "jen nebo všechny" -#: BankMatching.php:112 BankMatching.php:116 BankMatching.php:119 -#: BankMatching.php:127 BankMatching.php:130 +#: BankMatching.php:115 BankMatching.php:119 BankMatching.php:122 +#: BankMatching.php:130 BankMatching.php:133 msgid "in the date range" msgstr "v rozmezí dat" -#: BankMatching.php:116 BankMatching.php:119 BankMatching.php:127 -#: BankMatching.php:130 +#: BankMatching.php:119 BankMatching.php:122 BankMatching.php:130 +#: BankMatching.php:133 msgid "Show all" msgstr "Zobrazit všechny" -#: BankMatching.php:117 BankMatching.php:120 +#: BankMatching.php:120 BankMatching.php:123 msgid "Show unmatched" msgstr "Zobrazit bezkonkurenční" -#: BankMatching.php:117 BankMatching.php:120 ReverseGRN.php:103 +#: BankMatching.php:120 BankMatching.php:123 ReverseGRN.php:103 #: includes/PDFCustomerListPageHeader.inc:46 #: includes/PDFDeliveryDifferencesPageHeader.inc:24 #: includes/PDFDIFOTPageHeader.inc:24 @@ -1455,62 +1498,62 @@ msgid "only" msgstr "jen" -#: BankMatching.php:124 +#: BankMatching.php:127 msgid "Choose to display only the first 20 matching" msgstr "Vyberte, zda chcete zobrazit pouze prvních 20 odpovídající" -#: BankMatching.php:125 +#: BankMatching.php:128 msgid "or all" msgstr "nebo všechny" -#: BankMatching.php:125 +#: BankMatching.php:128 msgid "meeting the criteria" msgstr "splňující kritéria" -#: BankMatching.php:128 BankMatching.php:131 +#: BankMatching.php:131 BankMatching.php:134 msgid "Show only the first 20" msgstr "Zobrazit jen prvních 20" -#: BankMatching.php:136 +#: BankMatching.php:139 msgid "Show selected" msgstr "Zobrazit vybrané" -#: BankMatching.php:137 +#: BankMatching.php:140 msgid "Show reconciliation" msgstr "Zobrazit usmíření" -#: BankMatching.php:143 BankMatching.php:149 +#: BankMatching.php:146 BankMatching.php:152 msgid "The date entered for the field to show" msgstr "Datum vstoupil na pole show" -#: BankMatching.php:143 +#: BankMatching.php:146 msgid "before" msgstr "před" -#: BankMatching.php:144 BankMatching.php:150 +#: BankMatching.php:147 BankMatching.php:153 msgid "is not entered in a recognised date format" msgstr "není zapsán v uznávané formátu data" -#: BankMatching.php:144 BankMatching.php:150 +#: BankMatching.php:147 BankMatching.php:153 msgid "Entry is expected in the format" msgstr "Vstup se očekává ve formátu" -#: BankMatching.php:149 +#: BankMatching.php:152 msgid "after" msgstr "po" -#: BankMatching.php:223 +#: BankMatching.php:226 msgid "The payments with the selected criteria could not be retrieved because" msgstr "Platby podle zadaných kriterií se nepodařilo získat, protože" -#: BankMatching.php:226 ShipmentCosting.php:507 ShipmentCosting.php:578 +#: BankMatching.php:229 ShipmentCosting.php:507 ShipmentCosting.php:578 #: SupplierAllocations.php:455 msgid "Ref" msgstr "Ref" -#: BankMatching.php:229 ConfirmDispatch_Invoice.php:274 Credit_Invoice.php:279 +#: BankMatching.php:232 ConfirmDispatch_Invoice.php:274 Credit_Invoice.php:279 #: CustomerAllocations.php:358 CustomerReceipt.php:842 -#: CustomerTransInquiry.php:94 CustWhereAlloc.php:92 PaymentAllocations.php:78 +#: CustomerTransInquiry.php:97 CustWhereAlloc.php:92 PaymentAllocations.php:78 #: Payments.php:969 Payments.php:972 Payments.php:984 #: PcAssignCashToTab.php:218 PcAssignCashToTab.php:339 #: PcAuthorizeExpenses.php:89 PcClaimExpensesFromTab.php:212 @@ -1528,7 +1571,7 @@ msgid "Amount" msgstr "Částka" -#: BankMatching.php:230 BankReconciliation.php:199 BankReconciliation.php:271 +#: BankMatching.php:233 BankReconciliation.php:203 BankReconciliation.php:275 #: PDFOrdersInvoiced.php:345 PDFOrderStatus.php:319 #: PO_SelectOSPurchOrder.php:213 PO_SelectPurchOrder.php:180 #: Shipt_Select.php:182 SuppCreditGRNs.php:227 @@ -1537,15 +1580,15 @@ msgid "Outstanding" msgstr "Vynikající" -#: BankMatching.php:231 +#: BankMatching.php:234 msgid "Clear" msgstr "Jasný" -#: BankMatching.php:231 BankMatching.php:259 +#: BankMatching.php:234 BankMatching.php:262 msgid "Unclear" msgstr "Nejasný" -#: BankMatching.php:305 +#: BankMatching.php:308 msgid "Update Matching" msgstr "Odpovídající aktualizace" @@ -1563,86 +1606,86 @@ "měly být zaneseny. Kurzových rozdílů nebyla vypočtena žádná obecná a knihy " "časopis byl vytvořen" -#: BankReconciliation.php:33 +#: BankReconciliation.php:34 msgid "Could not retrieve the exchange rate for the selected bank account" msgstr "Nepodařilo se načíst směnný kurz pro vybrané bankovní účet" -#: BankReconciliation.php:63 BankReconciliation.php:81 +#: BankReconciliation.php:65 BankReconciliation.php:83 msgid "reconciliation on" msgstr "usmíření, na" -#: BankReconciliation.php:66 +#: BankReconciliation.php:68 msgid "Cannot insert a GL entry for the exchange difference because" msgstr "Nelze vložit záznam GL pro výměnu rozdíl, protože" -#: BankReconciliation.php:67 +#: BankReconciliation.php:69 msgid "The SQL that failed to insert the exchange difference GL entry was" msgstr "SQL, které se nepodařilo vložit kurzový rozdíl GL vstup" -#: BankReconciliation.php:87 +#: BankReconciliation.php:89 msgid "Exchange difference of" msgstr "Kurzových rozdílů z" -#: BankReconciliation.php:87 +#: BankReconciliation.php:89 msgid "has been posted" msgstr "byl vyslán" -#: BankReconciliation.php:95 SuppPaymentRun.php:300 +#: BankReconciliation.php:97 SuppPaymentRun.php:300 msgid "The bank accounts could not be retrieved by the SQL because" msgstr "Bankovní účty se nepodařilo získat na SQL, protože" -#: BankReconciliation.php:96 CustomerReceipt.php:717 +#: BankReconciliation.php:98 CustomerReceipt.php:717 #: DailyBankTransactions.php:26 Payments.php:734 SuppPaymentRun.php:302 msgid "The SQL used to retrieve the bank accounts was" msgstr "SQL slouží k získání bankovní účty byly" -#: BankReconciliation.php:106 CustomerReceipt.php:731 +#: BankReconciliation.php:108 CustomerReceipt.php:731 msgid "Bank Accounts have not yet been defined" msgstr "Bankovní účty dosud nebyly definovány" -#: BankReconciliation.php:106 CustomerReceipt.php:731 +#: BankReconciliation.php:108 CustomerReceipt.php:731 msgid "You must first" msgstr "Musíte nejprve" -#: BankReconciliation.php:106 CustomerReceipt.php:731 +#: BankReconciliation.php:108 CustomerReceipt.php:731 #: DailyBankTransactions.php:34 Payments.php:742 SuppPaymentRun.php:310 msgid "define the bank accounts" msgstr "definovat bankovních účtů" -#: BankReconciliation.php:106 CustomerReceipt.php:731 +#: BankReconciliation.php:108 CustomerReceipt.php:731 #: DailyBankTransactions.php:34 Payments.php:742 SuppPaymentRun.php:310 msgid "and general ledger accounts to be affected" msgstr "a účtů hlavní knihy mohly být postiženy" -#: BankReconciliation.php:125 +#: BankReconciliation.php:128 msgid "Show bank reconciliation statement" msgstr "Zobrazit bankovní prohlášení o smíření" -#: BankReconciliation.php:144 +#: BankReconciliation.php:147 msgid "The bank account balance could not be returned by the SQL because" msgstr "Bankovního účtu nemůže být vrácen, protože SQL" -#: BankReconciliation.php:157 +#: BankReconciliation.php:160 msgid "" "Could not retrieve the currency and exchange rate for the selected bank " "account" msgstr "Nepodařilo se načíst měny a směnného kurzu pro zvolený bankovní účet" -#: BankReconciliation.php:165 +#: BankReconciliation.php:168 msgid "Balance as at" msgstr "Zůstatek k" -#: BankReconciliation.php:188 +#: BankReconciliation.php:192 msgid "The unpresented cheques could not be retrieved by the SQL because" msgstr "Unpresented Kontroly se nepodařilo získat do SQL, protože" -#: BankReconciliation.php:191 +#: BankReconciliation.php:195 msgid "Add back unpresented cheques" msgstr "Přidat zpět unpresented kontroly" -#: BankReconciliation.php:196 BankReconciliation.php:268 +#: BankReconciliation.php:200 BankReconciliation.php:272 #: CustomerAllocations.php:330 CustomerAllocations.php:356 -#: CustomerInquiry.php:191 CustomerTransInquiry.php:86 CustWhereAlloc.php:89 +#: CustomerInquiry.php:191 CustomerTransInquiry.php:89 CustWhereAlloc.php:89 #: EmailCustTrans.php:15 GLAccountInquiry.php:153 GLAccountReportphp:156 #: PrintCustTrans.php:450 PrintCustTrans.php:651 PrintCustTrans.php:871 #: PrintCustTrans.php:918 PrintCustTransPortrait.php:502 @@ -1659,8 +1702,8 @@ msgid "Number" msgstr "Číslo" -#: BankReconciliation.php:197 BankReconciliation.php:269 -#: ContractCosting.php:148 CustomerInquiry.php:194 CustomerTransInquiry.php:90 +#: BankReconciliation.php:201 BankReconciliation.php:273 +#: ContractCosting.php:150 CustomerInquiry.php:194 CustomerTransInquiry.php:93 #: CustWhereAlloc.php:90 DailyBankTransactions.php:105 GLAccountReport.php:368 #: PaymentAllocations.php:75 PaymentAllocations.php:76 #: PDFRemittanceAdvice.php:309 ShiptsList.php:37 StockCounts.php:99 @@ -1676,39 +1719,39 @@ msgid "Reference" msgstr "Reference" -#: BankReconciliation.php:198 BankReconciliation.php:270 +#: BankReconciliation.php:202 BankReconciliation.php:274 msgid "Orig Amount" msgstr "Orig Částka" -#: BankReconciliation.php:241 +#: BankReconciliation.php:245 msgid "Total of all unpresented cheques" msgstr "Celkem ze všech kontrol unpresented" -#: BankReconciliation.php:259 +#: BankReconciliation.php:263 msgid "The uncleared deposits could not be retrieved by the SQL because" msgstr "Uncleared vklady se nepodařilo získat do SQL, protože" -#: BankReconciliation.php:263 +#: BankReconciliation.php:267 msgid "Less deposits not cleared" msgstr "Méně vklady nejsou schváleny" -#: BankReconciliation.php:313 +#: BankReconciliation.php:318 msgid "Total of all uncleared deposits" msgstr "Souhrn všech vkladů uncleared" -#: BankReconciliation.php:315 +#: BankReconciliation.php:324 msgid "Bank statement balance should be" msgstr "Bankovní výpis bilance by měla být" -#: BankReconciliation.php:319 +#: BankReconciliation.php:329 msgid "Enter the actual bank statement balance" msgstr "Zadejte aktuální výpis z účtu zůstatek" -#: BankReconciliation.php:321 BankReconciliation.php:331 +#: BankReconciliation.php:331 BankReconciliation.php:341 msgid "Calculate and Post Exchange Difference" msgstr "Vypočítat a příspěvek kurzových rozdílů" -#: BankReconciliation.php:321 +#: BankReconciliation.php:331 msgid "" "This will create a general ledger journal to write off the exchange " "difference in the current balance of the account. It is important that the " @@ -1718,13 +1761,13 @@ "zůstatek na účtu. Je důležité, že směnný kurz výše odráží současnou hodnotu " "měny bankovního účtu" -#: BankReconciliation.php:321 CounterSales.php:781 Customers.php:1024 +#: BankReconciliation.php:331 CounterSales.php:781 Customers.php:1000 #: SelectOrderItems.php:1381 Stocks.php:1041 WorkOrderCosting.php:517 #: WorkOrderEntry.php:548 msgid "Are You Sure?" msgstr "Opravdu provést?" -#: BankReconciliation.php:330 +#: BankReconciliation.php:340 msgid "" "It is normal for foreign currency accounts to have exchange differences that " "need to be reflected as the exchange rate varies. This reconciliation is " @@ -1741,58 +1784,58 @@ "vytvořit časopis, aby odrážely kurzový rozdíl na základě aktuálního směnného " "kurzu k opravě k usmíření skutečného stavu bankovního výpisu klikněte níže." -#: BankReconciliation.php:338 BankReconciliation.php:341 +#: BankReconciliation.php:348 BankReconciliation.php:351 msgid "Match off cleared payments" msgstr "Utkání vypnutí vymazány plateb" -#: BankReconciliation.php:339 BankReconciliation.php:342 +#: BankReconciliation.php:349 BankReconciliation.php:352 msgid "Match off cleared deposits" msgstr "Utkání vypnutí vymazány vklady" -#: BOMExtendedQty.php:12 BOMExtendedQty.php:13 BOMExtendedQty.php:159 -#: BOMExtendedQty.php:269 +#: BOMExtendedQty.php:12 BOMExtendedQty.php:13 BOMExtendedQty.php:149 +#: BOMExtendedQty.php:256 msgid "Quantity Extended BOM Listing" msgstr "Množství Rozšířené kusovníku Výpis" -#: BOMExtendedQty.php:32 BOMIndentedReverse.php:29 MRPCalendar.php:85 +#: BOMExtendedQty.php:29 BOMIndentedReverse.php:26 MRPCalendar.php:85 #: MRP.php:27 msgid "The SQL to to create passbom failed with the message" msgstr "SQL k vytvoření passbom nepodařilo se zprávou" -#: BOMExtendedQty.php:45 BOMIndented.php:40 BOMIndentedReverse.php:42 +#: BOMExtendedQty.php:42 BOMIndented.php:40 BOMIndentedReverse.php:39 #: MRP.php:34 msgid "Create of tempbom failed because" msgstr "Vytvořit z tempbom se nezdařila, protože" -#: BOMExtendedQty.php:161 +#: BOMExtendedQty.php:151 msgid "" "The Quantiy Extended BOM Listing could not be retrieved by the SQL because" msgstr "Quantiy Rozšířená rozpisky Výpis se nepodařilo získat na SQL, protože" -#: BOMExtendedQty.php:256 BOMIndented.php:231 +#: BOMExtendedQty.php:243 BOMIndented.php:231 msgid "Print Indented BOM Listing Error" msgstr "Tisk Odsazené kusovníku výpis chyby" -#: BOMExtendedQty.php:258 BOMIndented.php:233 +#: BOMExtendedQty.php:245 BOMIndented.php:233 msgid "There were no items for the selected assembly" msgstr "Nebyly zjištěny žádné položky pro vybraný montáž" -#: BOMExtendedQty.php:276 BOMIndented.php:252 BOMIndentedReverse.php:249 +#: BOMExtendedQty.php:263 BOMIndented.php:253 BOMIndentedReverse.php:242 msgid "Part" msgstr "Část" -#: BOMExtendedQty.php:277 BOMExtendedQty.php:328 BOMExtendedQty.php:329 -#: BOMExtendedQty.php:330 BOMExtendedQty.php:331 BOMIndented.php:308 -#: BOMIndentedReverse.php:293 BOMInquiry.php:173 BOMs.php:516 BOMs.php:677 -#: ContractBOM.php:241 ContractBOM.php:344 ContractCosting.php:74 -#: ContractCosting.php:80 ContractCosting.php:131 ContractOtherReqts.php:95 -#: Contracts.php:932 Contracts.php:956 CounterSales.php:701 +#: BOMExtendedQty.php:265 BOMExtendedQty.php:325 BOMExtendedQty.php:326 +#: BOMExtendedQty.php:327 BOMExtendedQty.php:328 BOMIndented.php:309 +#: BOMIndentedReverse.php:288 BOMInquiry.php:178 BOMs.php:522 BOMs.php:685 +#: ContractBOM.php:239 ContractBOM.php:347 ContractCosting.php:73 +#: ContractCosting.php:79 ContractCosting.php:130 ContractOtherReqts.php:92 +#: Contracts.php:938 Contracts.php:963 CounterSales.php:701 #: CounterSales.php:1994 CounterSales.php:2174 CounterSales.php:2302 #: Credit_Invoice.php:273 DeliveryDetails.php:822 DeliveryDetails.php:887 #: GoodsReceived.php:88 GoodsReceived.php:92 GoodsReceived.php:95 #: InventoryPlanningPrefSupplier.php:83 InventoryQuantities.php:223 #: MRPDemands.php:291 MRPDemands.php:381 MRPPlannedPurchaseOrders.php:326 -#: MRPPlannedWorkOrders.php:259 MRPPlannedWorkOrders.php:387 MRPReport.php:413 +#: MRPPlannedWorkOrders.php:258 MRPPlannedWorkOrders.php:379 MRPReport.php:413 #: MRPReport.php:419 MRPReschedules.php:179 OffersReceived.php:95 #: OffersReceived.php:197 OffersReceived.php:244 OrderDetails.php:155 #: PDFOrdersInvoiced.php:384 POReport.php:743 POReport.php:1428 @@ -1807,7 +1850,7 @@ #: SelectOrderItems.php:1634 SelectOrderItems.php:1758 ShipmentCosting.php:144 #: ShipmentCosting.php:145 Shipments.php:385 Shipments.php:387 #: Shipments.php:388 Shipments.php:463 Shipments.php:465 SpecialOrder.php:542 -#: StockCounts.php:98 StockLocMovements.php:85 StockLocTransfer.php:179 +#: StockCounts.php:98 StockLocMovements.php:85 StockLocTransfer.php:185 #: StockMovements.php:95 StockStatus.php:312 StockUsageGraph.php:12 #: SuppCreditGRNs.php:227 SuppCreditGRNs.php:228 SupplierCredit.php:313 #: SupplierTenders.php:265 SupplierTenders.php:493 WOSerialNos.php:249 @@ -1833,44 +1876,44 @@ msgid "Quantity" msgstr "Množství" -#: BOMExtendedQty.php:278 +#:... [truncated message content] |
From: <dai...@us...> - 2011-06-18 22:27:50
|
Revision: 4601 http://web-erp.svn.sourceforge.net/web-erp/?rev=4601&view=rev Author: daintree Date: 2011-06-18 22:27:44 +0000 (Sat, 18 Jun 2011) Log Message: ----------- ricards earliest dispatch mods Modified Paths: -------------- trunk/SystemParameters.php trunk/includes/DateFunctions.inc trunk/sql/mysql/upgrade4.04.4-4.04.5.sql Modified: trunk/SystemParameters.php =================================================================== --- trunk/SystemParameters.php 2011-06-18 07:05:12 UTC (rev 4600) +++ trunk/SystemParameters.php 2011-06-18 22:27:44 UTC (rev 4601) @@ -117,6 +117,9 @@ if ($_SESSION['QuickEntries'] != $_POST['X_QuickEntries'] ) { $sql[] = "UPDATE config SET confvalue = '".$_POST['X_QuickEntries']."' WHERE confname = 'QuickEntries'"; } + if ($_SESSION['WorkingDaysWeek'] != $_POST['X_WorkingDaysWeek'] ) { + $sql[] = "UPDATE config SET confvalue = '".$_POST['X_WorkingDaysWeek']."' WHERE confname = 'WorkingDaysWeek'"; + } if ($_SESSION['DispatchCutOffTime'] != $_POST['X_DispatchCutOffTime'] ) { $sql[] = "UPDATE config SET confvalue = '".$_POST['X_DispatchCutOffTime']."' WHERE confname = 'DispatchCutOffTime'"; } @@ -458,6 +461,16 @@ <td>' . _('Customer branches can be set by default not to print packing slips with the company logo and address. This is useful for companies that ship to customers customers and to show the source of the shipment would be inappropriate. There is an option on the setup of customer branches to ship blind, this setting is the default applied to all new customer branches') . '</td> </tr>'; +// Working days on a week +echo '<tr style="outline: 1px solid"><td>' . _('Working Days on a Week') . ':</td> + <td><select Name="X_WorkingDaysWeek"> + <option '.($_SESSION['WorkingDaysWeek']=='7'?'selected ':'').'value="7">7 '._('working days').'</option> + <option '.($_SESSION['WorkingDaysWeek']=='6'?'selected ':'').'value="6">6 '._('working days').'</option> + <option '.($_SESSION['WorkingDaysWeek']=='5'?'selected ':'').'value="5">5 '._('working days').'</option> + </select></td> + <td>' . _('Number of working days on a week') . '</td> + </tr>'; + // DispatchCutOffTime echo '<tr style="outline: 1px solid"><td>' . _('Dispatch Cut-Off Time') . ':</td> <td><select Name="X_DispatchCutOffTime">'; Modified: trunk/includes/DateFunctions.inc =================================================================== --- trunk/includes/DateFunctions.inc 2011-06-18 07:05:12 UTC (rev 4600) +++ trunk/includes/DateFunctions.inc 2011-06-18 22:27:44 UTC (rev 4601) @@ -777,19 +777,21 @@ function CalcEarliestDispatchDate (){ -/*This function will need to be modified depending on the business - many businesses run 24x7 -The default assumes no delivery on Sat and Sun*/ +/*There is a system parameter that allows the number of working days to be defined $_SESSION['WorkingDaysWeek'] if this is set to 5 then the assumption is no delivery on Sat and Sun + * if the number of working days is 6 then it is assumed that there is no delivery on Sunday + * if the number of working days is 7 then there are deliveries every day + * */ $EarliestDispatch = time(); - if (Date('w',$EarliestDispatch)==0 ){ + if ((Date('w',$EarliestDispatch)==0) AND ($_SESSION['WorkingDaysWeek'] != '7')){ -/*if today is a sunday the dispatch date must be tomorrow (Monday) or after */ +/*if today is a sunday AND the company does NOT work 7 days a week, the dispatch date must be tomorrow (Monday) or after */ $EarliestDispatch = Mktime(0,0,0,Date('m',$EarliestDispatch),Date('d',$EarliestDispatch)+1,Date('y',$EarliestDispatch)); - } elseif (Date('w',$EarliestDispatch)==6){ + } elseif ((Date('w',$EarliestDispatch)==6) AND ($_SESSION['WorkingDaysWeek'] != '6') AND ($_SESSION['WorkingDaysWeek'] != '7')){ -/*if today is a saturday the dispatch date must be Monday or after */ +/*if today is a saturday AND the company does NOT work at least 6 days a week, the dispatch date must be Monday or after */ $EarliestDispatch = Mktime(0,0,0,Date('m',$EarliestDispatch),Date('d',$EarliestDispatch)+2,Date('y',$EarliestDispatch)); Modified: trunk/sql/mysql/upgrade4.04.4-4.04.5.sql =================================================================== --- trunk/sql/mysql/upgrade4.04.4-4.04.5.sql 2011-06-18 07:05:12 UTC (rev 4600) +++ trunk/sql/mysql/upgrade4.04.4-4.04.5.sql 2011-06-18 22:27:44 UTC (rev 4601) @@ -1,2 +1,3 @@ ALTER TABLE `custcontacts` ADD `email` VARCHAR( 55 ) NOT NULL; +INSERT INTO config (confname, confvalue) VALUES ('WorkingDaysWeek','5'); UPDATE config SET confvalue='4.04.5' WHERE confname='VersionNumber'; \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-18 22:27:50
|
Revision: 4601 http://web-erp.svn.sourceforge.net/web-erp/?rev=4601&view=rev Author: daintree Date: 2011-06-18 22:27:44 +0000 (Sat, 18 Jun 2011) Log Message: ----------- ricards earliest dispatch mods Modified Paths: -------------- trunk/SystemParameters.php trunk/includes/DateFunctions.inc trunk/sql/mysql/upgrade4.04.4-4.04.5.sql Modified: trunk/SystemParameters.php =================================================================== --- trunk/SystemParameters.php 2011-06-18 07:05:12 UTC (rev 4600) +++ trunk/SystemParameters.php 2011-06-18 22:27:44 UTC (rev 4601) @@ -117,6 +117,9 @@ if ($_SESSION['QuickEntries'] != $_POST['X_QuickEntries'] ) { $sql[] = "UPDATE config SET confvalue = '".$_POST['X_QuickEntries']."' WHERE confname = 'QuickEntries'"; } + if ($_SESSION['WorkingDaysWeek'] != $_POST['X_WorkingDaysWeek'] ) { + $sql[] = "UPDATE config SET confvalue = '".$_POST['X_WorkingDaysWeek']."' WHERE confname = 'WorkingDaysWeek'"; + } if ($_SESSION['DispatchCutOffTime'] != $_POST['X_DispatchCutOffTime'] ) { $sql[] = "UPDATE config SET confvalue = '".$_POST['X_DispatchCutOffTime']."' WHERE confname = 'DispatchCutOffTime'"; } @@ -458,6 +461,16 @@ <td>' . _('Customer branches can be set by default not to print packing slips with the company logo and address. This is useful for companies that ship to customers customers and to show the source of the shipment would be inappropriate. There is an option on the setup of customer branches to ship blind, this setting is the default applied to all new customer branches') . '</td> </tr>'; +// Working days on a week +echo '<tr style="outline: 1px solid"><td>' . _('Working Days on a Week') . ':</td> + <td><select Name="X_WorkingDaysWeek"> + <option '.($_SESSION['WorkingDaysWeek']=='7'?'selected ':'').'value="7">7 '._('working days').'</option> + <option '.($_SESSION['WorkingDaysWeek']=='6'?'selected ':'').'value="6">6 '._('working days').'</option> + <option '.($_SESSION['WorkingDaysWeek']=='5'?'selected ':'').'value="5">5 '._('working days').'</option> + </select></td> + <td>' . _('Number of working days on a week') . '</td> + </tr>'; + // DispatchCutOffTime echo '<tr style="outline: 1px solid"><td>' . _('Dispatch Cut-Off Time') . ':</td> <td><select Name="X_DispatchCutOffTime">'; Modified: trunk/includes/DateFunctions.inc =================================================================== --- trunk/includes/DateFunctions.inc 2011-06-18 07:05:12 UTC (rev 4600) +++ trunk/includes/DateFunctions.inc 2011-06-18 22:27:44 UTC (rev 4601) @@ -777,19 +777,21 @@ function CalcEarliestDispatchDate (){ -/*This function will need to be modified depending on the business - many businesses run 24x7 -The default assumes no delivery on Sat and Sun*/ +/*There is a system parameter that allows the number of working days to be defined $_SESSION['WorkingDaysWeek'] if this is set to 5 then the assumption is no delivery on Sat and Sun + * if the number of working days is 6 then it is assumed that there is no delivery on Sunday + * if the number of working days is 7 then there are deliveries every day + * */ $EarliestDispatch = time(); - if (Date('w',$EarliestDispatch)==0 ){ + if ((Date('w',$EarliestDispatch)==0) AND ($_SESSION['WorkingDaysWeek'] != '7')){ -/*if today is a sunday the dispatch date must be tomorrow (Monday) or after */ +/*if today is a sunday AND the company does NOT work 7 days a week, the dispatch date must be tomorrow (Monday) or after */ $EarliestDispatch = Mktime(0,0,0,Date('m',$EarliestDispatch),Date('d',$EarliestDispatch)+1,Date('y',$EarliestDispatch)); - } elseif (Date('w',$EarliestDispatch)==6){ + } elseif ((Date('w',$EarliestDispatch)==6) AND ($_SESSION['WorkingDaysWeek'] != '6') AND ($_SESSION['WorkingDaysWeek'] != '7')){ -/*if today is a saturday the dispatch date must be Monday or after */ +/*if today is a saturday AND the company does NOT work at least 6 days a week, the dispatch date must be Monday or after */ $EarliestDispatch = Mktime(0,0,0,Date('m',$EarliestDispatch),Date('d',$EarliestDispatch)+2,Date('y',$EarliestDispatch)); Modified: trunk/sql/mysql/upgrade4.04.4-4.04.5.sql =================================================================== --- trunk/sql/mysql/upgrade4.04.4-4.04.5.sql 2011-06-18 07:05:12 UTC (rev 4600) +++ trunk/sql/mysql/upgrade4.04.4-4.04.5.sql 2011-06-18 22:27:44 UTC (rev 4601) @@ -1,2 +1,3 @@ ALTER TABLE `custcontacts` ADD `email` VARCHAR( 55 ) NOT NULL; +INSERT INTO config (confname, confvalue) VALUES ('WorkingDaysWeek','5'); UPDATE config SET confvalue='4.04.5' WHERE confname='VersionNumber'; \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-19 10:21:17
|
Revision: 4602 http://web-erp.svn.sourceforge.net/web-erp/?rev=4602&view=rev Author: daintree Date: 2011-06-19 10:21:11 +0000 (Sun, 19 Jun 2011) Log Message: ----------- various Modified Paths: -------------- trunk/Credit_Invoice.php trunk/doc/Change.log Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2011-06-18 22:27:44 UTC (rev 4601) +++ trunk/Credit_Invoice.php 2011-06-19 10:21:11 UTC (rev 4602) @@ -981,7 +981,7 @@ '" . $OrderLine->QtyDispatched . "', '" . $OrderLine->DiscountPercent . "', '" . $OrderLine->StandardCost . "', - '" . ($QtyOnHandPrior +$OrderLine->QtyDispatched) . "'', + '" . ($QtyOnHandPrior +$OrderLine->QtyDispatched) . "', '" . $OrderLine->Narrative . "')"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('Stock movement records could not be inserted because'); @@ -1502,9 +1502,9 @@ $SQL="SELECT accountcode, accountname - FROM chartmaster, accountgroups - WHERE chartmaster.group_=accountgroups.groupname - AND ccountgroups.pandl=1 ORDER BY chartmaster.accountcode"; + FROM chartmaster INNER JOIN accountgroups + ON chartmaster.group_=accountgroups.groupname + WHERE accountgroups.pandl=1 ORDER BY chartmaster.accountcode"; $Result = DB_query($SQL,$db); Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-18 22:27:44 UTC (rev 4601) +++ trunk/doc/Change.log 2011-06-19 10:21:11 UTC (rev 4602) @@ -1,5 +1,6 @@ webERP Change Log +19/6/11 Phil: Credit_Invoice.php typos in quoting changes preventing posting credits on write offs also sql on gl account selection for write off 18/6/11 Phil: Made up a includes/LanguagesArray.php to contain a list of languages and the translated name of the language - updated WWW_Users.php and UserSettings.php and CustLoginSetup.php to use this array - so the selection of a language uses the language name rather than the locale codes 14/6/11 Phil: Added email to custcontacts and updated AddCustomerContacts.php SelectCustomer.php and Customers.php 13/6/11 Phil: Birthdays (xhtml/indenting/quoting/casing/decimalplaces) for Areas.php, BOMInquiry.php, BOMS.php, BankAccounts.php, BankMatching.php, COGSGLPosting.php, CompanyPreferences.php, ConfirmDispatch_Invoice.php StockLocTransfer.php This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-19 10:21:17
|
Revision: 4602 http://web-erp.svn.sourceforge.net/web-erp/?rev=4602&view=rev Author: daintree Date: 2011-06-19 10:21:11 +0000 (Sun, 19 Jun 2011) Log Message: ----------- various Modified Paths: -------------- trunk/Credit_Invoice.php trunk/doc/Change.log Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2011-06-18 22:27:44 UTC (rev 4601) +++ trunk/Credit_Invoice.php 2011-06-19 10:21:11 UTC (rev 4602) @@ -981,7 +981,7 @@ '" . $OrderLine->QtyDispatched . "', '" . $OrderLine->DiscountPercent . "', '" . $OrderLine->StandardCost . "', - '" . ($QtyOnHandPrior +$OrderLine->QtyDispatched) . "'', + '" . ($QtyOnHandPrior +$OrderLine->QtyDispatched) . "', '" . $OrderLine->Narrative . "')"; $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('Stock movement records could not be inserted because'); @@ -1502,9 +1502,9 @@ $SQL="SELECT accountcode, accountname - FROM chartmaster, accountgroups - WHERE chartmaster.group_=accountgroups.groupname - AND ccountgroups.pandl=1 ORDER BY chartmaster.accountcode"; + FROM chartmaster INNER JOIN accountgroups + ON chartmaster.group_=accountgroups.groupname + WHERE accountgroups.pandl=1 ORDER BY chartmaster.accountcode"; $Result = DB_query($SQL,$db); Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-18 22:27:44 UTC (rev 4601) +++ trunk/doc/Change.log 2011-06-19 10:21:11 UTC (rev 4602) @@ -1,5 +1,6 @@ webERP Change Log +19/6/11 Phil: Credit_Invoice.php typos in quoting changes preventing posting credits on write offs also sql on gl account selection for write off 18/6/11 Phil: Made up a includes/LanguagesArray.php to contain a list of languages and the translated name of the language - updated WWW_Users.php and UserSettings.php and CustLoginSetup.php to use this array - so the selection of a language uses the language name rather than the locale codes 14/6/11 Phil: Added email to custcontacts and updated AddCustomerContacts.php SelectCustomer.php and Customers.php 13/6/11 Phil: Birthdays (xhtml/indenting/quoting/casing/decimalplaces) for Areas.php, BOMInquiry.php, BOMS.php, BankAccounts.php, BankMatching.php, COGSGLPosting.php, CompanyPreferences.php, ConfirmDispatch_Invoice.php StockLocTransfer.php This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-21 09:29:03
|
Revision: 4603 http://web-erp.svn.sourceforge.net/web-erp/?rev=4603&view=rev Author: daintree Date: 2011-06-21 09:28:57 +0000 (Tue, 21 Jun 2011) Log Message: ----------- more explanation of postings Modified Paths: -------------- trunk/doc/Manual/ManualManufacturing.html trunk/includes/DefineCartClass.php Modified: trunk/doc/Manual/ManualManufacturing.html =================================================================== --- trunk/doc/Manual/ManualManufacturing.html 2011-06-19 10:21:11 UTC (rev 4602) +++ trunk/doc/Manual/ManualManufacturing.html 2011-06-21 09:28:57 UTC (rev 4603) @@ -33,6 +33,19 @@ <li>Closing the work order - compares the quantity of components issued against the bill of material at the time of the first receipt of the manufactured items - the volume differences are evaluated at the standard cost (as at the time of the first receipt of manufactured item) to come up with the usage variance posted to the debit or credit of the manufactured item's stock category record's usage variance account. Then the cost of the items issued to the work order are compared against the cost as at the time the first receipt of the manufactured item was entered - differences here are taken to the price variances account in the manufactured item's stock category record. It is the closing of the work order that ensures that the costs received from the work order in the form of manufacturing output equals the cost of the inputs - the various components and materials issued to the work order</li> </ul> <br /><br /> +<table border=1> +<tr><th>Event</th><th>Debit</th><th>Credit</th></tr> +<tr><td>Components issued to the work order</td><td>WIP a/ct from stock category of manufactured item</td><td>Stock account from the category of the component item</td></tr> +<tr><td>Labour issued to the work order (identical to any other component except that labour type categories have profit and loss accounts for their stock account)</td><td>WIP a/ct from stock category of manufactured item</td><td>Labour recovery account from category of the labour type item</td></tr> +<tr><td>A completed manufactured item is received against the work order</td><td>stock account from the category of the manufactured item</td><td>WIP from the category of the manufactured item</td></tr> +<tr><td>Work order closed and the difference between the WIP debits and credits from the above transactions is compared and the balance is either +<ul> +<li>Standard costing - taken to material usage variance from the stock category of the manufactured item</li> +<li>Weighted average costing - if some of the manufactured stock remains on hand the variance is taken to the stock account from the category of the manufactured item. The cost of the manufactured item is updated with the recalculated WAC</li> +</ul></td> +<td>WIP / <br />Usage variance</td><td>WIP / <br />Usage variance OR stock</td></tr> +</table> +<br /><br /> <font size="+1"><b>Work Order Entry</b></font> <br /><br /> The Work Order is the medium for issuing components/raw materials to. A running total of the costs issued to the work order is maintained. Work orders can be created that have any number of output items. Output items are restricted to only "manufactured" items as defined in the item entry form. The work order tracks the quantity of the output items received against the work order and checks that no more than the work order quantity originally set up, with an allowance including the over-receive proportion as defined for purchase orders, is received. Modified: trunk/includes/DefineCartClass.php =================================================================== --- trunk/includes/DefineCartClass.php 2011-06-19 10:21:11 UTC (rev 4602) +++ trunk/includes/DefineCartClass.php 2011-06-21 09:28:57 UTC (rev 4603) @@ -196,13 +196,13 @@ if ($UpdateDB=='Yes'){ global $db; $result = DB_query("UPDATE salesorderdetails SET quantity=" . $Qty . ", - unitprice=" . $Price . ", - discountpercent=" . $Disc . ", - narrative ='" . DB_escape_string($Narrative) . "', - itemdue = '" . FormatDateForSQL($ItemDue) . "', - poline = '" . DB_escape_string($POLine) . "' - WHERE orderno=" . $_SESSION['ExistingOrder'] . " - AND orderlineno=" . $UpdateLineNumber + unitprice=" . $Price . ", + discountpercent=" . $Disc . ", + narrative ='" . DB_escape_string($Narrative) . "', + itemdue = '" . FormatDateForSQL($ItemDue) . "', + poline = '" . DB_escape_string($POLine) . "' + WHERE orderno=" . $_SESSION['ExistingOrder'] . " + AND orderlineno=" . $UpdateLineNumber , $db , _('The order line number') . ' ' . $UpdateLineNumber . ' ' . _('could not be updated')); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-21 09:29:05
|
Revision: 4603 http://web-erp.svn.sourceforge.net/web-erp/?rev=4603&view=rev Author: daintree Date: 2011-06-21 09:28:57 +0000 (Tue, 21 Jun 2011) Log Message: ----------- more explanation of postings Modified Paths: -------------- trunk/doc/Manual/ManualManufacturing.html trunk/includes/DefineCartClass.php Modified: trunk/doc/Manual/ManualManufacturing.html =================================================================== --- trunk/doc/Manual/ManualManufacturing.html 2011-06-19 10:21:11 UTC (rev 4602) +++ trunk/doc/Manual/ManualManufacturing.html 2011-06-21 09:28:57 UTC (rev 4603) @@ -33,6 +33,19 @@ <li>Closing the work order - compares the quantity of components issued against the bill of material at the time of the first receipt of the manufactured items - the volume differences are evaluated at the standard cost (as at the time of the first receipt of manufactured item) to come up with the usage variance posted to the debit or credit of the manufactured item's stock category record's usage variance account. Then the cost of the items issued to the work order are compared against the cost as at the time the first receipt of the manufactured item was entered - differences here are taken to the price variances account in the manufactured item's stock category record. It is the closing of the work order that ensures that the costs received from the work order in the form of manufacturing output equals the cost of the inputs - the various components and materials issued to the work order</li> </ul> <br /><br /> +<table border=1> +<tr><th>Event</th><th>Debit</th><th>Credit</th></tr> +<tr><td>Components issued to the work order</td><td>WIP a/ct from stock category of manufactured item</td><td>Stock account from the category of the component item</td></tr> +<tr><td>Labour issued to the work order (identical to any other component except that labour type categories have profit and loss accounts for their stock account)</td><td>WIP a/ct from stock category of manufactured item</td><td>Labour recovery account from category of the labour type item</td></tr> +<tr><td>A completed manufactured item is received against the work order</td><td>stock account from the category of the manufactured item</td><td>WIP from the category of the manufactured item</td></tr> +<tr><td>Work order closed and the difference between the WIP debits and credits from the above transactions is compared and the balance is either +<ul> +<li>Standard costing - taken to material usage variance from the stock category of the manufactured item</li> +<li>Weighted average costing - if some of the manufactured stock remains on hand the variance is taken to the stock account from the category of the manufactured item. The cost of the manufactured item is updated with the recalculated WAC</li> +</ul></td> +<td>WIP / <br />Usage variance</td><td>WIP / <br />Usage variance OR stock</td></tr> +</table> +<br /><br /> <font size="+1"><b>Work Order Entry</b></font> <br /><br /> The Work Order is the medium for issuing components/raw materials to. A running total of the costs issued to the work order is maintained. Work orders can be created that have any number of output items. Output items are restricted to only "manufactured" items as defined in the item entry form. The work order tracks the quantity of the output items received against the work order and checks that no more than the work order quantity originally set up, with an allowance including the over-receive proportion as defined for purchase orders, is received. Modified: trunk/includes/DefineCartClass.php =================================================================== --- trunk/includes/DefineCartClass.php 2011-06-19 10:21:11 UTC (rev 4602) +++ trunk/includes/DefineCartClass.php 2011-06-21 09:28:57 UTC (rev 4603) @@ -196,13 +196,13 @@ if ($UpdateDB=='Yes'){ global $db; $result = DB_query("UPDATE salesorderdetails SET quantity=" . $Qty . ", - unitprice=" . $Price . ", - discountpercent=" . $Disc . ", - narrative ='" . DB_escape_string($Narrative) . "', - itemdue = '" . FormatDateForSQL($ItemDue) . "', - poline = '" . DB_escape_string($POLine) . "' - WHERE orderno=" . $_SESSION['ExistingOrder'] . " - AND orderlineno=" . $UpdateLineNumber + unitprice=" . $Price . ", + discountpercent=" . $Disc . ", + narrative ='" . DB_escape_string($Narrative) . "', + itemdue = '" . FormatDateForSQL($ItemDue) . "', + poline = '" . DB_escape_string($POLine) . "' + WHERE orderno=" . $_SESSION['ExistingOrder'] . " + AND orderlineno=" . $UpdateLineNumber , $db , _('The order line number') . ' ' . $UpdateLineNumber . ' ' . _('could not be updated')); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-23 09:44:12
|
Revision: 4604 http://web-erp.svn.sourceforge.net/web-erp/?rev=4604&view=rev Author: daintree Date: 2011-06-23 09:44:04 +0000 (Thu, 23 Jun 2011) Log Message: ----------- credit checks reinstated Modified Paths: -------------- trunk/AccountGroups.php trunk/PO_Items.php trunk/SelectOrderItems.php trunk/doc/Change.log trunk/includes/DefineCartClass.php trunk/includes/GetSalesTransGLCodes.inc trunk/includes/SelectOrderItems_IntoCart.inc Modified: trunk/AccountGroups.php =================================================================== --- trunk/AccountGroups.php 2011-06-21 09:28:57 UTC (rev 4603) +++ trunk/AccountGroups.php 2011-06-23 09:44:04 UTC (rev 4604) @@ -84,10 +84,10 @@ $i++; } else { $sql = "SELECT pandl, - sequenceintb, - sectioninaccounts - FROM accountgroups - WHERE groupname='" . $_POST['ParentGroupName'] . "'"; + sequenceintb, + sectioninaccounts + FROM accountgroups + WHERE groupname='" . $_POST['ParentGroupName'] . "'"; $DbgMsg = _('The SQL that was used to retrieve the information was'); $ErrMsg = _('Could not check whether the group is recursive because'); @@ -98,6 +98,7 @@ $_POST['SequenceInTB'] = $ParentGroupRow['sequenceintb']; $_POST['PandL'] = $ParentGroupRow['pandl']; $_POST['SectionInAccounts']= $ParentGroupRow['sectioninaccounts']; + prnMsg(_('Since this account group is a child group, the sequence in the trial balance, the section in the accounts and whether or not the account group appears in the balance sheet or profit and loss account are all properties inherited from the parent account group. Any changes made to these fields will have no effect.'),'warn'); } } if (!is_long((int) $_POST['SectionInAccounts'])) { Modified: trunk/PO_Items.php =================================================================== --- trunk/PO_Items.php 2011-06-21 09:28:57 UTC (rev 4603) +++ trunk/PO_Items.php 2011-06-23 09:44:04 UTC (rev 4604) @@ -515,7 +515,7 @@ foreach ($_SESSION['PO'.$identifier]->LineItems AS $OrderItem) { /* do a loop round the items on the order to see that the item is not already on this order */ - if (($OrderItem->StockID == $ItemCode) and ($OrderItem->Deleted==false)) { + if (($OrderItem->StockID == $ItemCode) AND ($OrderItem->Deleted==false)) { $AlreadyOnThisOrder = 1; prnMsg( _('The item') . ' ' . $ItemCode . ' ' . _('is already on this order') . '. ' . _('The system will not allow the same item on the order more than once') . '. ' . _('However you can change the quantity ordered of the existing line if necessary'),'error'); } @@ -524,12 +524,13 @@ } if ($AlreadyOnThisOrder!=1 AND $Quantity > 0){ $sql = "SELECT description, + longdescription, stockid, units, decimalplaces, stockact, accountname - FROM stockmaster INNER JOIN stockcategory + FROM stockmaster INNER JOIN stockcategory ON stockcategory.categoryid = stockmaster.categoryid INNER JOIN chartmaster ON chartmaster.accountcode = stockcategory.stockact @@ -548,16 +549,16 @@ suppliers_partno, leadtime, MAX(purchdata.effectivefrom) AS latesteffectivefrom - FROM purchdata - WHERE purchdata.supplierno = '" . $_SESSION['PO'.$identifier]->SupplierID . "' - AND purchdata.effectivefrom <='" . Date('Y-m-d') . "' - AND purchdata.stockid = '". $ItemCode . "' - GROUP BY purchdata.price, - purchdata.conversionfactor, - purchdata.supplierdescription, - purchdata.suppliersuom, - purchdata.suppliers_partno, - purchdata.leadtime"; + FROM purchdata + WHERE purchdata.supplierno = '" . $_SESSION['PO'.$identifier]->SupplierID . "' + AND purchdata.effectivefrom <='" . Date('Y-m-d') . "' + AND purchdata.stockid = '". $ItemCode . "' + GROUP BY purchdata.price, + purchdata.conversionfactor, + purchdata.supplierdescription, + purchdata.suppliersuom, + purchdata.suppliers_partno, + purchdata.leadtime"; $ErrMsg = _('The purchasing data for') . ' ' . $ItemCode . ' ' . _('could not be retrieved because'); $DbgMsg = _('The SQL used to retrieve the purchasing data but failed was'); Modified: trunk/SelectOrderItems.php =================================================================== --- trunk/SelectOrderItems.php 2011-06-21 09:28:57 UTC (rev 4603) +++ trunk/SelectOrderItems.php 2011-06-23 09:44:04 UTC (rev 4604) @@ -511,6 +511,7 @@ prnMsg($_SESSION['Items'.$identifier]->SpecialInstructions,'warn'); if ($_SESSION['CheckCreditLimits'] > 0){ /*Check credit limits is 1 for warn and 2 for prohibit sales */ + $_SESSION['Items'.$identifier]->CreditAvailable = GetCreditAvailable($_SESSION['Items'.$identifier]->DebtorNo,$db); if ($_SESSION['CheckCreditLimits']==1 AND $_SESSION['Items'.$identifier]->CreditAvailable <=0){ @@ -993,13 +994,13 @@ * and before that we need to add a disposal stock category - if not already created * first off get the details about the asset being disposed of */ $AssetDetailsResult = DB_query("SELECT fixedassets.description, - fixedassets.longdescription, - fixedassets.barcode, - fixedassetcategories.costact, - fixedassets.cost-fixedassets.accumdepn AS nbv - FROM fixedassetcategories INNER JOIN fixedassets - ON fixedassetcategories.categoryid=fixedassets.assetcategoryid - WHERE fixedassets.assetid='" . $_POST['AssetToDisposeOf'] . "'",$db); + fixedassets.longdescription, + fixedassets.barcode, + fixedassetcategories.costact, + fixedassets.cost-fixedassets.accumdepn AS nbv + FROM fixedassetcategories INNER JOIN fixedassets + ON fixedassetcategories.categoryid=fixedassets.assetcategoryid + WHERE fixedassets.assetid='" . $_POST['AssetToDisposeOf'] . "'",$db); $AssetRow = DB_fetch_array($AssetDetailsResult); /* Check that the stock category for disposal "ASSETS" is defined already */ @@ -1138,17 +1139,36 @@ OR $OrderLine->Narrative != $Narrative OR $OrderLine->ItemDue != $_POST['ItemDue_' . $OrderLine->LineNumber] OR $OrderLine->POLine != $_POST['POLine_' . $OrderLine->LineNumber]) { + + $WithinCreditLimit = true; + + if ($_SESSION['CheckCreditLimits'] > 0){ /*Check credit limits is 1 for warn + and 2 for prohibit sales */ + $DifferenceInOrderValue = ($Quantity*$Price*(1-$DiscountPercentage/100)) - ($OrderLine->Quantity*$OrderLine->Price*(1-$OrderLine->DiscountPercentage)); + + $_SESSION['Items'.$identifier]->CreditAvailable -= $DifferenceInOrderValue; - $_SESSION['Items'.$identifier]->update_cart_item($OrderLine->LineNumber, - $Quantity, - $Price, - ($DiscountPercentage/100), - $Narrative, - 'Yes', /*Update DB */ - $_POST['ItemDue_' . $OrderLine->LineNumber], - $_POST['POLine_' . $OrderLine->LineNumber], - $_POST['GPPercent_' . $OrderLine->LineNumber]); - } + if ($_SESSION['CheckCreditLimits']==1 AND $_SESSION['Items'.$identifier]->CreditAvailable <=0){ + prnMsg(_('The customer account will breach their credit limit'),'warn'); + } elseif ($_SESSION['CheckCreditLimits']==2 AND $_SESSION['Items'.$identifier]->CreditAvailable <=0){ + prnMsg(_('This change would put the customer over their credit limit and is prohibited'),'warn'); + $WithinCreditLimit = false; + $_SESSION['Items'.$identifier]->CreditAvailable += $DifferenceInOrderValue; + } + } + + if ($WithinCreditLimit){ + $_SESSION['Items'.$identifier]->update_cart_item($OrderLine->LineNumber, + $Quantity, + $Price, + ($DiscountPercentage/100), + $Narrative, + 'Yes', /*Update DB */ + $_POST['ItemDue_' . $OrderLine->LineNumber], + $_POST['POLine_' . $OrderLine->LineNumber], + $_POST['GPPercent_' . $OrderLine->LineNumber]); + } //within credit limit so make changes + } //there are changes to the order line to process } //page not called from itself - POST variables not set } } Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-21 09:28:57 UTC (rev 4603) +++ trunk/doc/Change.log 2011-06-23 09:44:04 UTC (rev 4604) @@ -1,5 +1,7 @@ webERP Change Log +22/6/11 Phil: Added message to AccountGroups.php to show that child account groups cannot have changes to their account section, their profit and loss or balance sheet and sequence in TB as these properties belong only to parent account groups and are inherited by the kids +23/6/11 Phil: SelectOrderItems.php includes/DefineCartClass.php repaired credit checks 19/6/11 Phil: Credit_Invoice.php typos in quoting changes preventing posting credits on write offs also sql on gl account selection for write off 18/6/11 Phil: Made up a includes/LanguagesArray.php to contain a list of languages and the translated name of the language - updated WWW_Users.php and UserSettings.php and CustLoginSetup.php to use this array - so the selection of a language uses the language name rather than the locale codes 14/6/11 Phil: Added email to custcontacts and updated AddCustomerContacts.php SelectCustomer.php and Customers.php Modified: trunk/includes/DefineCartClass.php =================================================================== --- trunk/includes/DefineCartClass.php 2011-06-21 09:28:57 UTC (rev 4603) +++ trunk/includes/DefineCartClass.php 2011-06-23 09:44:04 UTC (rev 4604) @@ -148,21 +148,21 @@ global $db; $sql = "INSERT INTO salesorderdetails (orderlineno, - orderno, - stkcode, - quantity, - unitprice, - discountpercent, - itemdue, - poline) - VALUES(" . $this->LineCounter . ", - " . $_SESSION['ExistingOrder'] . ", - '" . trim(strtoupper($StockID)) ."', - " . $Qty . ", - " . $Price . ", - " . $Disc . ",' - " . $ItemDue . "', - " . $POLine . ")"; + orderno, + stkcode, + quantity, + unitprice, + discountpercent, + itemdue, + poline) + VALUES(" . $this->LineCounter . ", + " . $_SESSION['ExistingOrder'] . ", + '" . trim(strtoupper($StockID)) ."', + " . $Qty . ", + " . $Price . ", + " . $Disc . ",' + " . $ItemDue . "', + " . $POLine . ")"; $result = DB_query($sql, $db , _('The order line for') . ' ' . strtoupper($StockID) . ' ' ._('could not be inserted')); @@ -175,14 +175,14 @@ } function update_cart_item( $UpdateLineNumber, - $Qty, - $Price, - $Disc, - $Narrative, - $UpdateDB='No', - $ItemDue, - $POLine, - $GPPercent){ + $Qty, + $Price, + $Disc, + $Narrative, + $UpdateDB='No', + $ItemDue, + $POLine, + $GPPercent){ if ($Qty>0){ $this->LineItems[$UpdateLineNumber]->Quantity = $Qty; @@ -236,6 +236,7 @@ } } /* Since we need to check the LineItem above and might affect the DB, don't unset until after DB is updates occur */ + $this->CreditAvailable += ($this->LineItems[$LineNumber]->Quantity*$this->LineItems[$LineNumber]->Price*(1-$this->LineItems[$LineNumber]->DiscountPercent)); unset($this->LineItems[$LineNumber]); $this->ItemsOrdered--; Modified: trunk/includes/GetSalesTransGLCodes.inc =================================================================== --- trunk/includes/GetSalesTransGLCodes.inc 2011-06-21 09:28:57 UTC (rev 4603) +++ trunk/includes/GetSalesTransGLCodes.inc 2011-06-23 09:44:04 UTC (rev 4604) @@ -71,7 +71,7 @@ FROM cogsglpostings WHERE area = 'AN' AND salestype='AN' - AND stkcat = '$StockCategory'"; + AND stkcat = '" . $StockCategory . "'"; $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); } @@ -81,7 +81,7 @@ DB_free_result($Result); $SQL = "SELECT glcode FROM cogsglpostings - WHERE area = '$Area' + WHERE area = '" . $Area . "' AND stkcat = 'ANY' AND salestype='AN'"; $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); @@ -112,7 +112,7 @@ /*The default if all else fails */ /*Check GL account 1 exists */ prnMsg(_('Could not determine the correct general ledger account to use for posting the cost of this sale. Go to the setup menu and define appropriate COGS (Cost Of Goods Sold) accounts. To enable this invoice to be posted it has been posted to default sales and COGS - account number 1'),'warn'); - $SQL = 'SELECT accountcode FROM chartmaster WHERE accountcode=1'; + $SQL = "SELECT accountcode FROM chartmaster WHERE accountcode=1"; $Result = DB_query($SQL,$db); if (DB_num_rows($Result)==0){ /*It doesn't exist so create it */ $Result = DB_query("SELECT groupname FROM accountgroups WHERE groupname='Sales'",$db); @@ -177,12 +177,12 @@ if (DB_num_rows($Result)==0){ DB_free_result($Result); - $SQL = "SELECT salesglcode, - discountglcode - FROM salesglpostings - WHERE area = '" . $Area . "' - AND stkcat = '" . $StockCategory . "' - AND salestype = 'AN'"; + $SQL = "SELECT salesglcode, + discountglcode + FROM salesglpostings + WHERE area = '" . $Area . "' + AND stkcat = '" . $StockCategory . "' + AND salestype = 'AN'"; $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); } @@ -190,11 +190,11 @@ if (DB_num_rows($Result)==0){ DB_free_result($Result); $SQL = "SELECT salesglcode, - discountglcode - FROM salesglpostings - WHERE area = '" . $Area . "' - AND stkcat = 'ANY' - AND salestype = '" . $SalesType . "'"; + discountglcode + FROM salesglpostings + WHERE area = '" . $Area . "' + AND stkcat = 'ANY' + AND salestype = '" . $SalesType . "'"; $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); } @@ -202,11 +202,11 @@ if (DB_num_rows($Result)==0){ DB_free_result($Result); $SQL = "SELECT salesglcode, - discountglcode - FROM salesglpostings - WHERE area = 'AN' - AND salestype='AN' - AND stkcat = '$StockCategory'"; + discountglcode + FROM salesglpostings + WHERE area = 'AN' + AND salestype='AN' + AND stkcat = '" . $StockCategory . "'"; $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); } @@ -214,11 +214,11 @@ if (DB_num_rows($Result)==0){ DB_free_result($Result); $SQL = "SELECT salesglcode, - discountglcode - FROM salesglpostings - WHERE area = '$Area' - AND stkcat = 'ANY' - AND salestype='AN'"; + discountglcode + FROM salesglpostings + WHERE area = '" . $Area . "' + AND stkcat = 'ANY' + AND salestype='AN'"; $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); } @@ -226,11 +226,11 @@ if (DB_num_rows($Result)==0) { DB_free_result($Result); $SQL = "SELECT salesglcode, - discountglcode - FROM salesglpostings - WHERE area = 'AN' - AND stkcat = 'ANY' - AND salestype = '" . $SalesType . "'"; + discountglcode + FROM salesglpostings + WHERE area = 'AN' + AND stkcat = 'ANY' + AND salestype = '" . $SalesType . "'"; $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); } @@ -238,11 +238,11 @@ DB_free_result($Result); $SQL = "SELECT salesglcode, - discountglcode - FROM salesglpostings - WHERE area = 'AN' - AND stkcat = 'ANY' - AND salestype='AN'"; + discountglcode + FROM salesglpostings + WHERE area = 'AN' + AND stkcat = 'ANY' + AND salestype='AN'"; $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); } @@ -250,30 +250,30 @@ /*The default if all else fails */ prnMsg(_('Could not determine the correct general ledger account to use for posting this sale to. Go to the setup menu and define appropriate Sale GL Posting accounts. To enable this invoice to be posted it has been posted to default sales and COGS - account number 1'),'warn'); /*Check GL account 1 exists */ - $SQL = 'SELECT accountcode FROM chartmaster WHERE accountcode=1'; + $SQL = "SELECT accountcode FROM chartmaster WHERE accountcode=1"; $Result = DB_query($SQL,$db); if (DB_num_rows($Result)==0){ /*It doesn't exist so create it */ /*First check the account group sales exists */ $Result = DB_query("SELECT groupname FROM accountgroups WHERE groupname='Sales'",$db); if (DB_num_rows($Result)==0) { - $Result = DB_query("INSERT INTO accountgroups (groupname, - sectioninaccounts, - pandl, - sequenceintb) - VALUES ('Sales', - 1, - 1, - 5)", - $db); + $Result = DB_query("INSERT INTO accountgroups (groupname, + sectioninaccounts, + pandl, + sequenceintb) + VALUES ('Sales', + 1, + 1, + 5)", + $db); } $SQL = "INSERT INTO chartmaster VALUES (1, 'Default Sales and COGS', 'Sales')"; $Result = DB_query($SQL,$db); } - return array(salesglcode=>1, - discountglcode=>1); + return array('salesglcode'=>1, + 'discountglcode'=>1); } $myrow = DB_fetch_array($Result); - Return $myrow; + return $myrow; } ?> \ No newline at end of file Modified: trunk/includes/SelectOrderItems_IntoCart.inc =================================================================== --- trunk/includes/SelectOrderItems_IntoCart.inc 2011-06-21 09:28:57 UTC (rev 4603) +++ trunk/includes/SelectOrderItems_IntoCart.inc 2011-06-23 09:44:04 UTC (rev 4604) @@ -111,24 +111,22 @@ $WithinCreditLimit = true; - if (!isset($_SESSION['WarnOnce']) and $_SESSION['Items'.$identifier]->SpecialInstructions) { + if ($_SESSION['Items'.$identifier]->SpecialInstructions) { prnMsg($_SESSION['Items'.$identifier]->SpecialInstructions,'warn'); - $WarnOnce=1; } if ($_SESSION['CheckCreditLimits'] > 0){ /*Check credit limits is 1 for warn and 2 for prohibit sales */ $_SESSION['Items'.$identifier]->CreditAvailable -= round(($NewItemQty * $Price * (1- $Discount)),2); if ($_SESSION['CheckCreditLimits']==1 AND $_SESSION['Items'.$identifier]->CreditAvailable <=0){ - if (isset($_SESSION['WarnOnce']) and $_SESSION['WarnOnce'] < 2) prnMsg(_('The customer account will breach their credit limit'),'warn'); - $_SESSION['WarnOnce']=2; + prnMsg(_('The customer account will breach their credit limit'),'warn'); } elseif ($_SESSION['CheckCreditLimits']==2 AND $_SESSION['Items'.$identifier]->CreditAvailable <=0){ prnMsg(_('No more lines can be added to this order the customer account is currently at or over their credit limit'),'warn'); $WithinCreditLimit = false; } } - if ($WithinCreditLimit ==true){ + if ($WithinCreditLimit == true){ $_SESSION['Items'.$identifier]->add_to_cart ($NewItem, $NewItemQty, $myItemRow['description'], This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-23 09:44:12
|
Revision: 4604 http://web-erp.svn.sourceforge.net/web-erp/?rev=4604&view=rev Author: daintree Date: 2011-06-23 09:44:04 +0000 (Thu, 23 Jun 2011) Log Message: ----------- credit checks reinstated Modified Paths: -------------- trunk/AccountGroups.php trunk/PO_Items.php trunk/SelectOrderItems.php trunk/doc/Change.log trunk/includes/DefineCartClass.php trunk/includes/GetSalesTransGLCodes.inc trunk/includes/SelectOrderItems_IntoCart.inc Modified: trunk/AccountGroups.php =================================================================== --- trunk/AccountGroups.php 2011-06-21 09:28:57 UTC (rev 4603) +++ trunk/AccountGroups.php 2011-06-23 09:44:04 UTC (rev 4604) @@ -84,10 +84,10 @@ $i++; } else { $sql = "SELECT pandl, - sequenceintb, - sectioninaccounts - FROM accountgroups - WHERE groupname='" . $_POST['ParentGroupName'] . "'"; + sequenceintb, + sectioninaccounts + FROM accountgroups + WHERE groupname='" . $_POST['ParentGroupName'] . "'"; $DbgMsg = _('The SQL that was used to retrieve the information was'); $ErrMsg = _('Could not check whether the group is recursive because'); @@ -98,6 +98,7 @@ $_POST['SequenceInTB'] = $ParentGroupRow['sequenceintb']; $_POST['PandL'] = $ParentGroupRow['pandl']; $_POST['SectionInAccounts']= $ParentGroupRow['sectioninaccounts']; + prnMsg(_('Since this account group is a child group, the sequence in the trial balance, the section in the accounts and whether or not the account group appears in the balance sheet or profit and loss account are all properties inherited from the parent account group. Any changes made to these fields will have no effect.'),'warn'); } } if (!is_long((int) $_POST['SectionInAccounts'])) { Modified: trunk/PO_Items.php =================================================================== --- trunk/PO_Items.php 2011-06-21 09:28:57 UTC (rev 4603) +++ trunk/PO_Items.php 2011-06-23 09:44:04 UTC (rev 4604) @@ -515,7 +515,7 @@ foreach ($_SESSION['PO'.$identifier]->LineItems AS $OrderItem) { /* do a loop round the items on the order to see that the item is not already on this order */ - if (($OrderItem->StockID == $ItemCode) and ($OrderItem->Deleted==false)) { + if (($OrderItem->StockID == $ItemCode) AND ($OrderItem->Deleted==false)) { $AlreadyOnThisOrder = 1; prnMsg( _('The item') . ' ' . $ItemCode . ' ' . _('is already on this order') . '. ' . _('The system will not allow the same item on the order more than once') . '. ' . _('However you can change the quantity ordered of the existing line if necessary'),'error'); } @@ -524,12 +524,13 @@ } if ($AlreadyOnThisOrder!=1 AND $Quantity > 0){ $sql = "SELECT description, + longdescription, stockid, units, decimalplaces, stockact, accountname - FROM stockmaster INNER JOIN stockcategory + FROM stockmaster INNER JOIN stockcategory ON stockcategory.categoryid = stockmaster.categoryid INNER JOIN chartmaster ON chartmaster.accountcode = stockcategory.stockact @@ -548,16 +549,16 @@ suppliers_partno, leadtime, MAX(purchdata.effectivefrom) AS latesteffectivefrom - FROM purchdata - WHERE purchdata.supplierno = '" . $_SESSION['PO'.$identifier]->SupplierID . "' - AND purchdata.effectivefrom <='" . Date('Y-m-d') . "' - AND purchdata.stockid = '". $ItemCode . "' - GROUP BY purchdata.price, - purchdata.conversionfactor, - purchdata.supplierdescription, - purchdata.suppliersuom, - purchdata.suppliers_partno, - purchdata.leadtime"; + FROM purchdata + WHERE purchdata.supplierno = '" . $_SESSION['PO'.$identifier]->SupplierID . "' + AND purchdata.effectivefrom <='" . Date('Y-m-d') . "' + AND purchdata.stockid = '". $ItemCode . "' + GROUP BY purchdata.price, + purchdata.conversionfactor, + purchdata.supplierdescription, + purchdata.suppliersuom, + purchdata.suppliers_partno, + purchdata.leadtime"; $ErrMsg = _('The purchasing data for') . ' ' . $ItemCode . ' ' . _('could not be retrieved because'); $DbgMsg = _('The SQL used to retrieve the purchasing data but failed was'); Modified: trunk/SelectOrderItems.php =================================================================== --- trunk/SelectOrderItems.php 2011-06-21 09:28:57 UTC (rev 4603) +++ trunk/SelectOrderItems.php 2011-06-23 09:44:04 UTC (rev 4604) @@ -511,6 +511,7 @@ prnMsg($_SESSION['Items'.$identifier]->SpecialInstructions,'warn'); if ($_SESSION['CheckCreditLimits'] > 0){ /*Check credit limits is 1 for warn and 2 for prohibit sales */ + $_SESSION['Items'.$identifier]->CreditAvailable = GetCreditAvailable($_SESSION['Items'.$identifier]->DebtorNo,$db); if ($_SESSION['CheckCreditLimits']==1 AND $_SESSION['Items'.$identifier]->CreditAvailable <=0){ @@ -993,13 +994,13 @@ * and before that we need to add a disposal stock category - if not already created * first off get the details about the asset being disposed of */ $AssetDetailsResult = DB_query("SELECT fixedassets.description, - fixedassets.longdescription, - fixedassets.barcode, - fixedassetcategories.costact, - fixedassets.cost-fixedassets.accumdepn AS nbv - FROM fixedassetcategories INNER JOIN fixedassets - ON fixedassetcategories.categoryid=fixedassets.assetcategoryid - WHERE fixedassets.assetid='" . $_POST['AssetToDisposeOf'] . "'",$db); + fixedassets.longdescription, + fixedassets.barcode, + fixedassetcategories.costact, + fixedassets.cost-fixedassets.accumdepn AS nbv + FROM fixedassetcategories INNER JOIN fixedassets + ON fixedassetcategories.categoryid=fixedassets.assetcategoryid + WHERE fixedassets.assetid='" . $_POST['AssetToDisposeOf'] . "'",$db); $AssetRow = DB_fetch_array($AssetDetailsResult); /* Check that the stock category for disposal "ASSETS" is defined already */ @@ -1138,17 +1139,36 @@ OR $OrderLine->Narrative != $Narrative OR $OrderLine->ItemDue != $_POST['ItemDue_' . $OrderLine->LineNumber] OR $OrderLine->POLine != $_POST['POLine_' . $OrderLine->LineNumber]) { + + $WithinCreditLimit = true; + + if ($_SESSION['CheckCreditLimits'] > 0){ /*Check credit limits is 1 for warn + and 2 for prohibit sales */ + $DifferenceInOrderValue = ($Quantity*$Price*(1-$DiscountPercentage/100)) - ($OrderLine->Quantity*$OrderLine->Price*(1-$OrderLine->DiscountPercentage)); + + $_SESSION['Items'.$identifier]->CreditAvailable -= $DifferenceInOrderValue; - $_SESSION['Items'.$identifier]->update_cart_item($OrderLine->LineNumber, - $Quantity, - $Price, - ($DiscountPercentage/100), - $Narrative, - 'Yes', /*Update DB */ - $_POST['ItemDue_' . $OrderLine->LineNumber], - $_POST['POLine_' . $OrderLine->LineNumber], - $_POST['GPPercent_' . $OrderLine->LineNumber]); - } + if ($_SESSION['CheckCreditLimits']==1 AND $_SESSION['Items'.$identifier]->CreditAvailable <=0){ + prnMsg(_('The customer account will breach their credit limit'),'warn'); + } elseif ($_SESSION['CheckCreditLimits']==2 AND $_SESSION['Items'.$identifier]->CreditAvailable <=0){ + prnMsg(_('This change would put the customer over their credit limit and is prohibited'),'warn'); + $WithinCreditLimit = false; + $_SESSION['Items'.$identifier]->CreditAvailable += $DifferenceInOrderValue; + } + } + + if ($WithinCreditLimit){ + $_SESSION['Items'.$identifier]->update_cart_item($OrderLine->LineNumber, + $Quantity, + $Price, + ($DiscountPercentage/100), + $Narrative, + 'Yes', /*Update DB */ + $_POST['ItemDue_' . $OrderLine->LineNumber], + $_POST['POLine_' . $OrderLine->LineNumber], + $_POST['GPPercent_' . $OrderLine->LineNumber]); + } //within credit limit so make changes + } //there are changes to the order line to process } //page not called from itself - POST variables not set } } Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-21 09:28:57 UTC (rev 4603) +++ trunk/doc/Change.log 2011-06-23 09:44:04 UTC (rev 4604) @@ -1,5 +1,7 @@ webERP Change Log +22/6/11 Phil: Added message to AccountGroups.php to show that child account groups cannot have changes to their account section, their profit and loss or balance sheet and sequence in TB as these properties belong only to parent account groups and are inherited by the kids +23/6/11 Phil: SelectOrderItems.php includes/DefineCartClass.php repaired credit checks 19/6/11 Phil: Credit_Invoice.php typos in quoting changes preventing posting credits on write offs also sql on gl account selection for write off 18/6/11 Phil: Made up a includes/LanguagesArray.php to contain a list of languages and the translated name of the language - updated WWW_Users.php and UserSettings.php and CustLoginSetup.php to use this array - so the selection of a language uses the language name rather than the locale codes 14/6/11 Phil: Added email to custcontacts and updated AddCustomerContacts.php SelectCustomer.php and Customers.php Modified: trunk/includes/DefineCartClass.php =================================================================== --- trunk/includes/DefineCartClass.php 2011-06-21 09:28:57 UTC (rev 4603) +++ trunk/includes/DefineCartClass.php 2011-06-23 09:44:04 UTC (rev 4604) @@ -148,21 +148,21 @@ global $db; $sql = "INSERT INTO salesorderdetails (orderlineno, - orderno, - stkcode, - quantity, - unitprice, - discountpercent, - itemdue, - poline) - VALUES(" . $this->LineCounter . ", - " . $_SESSION['ExistingOrder'] . ", - '" . trim(strtoupper($StockID)) ."', - " . $Qty . ", - " . $Price . ", - " . $Disc . ",' - " . $ItemDue . "', - " . $POLine . ")"; + orderno, + stkcode, + quantity, + unitprice, + discountpercent, + itemdue, + poline) + VALUES(" . $this->LineCounter . ", + " . $_SESSION['ExistingOrder'] . ", + '" . trim(strtoupper($StockID)) ."', + " . $Qty . ", + " . $Price . ", + " . $Disc . ",' + " . $ItemDue . "', + " . $POLine . ")"; $result = DB_query($sql, $db , _('The order line for') . ' ' . strtoupper($StockID) . ' ' ._('could not be inserted')); @@ -175,14 +175,14 @@ } function update_cart_item( $UpdateLineNumber, - $Qty, - $Price, - $Disc, - $Narrative, - $UpdateDB='No', - $ItemDue, - $POLine, - $GPPercent){ + $Qty, + $Price, + $Disc, + $Narrative, + $UpdateDB='No', + $ItemDue, + $POLine, + $GPPercent){ if ($Qty>0){ $this->LineItems[$UpdateLineNumber]->Quantity = $Qty; @@ -236,6 +236,7 @@ } } /* Since we need to check the LineItem above and might affect the DB, don't unset until after DB is updates occur */ + $this->CreditAvailable += ($this->LineItems[$LineNumber]->Quantity*$this->LineItems[$LineNumber]->Price*(1-$this->LineItems[$LineNumber]->DiscountPercent)); unset($this->LineItems[$LineNumber]); $this->ItemsOrdered--; Modified: trunk/includes/GetSalesTransGLCodes.inc =================================================================== --- trunk/includes/GetSalesTransGLCodes.inc 2011-06-21 09:28:57 UTC (rev 4603) +++ trunk/includes/GetSalesTransGLCodes.inc 2011-06-23 09:44:04 UTC (rev 4604) @@ -71,7 +71,7 @@ FROM cogsglpostings WHERE area = 'AN' AND salestype='AN' - AND stkcat = '$StockCategory'"; + AND stkcat = '" . $StockCategory . "'"; $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); } @@ -81,7 +81,7 @@ DB_free_result($Result); $SQL = "SELECT glcode FROM cogsglpostings - WHERE area = '$Area' + WHERE area = '" . $Area . "' AND stkcat = 'ANY' AND salestype='AN'"; $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); @@ -112,7 +112,7 @@ /*The default if all else fails */ /*Check GL account 1 exists */ prnMsg(_('Could not determine the correct general ledger account to use for posting the cost of this sale. Go to the setup menu and define appropriate COGS (Cost Of Goods Sold) accounts. To enable this invoice to be posted it has been posted to default sales and COGS - account number 1'),'warn'); - $SQL = 'SELECT accountcode FROM chartmaster WHERE accountcode=1'; + $SQL = "SELECT accountcode FROM chartmaster WHERE accountcode=1"; $Result = DB_query($SQL,$db); if (DB_num_rows($Result)==0){ /*It doesn't exist so create it */ $Result = DB_query("SELECT groupname FROM accountgroups WHERE groupname='Sales'",$db); @@ -177,12 +177,12 @@ if (DB_num_rows($Result)==0){ DB_free_result($Result); - $SQL = "SELECT salesglcode, - discountglcode - FROM salesglpostings - WHERE area = '" . $Area . "' - AND stkcat = '" . $StockCategory . "' - AND salestype = 'AN'"; + $SQL = "SELECT salesglcode, + discountglcode + FROM salesglpostings + WHERE area = '" . $Area . "' + AND stkcat = '" . $StockCategory . "' + AND salestype = 'AN'"; $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); } @@ -190,11 +190,11 @@ if (DB_num_rows($Result)==0){ DB_free_result($Result); $SQL = "SELECT salesglcode, - discountglcode - FROM salesglpostings - WHERE area = '" . $Area . "' - AND stkcat = 'ANY' - AND salestype = '" . $SalesType . "'"; + discountglcode + FROM salesglpostings + WHERE area = '" . $Area . "' + AND stkcat = 'ANY' + AND salestype = '" . $SalesType . "'"; $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); } @@ -202,11 +202,11 @@ if (DB_num_rows($Result)==0){ DB_free_result($Result); $SQL = "SELECT salesglcode, - discountglcode - FROM salesglpostings - WHERE area = 'AN' - AND salestype='AN' - AND stkcat = '$StockCategory'"; + discountglcode + FROM salesglpostings + WHERE area = 'AN' + AND salestype='AN' + AND stkcat = '" . $StockCategory . "'"; $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); } @@ -214,11 +214,11 @@ if (DB_num_rows($Result)==0){ DB_free_result($Result); $SQL = "SELECT salesglcode, - discountglcode - FROM salesglpostings - WHERE area = '$Area' - AND stkcat = 'ANY' - AND salestype='AN'"; + discountglcode + FROM salesglpostings + WHERE area = '" . $Area . "' + AND stkcat = 'ANY' + AND salestype='AN'"; $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); } @@ -226,11 +226,11 @@ if (DB_num_rows($Result)==0) { DB_free_result($Result); $SQL = "SELECT salesglcode, - discountglcode - FROM salesglpostings - WHERE area = 'AN' - AND stkcat = 'ANY' - AND salestype = '" . $SalesType . "'"; + discountglcode + FROM salesglpostings + WHERE area = 'AN' + AND stkcat = 'ANY' + AND salestype = '" . $SalesType . "'"; $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); } @@ -238,11 +238,11 @@ DB_free_result($Result); $SQL = "SELECT salesglcode, - discountglcode - FROM salesglpostings - WHERE area = 'AN' - AND stkcat = 'ANY' - AND salestype='AN'"; + discountglcode + FROM salesglpostings + WHERE area = 'AN' + AND stkcat = 'ANY' + AND salestype='AN'"; $Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg); } @@ -250,30 +250,30 @@ /*The default if all else fails */ prnMsg(_('Could not determine the correct general ledger account to use for posting this sale to. Go to the setup menu and define appropriate Sale GL Posting accounts. To enable this invoice to be posted it has been posted to default sales and COGS - account number 1'),'warn'); /*Check GL account 1 exists */ - $SQL = 'SELECT accountcode FROM chartmaster WHERE accountcode=1'; + $SQL = "SELECT accountcode FROM chartmaster WHERE accountcode=1"; $Result = DB_query($SQL,$db); if (DB_num_rows($Result)==0){ /*It doesn't exist so create it */ /*First check the account group sales exists */ $Result = DB_query("SELECT groupname FROM accountgroups WHERE groupname='Sales'",$db); if (DB_num_rows($Result)==0) { - $Result = DB_query("INSERT INTO accountgroups (groupname, - sectioninaccounts, - pandl, - sequenceintb) - VALUES ('Sales', - 1, - 1, - 5)", - $db); + $Result = DB_query("INSERT INTO accountgroups (groupname, + sectioninaccounts, + pandl, + sequenceintb) + VALUES ('Sales', + 1, + 1, + 5)", + $db); } $SQL = "INSERT INTO chartmaster VALUES (1, 'Default Sales and COGS', 'Sales')"; $Result = DB_query($SQL,$db); } - return array(salesglcode=>1, - discountglcode=>1); + return array('salesglcode'=>1, + 'discountglcode'=>1); } $myrow = DB_fetch_array($Result); - Return $myrow; + return $myrow; } ?> \ No newline at end of file Modified: trunk/includes/SelectOrderItems_IntoCart.inc =================================================================== --- trunk/includes/SelectOrderItems_IntoCart.inc 2011-06-21 09:28:57 UTC (rev 4603) +++ trunk/includes/SelectOrderItems_IntoCart.inc 2011-06-23 09:44:04 UTC (rev 4604) @@ -111,24 +111,22 @@ $WithinCreditLimit = true; - if (!isset($_SESSION['WarnOnce']) and $_SESSION['Items'.$identifier]->SpecialInstructions) { + if ($_SESSION['Items'.$identifier]->SpecialInstructions) { prnMsg($_SESSION['Items'.$identifier]->SpecialInstructions,'warn'); - $WarnOnce=1; } if ($_SESSION['CheckCreditLimits'] > 0){ /*Check credit limits is 1 for warn and 2 for prohibit sales */ $_SESSION['Items'.$identifier]->CreditAvailable -= round(($NewItemQty * $Price * (1- $Discount)),2); if ($_SESSION['CheckCreditLimits']==1 AND $_SESSION['Items'.$identifier]->CreditAvailable <=0){ - if (isset($_SESSION['WarnOnce']) and $_SESSION['WarnOnce'] < 2) prnMsg(_('The customer account will breach their credit limit'),'warn'); - $_SESSION['WarnOnce']=2; + prnMsg(_('The customer account will breach their credit limit'),'warn'); } elseif ($_SESSION['CheckCreditLimits']==2 AND $_SESSION['Items'.$identifier]->CreditAvailable <=0){ prnMsg(_('No more lines can be added to this order the customer account is currently at or over their credit limit'),'warn'); $WithinCreditLimit = false; } } - if ($WithinCreditLimit ==true){ + if ($WithinCreditLimit == true){ $_SESSION['Items'.$identifier]->add_to_cart ($NewItem, $NewItemQty, $myItemRow['description'], This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-25 10:55:09
|
Revision: 4605 http://web-erp.svn.sourceforge.net/web-erp/?rev=4605&view=rev Author: daintree Date: 2011-06-25 10:55:02 +0000 (Sat, 25 Jun 2011) Log Message: ----------- multiple line PO descriptions Modified Paths: -------------- trunk/ContractBOM.php trunk/ContractCosting.php trunk/Contracts.php trunk/Credit_Invoice.php trunk/PO_PDFPurchOrder.php trunk/SalesInquiry.php trunk/SupplierCredit.php trunk/includes/class.pdf.php Modified: trunk/ContractBOM.php =================================================================== --- trunk/ContractBOM.php 2011-06-23 09:44:04 UTC (rev 4604) +++ trunk/ContractBOM.php 2011-06-25 10:55:02 UTC (rev 4605) @@ -19,8 +19,6 @@ } include('includes/header.inc'); -$Maximum_Number_Of_Parts_To_Show=50; - if (isset($_POST['UpdateLines']) OR isset($_POST['BackToHeader'])) { if($_SESSION['Contract'.$identifier]->Status!=2){ //dont do anything if the customer has committed to the contract foreach ($_SESSION['Contract'.$identifier]->ContractBOM as $ContractComponent) { @@ -201,11 +199,11 @@ if ($myrow = DB_fetch_array($result1)){ $_SESSION['Contract'.$identifier]->Add_To_ContractBOM ($ItemCode, - $myrow['description'], - $DefaultWorkCentre, - $Quantity, /* Qty */ - $myrow['unitcost'], - $myrow['units']); + $myrow['description'], + $DefaultWorkCentre, + $Quantity, /* Qty */ + $myrow['unitcost'], + $myrow['units']); } else { prnMsg (_('The item code') . ' ' . $ItemCode . ' ' . _('does not exist in the database and therefore cannot be added to the contract BOM'),'error'); if ($debug==1){ @@ -375,18 +373,17 @@ </tr>'; $PartsDisplayed++; - if ($PartsDisplayed == $Maximum_Number_Of_Parts_To_Show){ + if ($PartsDisplayed == $_SESSION['DisplayRecordsMax']){ break; } #end of page full new headings if } #end of while loop echo '</table>'; - if ($PartsDisplayed == $Maximum_Number_Of_Parts_To_Show){ + if ($PartsDisplayed == $_SESSION['DisplayRecordsMax']){ - /*$Maximum_Number_Of_Parts_To_Show defined in config.php */ - prnMsg( _('Only the first') . ' ' . $Maximum_Number_Of_Parts_To_Show . ' ' . _('can be displayed') . '. ' . + prnMsg( _('Only the first') . ' ' . $_SESSION['DisplayRecordsMax'] . ' ' . _('can be displayed') . '. ' . _('Please restrict your search to only the parts required'),'info'); } echo '<br /><div class="centre"><input type="submit" name="NewItem" value="' . _('Add to Contract Bill Of Material') .'" /></div>'; Modified: trunk/ContractCosting.php =================================================================== --- trunk/ContractCosting.php 2011-06-23 09:44:04 UTC (rev 4604) +++ trunk/ContractCosting.php 2011-06-25 10:55:02 UTC (rev 4605) @@ -64,11 +64,15 @@ echo '<table class="selection"> <tr> <th colspan="6">' . _('Original Costing') .'</th> - <th colspan="6">' . _('Actual Costs') .'</th></tr>'; + <th colspan="6">' . _('Actual Costs') .'</th> + </tr>'; -echo '<tr><th colspan="12">' . _('Inventory Required') . '</th></tr>'; +echo '<tr> + <th colspan="12">' . _('Inventory Required') . '</th> + </tr>'; -echo '<tr><th>' . _('Item Code') . '</th> +echo '<tr> + <th>' . _('Item Code') . '</th> <th>' . _('Item Description') . '</th> <th>' . _('Quantity') . '</th> <th>' . _('Unit') . '</th> @@ -81,56 +85,70 @@ <th>' . _('Unit Cost') . '</th> <th>' . _('Total Cost') . '</th> </tr>'; + $ContractBOMBudget = 0; $ContractBOMActual = 0; foreach ($_SESSION['Contract'.$identifier]->ContractBOM as $Component) { - echo '<tr><td>' . $Component->StockID . '</td> - <td>' . $Component->ItemDescription . '</td> - <td class="number">' . $Component->Quantity . '</td> - <td>' . $Component->UOM . '</td> - <td class="number">' . number_format($Component->ItemCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> - <td class="number">' . number_format(($Component->ItemCost * $Component->Quantity),$_SESSION['CompanyRecord']['decimalplaces']) . '</td>'; + echo '<tr> + <td>' . $Component->StockID . '</td> + <td>' . $Component->ItemDescription . '</td> + <td class="number">' . $Component->Quantity . '</td> + <td>' . $Component->UOM . '</td> + <td class="number">' . number_format($Component->ItemCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> + <td class="number">' . number_format(($Component->ItemCost * $Component->Quantity),$_SESSION['CompanyRecord']['decimalplaces']) . '</td>'; + $ContractBOMBudget += ($Component->ItemCost * $Component->Quantity); + if (isset($InventoryIssues[$Component->StockID])){ $InventoryIssues[$Component->StockID]->Matched=1; echo '<td colspan="2" align="center">' . _('Actual usage') . '</td> - <td class="number">' . -$InventoryIssues[$Component->StockID]->Quantity . '</td> - <td>' . $InventoryIssues[$Component->StockID]->Units . '</td> - <td class="number">' . number_format($InventoryIssues[$Component->StockID]->TotalCost/$InventoryIssues[$Component->StockID]->Quantity,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> - <td>' . number_format(-$InventoryIssues[$Component->StockID]->TotalCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</td></tr>'; + <td class="number">' . -$InventoryIssues[$Component->StockID]->Quantity . '</td> + <td>' . $InventoryIssues[$Component->StockID]->Units . '</td> + <td class="number">' . number_format($InventoryIssues[$Component->StockID]->TotalCost/$InventoryIssues[$Component->StockID]->Quantity,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> + <td>' . number_format(-$InventoryIssues[$Component->StockID]->TotalCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> + </tr>'; } else { - echo '<td colspan="6"></td></tr>'; + echo '<td colspan="6"></td> + </tr>'; } } foreach ($InventoryIssues as $Component) { //actual inventory components used $ContractBOMActual -=$Component->TotalCost; if ($Component->Matched == 0) { //then its a component that wasn't budget for - echo '<tr><td colspan="6"></td> + echo '<tr> + <td colspan="6"></td> <td>' . $Component->StockID . '</td> <td>' . $Component->Description . '</td> <td class="number">' . -$Component->Quantity . '</td> <td>' . $Component->Units . '</td> <td class="number">' . number_format($Component->TotalCost/$Component->Quantity,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> - <td class="number">' . number_format(-$Component->TotalCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</td></tr>'; + <td class="number">' . number_format(-$Component->TotalCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> + </tr>'; } //end if its a component not originally budget for } -echo '<tr><td class="number" colspan="5">' . _('Total Inventory Budgeted Cost') . ':</td> +echo '<tr> + <td class="number" colspan="5">' . _('Total Inventory Budgeted Cost') . ':</td> <td class="number">' . number_format($ContractBOMBudget,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> <td class="number" colspan="5">' . _('Total Inventory Actual Cost') . ':</td> - <td class="number">' . number_format($ContractBOMActual,$_SESSION['CompanyRecord']['decimalplaces']) . '</td></tr>'; + <td class="number">' . number_format($ContractBOMActual,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> + </tr>'; -echo '<tr><th colspan="12" align="center">' . _('Other Costs') . '</th></tr>'; +echo '<tr> + <th colspan="12" align="center">' . _('Other Costs') . '</th> + </tr>'; $OtherReqtsBudget = 0; //other requirements budget sub-table -echo '<tr><td colspan="6"><table class="selection"> - <tr><th>' . _('Requirement') . '</th> - <th>' . _('Quantity') . '</th> - <th>' . _('Unit Cost') . '</th> - <th>' . _('Total Cost') . '</th> - </tr>'; +echo '<tr> + <td colspan="6"><table class="selection"> + <tr> + <th>' . _('Requirement') . '</th> + <th>' . _('Quantity') . '</th> + <th>' . _('Unit Cost') . '</th> + <th>' . _('Total Cost') . '</th> + </tr>'; foreach ($_SESSION['Contract'.$identifier]->ContractReqts as $Requirement) { echo '<tr><td>' . $Requirement->Requirement . '</td> Modified: trunk/Contracts.php =================================================================== --- trunk/Contracts.php 2011-06-23 09:44:04 UTC (rev 4604) +++ trunk/Contracts.php 2011-06-25 10:55:02 UTC (rev 4605) @@ -38,21 +38,21 @@ } if (isset($_GET['NewContract']) AND isset($_GET['SelectedCustomer'])) { - /* - * initialize a new contract - */ - $_SESSION['ExistingContract']=0; - unset($_SESSION['Contract'.$identifier]->ContractBOM); - unset($_SESSION['Contract'.$identifier]->ContractReqts); - unset($_SESSION['Contract'.$identifier]); - /* initialize new class object */ - $_SESSION['Contract'.$identifier] = new Contract; + /* + * initialize a new contract + */ + $_SESSION['ExistingContract']=0; + unset($_SESSION['Contract'.$identifier]->ContractBOM); + unset($_SESSION['Contract'.$identifier]->ContractReqts); + unset($_SESSION['Contract'.$identifier]); + /* initialize new class object */ + $_SESSION['Contract'.$identifier] = new Contract; - $_POST['SelectedCustomer'] = $_GET['SelectedCustomer']; + $_POST['SelectedCustomer'] = $_GET['SelectedCustomer']; - /*The customer is checked for credit and the Contract Object populated - * using the usual logic of when a customer is selected - * */ + /*The customer is checked for credit and the Contract Object populated + * using the usual logic of when a customer is selected + * */ } if (isset($_SESSION['Contract'.$identifier]) AND @@ -139,9 +139,9 @@ if (isset($_GET['ModifyContractRef'])){ if (isset($_SESSION['Contract'.$identifier])){ - unset ($_SESSION['Contract'.$identifier]->ContractBOM); - unset ($_SESSION['Contract'.$identifier]->ContractReqts); - unset ($_SESSION['Contract'.$identifier]); + unset ($_SESSION['Contract'.$identifier]->ContractBOM); + unset ($_SESSION['Contract'.$identifier]->ContractReqts); + unset ($_SESSION['Contract'.$identifier]); } $_SESSION['ExistingContract']=$_GET['ModifyContractRef']; @@ -178,7 +178,7 @@ if ($_SESSION['Contract'.$identifier]->Status==1){ $sql = "DELETE FROM salesorderdetails WHERE orderno='" . $_SESSION['Contract'.$identifier]->OrderNo . "'"; - $ErrMsg = _('The quotation line for the contract could not be deleted because'); + $ErrMsg = _('The quotation lines for the contract could not be deleted because'); $DelResult=DB_query($sql,$db,$ErrMsg); $sql = "DELETE FROM salesorders WHERE orderno='" . $_SESSION['Contract'.$identifier]->OrderNo . "'"; $ErrMsg = _('The quotation for the contract could not be deleted because'); @@ -220,11 +220,11 @@ //First update the session['Contract'.$identifier] variable with all inputs from the form $InputError = False; //assume no errors on input then test for errors - if (strlen($_POST['ContractRef'])<2){ + if (strlen($_POST['ContractRef']) < 2){ prnMsg(_('The contract reference is expected to be more than 2 characters long. Please alter the contract reference before proceeding.'),'error'); $InputError = true; } - if(ContainsIllegalCharacters($_POST['ContractRef'])){ + if(ContainsIllegalCharacters($_POST['ContractRef']) OR strpos($_POST['ContractRef'],' ')>0){ prnMsg(_('The contract reference cannot contain any spaces, slashes, or inverted commas. Please alter the contract reference before proceeding.'),'error'); $InputError = true; } @@ -807,7 +807,7 @@ //end of page full new headings if } //end of while loop - echo '<input type="hidden" name="JustSelectedACustomer" value="Yes">'; + echo '<input type="hidden" name="JustSelectedACustomer" value="Yes" />'; echo '</table></form>'; @@ -938,7 +938,9 @@ <th>' . _('Quantity') . '</th> <th>' . _('Unit') . '</th> <th>' . _('Unit Cost') . '</th> - <th>' . _('Total Cost') . '</th></tr>'; + <th>' . _('Total Cost') . '</th> + </tr>'; + foreach ($_SESSION['Contract'.$identifier]->ContractBOM as $Component) { echo '<tr><td>' . $Component->StockID . '</td> <td>' . $Component->ItemDescription . '</td> @@ -949,22 +951,32 @@ </tr>'; $ContractBOMCost += ($Component->ItemCost * $Component->Quantity); } - echo '<tr><th colspan="5"><b>' . _('Total stock cost') . '</b></th> - <th class="number"><b>' . number_format($ContractBOMCost,2) . '</b></th></tr>'; + echo '<tr> + <th colspan="5"><b>' . _('Total stock cost') . '</b></th> + <th class="number"><b>' . number_format($ContractBOMCost,2) . '</b></th> + </tr>'; } else { //there are no items set up against this contract - echo '<tr><td colspan="6"><i>' . _('None Entered') . '</i></td></tr>'; + echo '<tr> + <td colspan="6"><i>' . _('None Entered') . '</i></td> + </tr>'; } echo '</table></td>'; //end of contract BOM table echo '<td valign="top"> - <table class="selection"><tr><th colspan="4">' . _('Other Requirements') . '</th></tr>'; + <table class="selection"> + <tr> + <th colspan="4">' . _('Other Requirements') . '</th> + </tr>'; $ContractReqtsCost = 0; if (count($_SESSION['Contract'.$identifier]->ContractReqts)!=0){ - echo '<tr><th>' . _('Requirement') . '</th> - <th>' . _('Quantity') . '</th> - <th>' . _('Unit Cost') . '</th> - <th>' . _('Total Cost') . '</th></tr>'; + echo '<tr> + <th>' . _('Requirement') . '</th> + <th>' . _('Quantity') . '</th> + <th>' . _('Unit Cost') . '</th> + <th>' . _('Total Cost') . '</th> + </tr>'; foreach ($_SESSION['Contract'.$identifier]->ContractReqts as $Requirement) { - echo '<tr><td>' . $Requirement->Requirement . '</td> + echo '<tr> + <td>' . $Requirement->Requirement . '</td> <td class="number">' . $Requirement->Quantity . '</td> <td class="number">' . $Requirement->CostPerUnit . '</td> <td class="number">' . number_format(($Requirement->CostPerUnit * $Requirement->Quantity),2) . '</td> Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2011-06-23 09:44:04 UTC (rev 4604) +++ trunk/Credit_Invoice.php 2011-06-25 10:55:02 UTC (rev 4605) @@ -1523,7 +1523,7 @@ } $j++; echo '<tr><td>' . _('Credit note text') . '</td><td><textarea tabindex=' . $j . ' name=CreditText cols=31 rows=5>' . $_POST['CreditText'] . '</textarea></td></tr>'; - echo '</table><br /><div class="centre"><input tabindex=' . $j . ' type=submit name=Update Value=' . _('Update') . '><p>'; + echo '</table><br /><div class="centre"><input tabindex=' . $j . ' type=submit name=Update value=' . _('Update') . '><p>'; $j++; echo '<input type="submit" tabindex='.$j++.' name="ProcessCredit" Value="' . _('Process Credit') .'"></div>'; } Modified: trunk/PO_PDFPurchOrder.php =================================================================== --- trunk/PO_PDFPurchOrder.php 2011-06-23 09:44:04 UTC (rev 4604) +++ trunk/PO_PDFPurchOrder.php 2011-06-25 10:55:02 UTC (rev 4605) @@ -245,6 +245,16 @@ $OrderTotal += ($POLine['unitprice']*$POLine['quantityord']); $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column1->x,$YPos,$FormDesign->Data->Column1->Length,$FormDesign->Data->Column1->FontSize,$POLine['itemcode'], 'left'); $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column2->x,$YPos,$FormDesign->Data->Column2->Length,$FormDesign->Data->Column2->FontSize,$Desc, 'left'); + while (strlen($LeftOvers) > 1){ + $YPos-=$line_height; + if ($YPos-$line_height <= $Bottom_Margin){ + /* We reached the end of the page so finsih off the page and start a newy */ + $PageNumber++; + $YPos=$Page_Height - $FormDesign->Data->y; + include ('includes/PO_PDFOrderPageHeader.inc'); + } + $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column2->x,$YPos,$FormDesign->Data->Column2->Length,$FormDesign->Data->Column2->FontSize,$LeftOvers, 'left'); + } //end if need a new page headed up $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column3->x,$YPos,$FormDesign->Data->Column3->Length,$FormDesign->Data->Column3->FontSize,$DisplayQty, 'left'); $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column4->x,$YPos,$FormDesign->Data->Column4->Length,$FormDesign->Data->Column4->FontSize,$POLine['suppliersunit'], 'left'); $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column5->x,$YPos,$FormDesign->Data->Column5->Length,$FormDesign->Data->Column5->FontSize,$DisplayDelDate, 'left'); Modified: trunk/SalesInquiry.php =================================================================== --- trunk/SalesInquiry.php 2011-06-23 09:44:04 UTC (rev 4604) +++ trunk/SalesInquiry.php 2011-06-25 10:55:02 UTC (rev 4605) @@ -56,8 +56,7 @@ //####_SUBMIT_SUBMIT_SUBMIT_SUBMIT_SUBMIT_SUBMIT_SUBMIT_SUBMIT_SUBMIT_SUBMIT_SUBMIT_SUBMIT#### -function submit(&$db,$PartNumber,$PartNumberOp,$DebtorNo,$DebtorNoOp,$DebtorName,$DebtorNameOp,$savesummarytype) -{ +function submit(&$db,$PartNumber,$PartNumberOp,$DebtorNo,$DebtorNoOp,$DebtorName,$DebtorNameOp,$savesummarytype) { //initialize no input errors $InputError = 0; @@ -76,13 +75,13 @@ prnMsg(_('Invalid To Date'),'error'); } - if ($_POST['ReportType'] == 'Summary' && $_POST['DateType'] == 'Order' && $_POST['SummaryType'] == 'transno') { + if ($_POST['ReportType'] == 'Summary' AND $_POST['DateType'] == 'Order' AND $_POST['SummaryType'] == 'transno') { $InputError = 1; prnMsg(_('Cannot summarize by transaction number with a date type of Order Date'),'error'); return; } - if ($_POST['ReportType'] == 'Detail' && $_POST['DateType'] == 'Order' && $_POST['SortBy'] == 'tempstockmoves.transno,salesorderdetails.stkcode') { + if ($_POST['ReportType'] == 'Detail' AND $_POST['DateType'] == 'Order' AND $_POST['SortBy'] == 'tempstockmoves.transno,salesorderdetails.stkcode') { $InputError = 1; prnMsg(_('Cannot sort by transaction number with a date type of Order Date'),'error'); return; @@ -99,7 +98,7 @@ # Add more to WHERE statement, if user entered something for the part number,debtorno, name // Variables that end with Op - meaning operator - are either = or LIKE $WherePart = ' '; - if (strlen($PartNumber) > 0 && $PartNumberOp == 'LIKE') { + if (strlen($PartNumber) > 0 AND $PartNumberOp == 'LIKE') { $PartNumber = $PartNumber . '%'; } else { $PartNumberOp = '='; @@ -119,7 +118,7 @@ } $WhereDebtorName = ' '; - if (strlen($DebtorName) > 0 && $DebtorNameOp == 'LIKE') { + if (strlen($DebtorName) > 0 AND $DebtorNameOp == 'LIKE') { $DebtorName = $DebtorName . '%'; } else { $DebtorNameOp = '='; @@ -1105,7 +1104,7 @@ echo '</select></td></tr>'; echo '<tr><td>' . _('For Sales Man') . ':</td><td><select name="Salesman">'; - $sql='SELECT salesmancode, salesmanname FROM salesman'; + $sql="SELECT salesmancode, salesmanname FROM salesman"; $SalesmanResult= DB_query($sql,$db); echo '<option selected value="All">' . _('All Salesmen') . '</option>'; While ($myrow = DB_fetch_array($SalesmanResult)){ @@ -1164,8 +1163,7 @@ } // End of function display() -function TempStockmoves(&$db) -{ +function TempStockmoves(&$db) { // When report based on Invoice Date, use stockmoves as the main file, but credit // notes, which are type 11 in stockmoves, do not have the order number in the // reference field; instead they have "Ex Inv - " and then the transno from the Modified: trunk/SupplierCredit.php =================================================================== --- trunk/SupplierCredit.php 2011-06-23 09:44:04 UTC (rev 4604) +++ trunk/SupplierCredit.php 2011-06-25 10:55:02 UTC (rev 4605) @@ -279,16 +279,16 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<br /><table class=selection>'; -echo '<tr><td><font color=red>' . _('Supplier Credit Note Reference') . ":</font></td> - <td><font size=2><input type=TEXT size=20 maxlength=20 name=SuppReference value='" . $_SESSION['SuppTrans']->SuppReference . "'></td>"; +echo '<tr><td><font color=red>' . _('Supplier Credit Note Reference') . ':</font></td> + <td><font size=2><input type="text" size=20 maxlength=20 name="SuppReference" value="' . $_SESSION['SuppTrans']->SuppReference . '"></td>'; if (!isset($_SESSION['SuppTrans']->TranDate)){ $_SESSION['SuppTrans']->TranDate= Date($_SESSION['DefaultDateFormat'], Mktime(0,0,0,Date('m'),Date('d')-1,Date('y'))); } -echo '<td><font color=red>' . _('Credit Note Date') . ' (' . _('in format') . ' ' . $_SESSION['DefaultDateFormat'] . ") :</font></td> - <td><input type=TEXT class='date' alt='".$_SESSION['DefaultDateFormat']. "' size=11 maxlength=10 name='TranDate' value=" . $_SESSION['SuppTrans']->TranDate . '></td>'; -echo '<td><font color=red>' . _('Exchange Rate') . ":</font></td> - <td><input type=TEXT class='number' size=11 maxlength=10 name='ExRate' value=" . $_SESSION['SuppTrans']->ExRate . '></td></tr>'; +echo '<td><font color=red>' . _('Credit Note Date') . ' (' . _('in format') . ' ' . $_SESSION['DefaultDateFormat'] . ') :</font></td> + <td><input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" size=11 maxlength=10 name="TranDate" value="' . $_SESSION['SuppTrans']->TranDate . '"></td>'; +echo '<td><font color=red>' . _('Exchange Rate') . ':</font></td> + <td><input type="text" class="number" size=11 maxlength=10 name="ExRate" value="' . $_SESSION['SuppTrans']->ExRate . '"></td></tr>'; echo '</table>'; echo '<br /><div class="centre"><input type="submit" name="GRNS" value="' . _('Purchase Orders') . '"> '; @@ -315,7 +315,7 @@ <th>' . _('Line Total') . '<br />' . _('in') . ' ' . $_SESSION['SuppTrans']->CurrCode . '</th> </tr>'; echo $TableHeader; - $TotalGRNvalue=0; + $TotalGRNValue=0; foreach ($_SESSION['SuppTrans']->GRNs as $EnteredGRN){ @@ -344,7 +344,7 @@ <th>' . _('Amount') . '</th></tr>'; echo $TableHeader; - $TotalShiptvalue=0; + $TotalShiptValue=0; $i=0; @@ -443,7 +443,7 @@ <th>' . _('Narrative') . '</th></tr>'; echo $TableHeader; - $TotalGLvalue=0; + $TotalGLValue=0; foreach ($_SESSION['SuppTrans']->GLCodes as $EnteredGLCode){ @@ -467,13 +467,13 @@ } if (!isset($TotalGRNValue)) { - $TotalGRNvalue=0; + $TotalGRNValue=0; } if (!isset($TotalGLValue)) { - $TotalGLvalue=0; + $TotalGLValue=0; } if (!isset($TotalShiptValue)) { - $TotalShiptvalue=0; + $TotalShiptValue=0; } if (!isset($TotalContractsValue)){ $TotalContractsValue = 0; @@ -560,7 +560,7 @@ echo '<table class=selection><tr><td><font color=red>' . _('Comments') . '</font></td><td><textarea name=Comments cols=40 rows=2>' . $_SESSION['SuppTrans']->Comments . '</textarea></td></tr></table>'; -echo "<p><div class='centre'><input type=submit name='PostCreditNote' value='" . _('Enter Credit Note') . "'></div>"; +echo '<p><div class="centre"><input type=submit name="PostCreditNote" value="' . _('Enter Credit Note') . '"></div>'; if (isset($_POST['PostCreditNote'])){ Modified: trunk/includes/class.pdf.php =================================================================== --- trunk/includes/class.pdf.php 2011-06-23 09:44:04 UTC (rev 4604) +++ trunk/includes/class.pdf.php 2011-06-25 10:55:02 UTC (rev 4605) @@ -70,11 +70,11 @@ TCPDF::Line ($x1,$this->h-$y1,$x2,$this->h-$y2,$style); } - function addText($xb,$yb,$size,$text)//,$angle=0,$wordSpaceAdjust=0) + function addText($xb,$YPos,$size,$text)//,$angle=0,$wordSpaceAdjust=0) { // Javier $text = html_entity_decode($text); $this->SetFontSize($size); - $this->Text($xb, $this->h-$yb, $text); + $this->Text($xb, $this->h-$YPos, $text); } function addInfo($label, $value) { @@ -103,8 +103,8 @@ } - function addJpegFromFile($img,$x,$y,$w=0,$h=0){ - $this->Image($img, $x, $this->h-$y-$h, $w, $h); + function addJpegFromFile($img,$XPos,$y,$Width=0,$Height=0){ + $this->Image($img, $XPos, $this->h-$y-$Height, $Width, $Height); } /* @@ -242,33 +242,35 @@ $this->line($XPos, $YPos-$Height, $XPos, $YPos); } - function addTextWrap($x, $yb, $w, $h, $txt, $align='J', $border=0, $fill=0) { - - //$txt = html_entity_decode($txt); - + function addTextWrap($XPos, $YPos, $Width, $Height, $Text, $Align='J', $border=0, $fill=0) { + + /* Returns the balance of the string that could not fit in the width + * XPos = pdf horizontal coordinate + * YPos = pdf vertical coordiante + */ //some special characters are html encoded //this code serves to make them appear human readable in pdf file - $txt = html_entity_decode($txt, ENT_QUOTES, 'UTF-8'); + $Text = html_entity_decode($Text, ENT_QUOTES, 'UTF-8'); - $this->x = $x; - $this->y = $this->h - $yb - $h; + $this->x = $XPos; + $this->y = $this->h - $YPos - $Height; - switch($align) { + switch($Align) { case 'right': - $align = 'R'; break; + $Align = 'R'; break; case 'center': - $align = 'C'; break; + $Align = 'C'; break; default: - $align = 'L'; + $Align = 'L'; } - $this->SetFontSize($h); + $this->SetFontSize($Height); $cw=&$this->CurrentFont['cw']; - if($w==0) { - $w=$this->w-$this->rMargin-$this->x; + if($Width==0) { + $Width=$this->w-$this->rMargin-$this->x; } - $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; - $s=str_replace("\r",'',$txt); + $wmax=($Width-2*$this->cMargin)*1000/$this->FontSize; + $s=str_replace("\r",'',$Text); $s=str_replace("\n",' ',$s); $s = trim($s).' '; $nb=strlen($s); @@ -318,13 +320,13 @@ } $sep = $i; } else { - if($align=='J') { + if($Align=='J') { $this->ws=($ns>1) ? ($wmax-$ls)/1000*$this->FontSize/($ns-1) : 0; $this->_out(sprintf('%.3f Tw',$this->ws*$this->k)); } } - $this->Cell($w,$h,substr($s,0,$sep),$b,2,$align,$fill); + $this->Cell($Width,$Height,substr($s,0,$sep),$b,2,$Align,$fill); $this->x=$this->lMargin; return substr($s, $sep); } //end function addTextWrap This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-25 10:55:09
|
Revision: 4605 http://web-erp.svn.sourceforge.net/web-erp/?rev=4605&view=rev Author: daintree Date: 2011-06-25 10:55:02 +0000 (Sat, 25 Jun 2011) Log Message: ----------- multiple line PO descriptions Modified Paths: -------------- trunk/ContractBOM.php trunk/ContractCosting.php trunk/Contracts.php trunk/Credit_Invoice.php trunk/PO_PDFPurchOrder.php trunk/SalesInquiry.php trunk/SupplierCredit.php trunk/includes/class.pdf.php Modified: trunk/ContractBOM.php =================================================================== --- trunk/ContractBOM.php 2011-06-23 09:44:04 UTC (rev 4604) +++ trunk/ContractBOM.php 2011-06-25 10:55:02 UTC (rev 4605) @@ -19,8 +19,6 @@ } include('includes/header.inc'); -$Maximum_Number_Of_Parts_To_Show=50; - if (isset($_POST['UpdateLines']) OR isset($_POST['BackToHeader'])) { if($_SESSION['Contract'.$identifier]->Status!=2){ //dont do anything if the customer has committed to the contract foreach ($_SESSION['Contract'.$identifier]->ContractBOM as $ContractComponent) { @@ -201,11 +199,11 @@ if ($myrow = DB_fetch_array($result1)){ $_SESSION['Contract'.$identifier]->Add_To_ContractBOM ($ItemCode, - $myrow['description'], - $DefaultWorkCentre, - $Quantity, /* Qty */ - $myrow['unitcost'], - $myrow['units']); + $myrow['description'], + $DefaultWorkCentre, + $Quantity, /* Qty */ + $myrow['unitcost'], + $myrow['units']); } else { prnMsg (_('The item code') . ' ' . $ItemCode . ' ' . _('does not exist in the database and therefore cannot be added to the contract BOM'),'error'); if ($debug==1){ @@ -375,18 +373,17 @@ </tr>'; $PartsDisplayed++; - if ($PartsDisplayed == $Maximum_Number_Of_Parts_To_Show){ + if ($PartsDisplayed == $_SESSION['DisplayRecordsMax']){ break; } #end of page full new headings if } #end of while loop echo '</table>'; - if ($PartsDisplayed == $Maximum_Number_Of_Parts_To_Show){ + if ($PartsDisplayed == $_SESSION['DisplayRecordsMax']){ - /*$Maximum_Number_Of_Parts_To_Show defined in config.php */ - prnMsg( _('Only the first') . ' ' . $Maximum_Number_Of_Parts_To_Show . ' ' . _('can be displayed') . '. ' . + prnMsg( _('Only the first') . ' ' . $_SESSION['DisplayRecordsMax'] . ' ' . _('can be displayed') . '. ' . _('Please restrict your search to only the parts required'),'info'); } echo '<br /><div class="centre"><input type="submit" name="NewItem" value="' . _('Add to Contract Bill Of Material') .'" /></div>'; Modified: trunk/ContractCosting.php =================================================================== --- trunk/ContractCosting.php 2011-06-23 09:44:04 UTC (rev 4604) +++ trunk/ContractCosting.php 2011-06-25 10:55:02 UTC (rev 4605) @@ -64,11 +64,15 @@ echo '<table class="selection"> <tr> <th colspan="6">' . _('Original Costing') .'</th> - <th colspan="6">' . _('Actual Costs') .'</th></tr>'; + <th colspan="6">' . _('Actual Costs') .'</th> + </tr>'; -echo '<tr><th colspan="12">' . _('Inventory Required') . '</th></tr>'; +echo '<tr> + <th colspan="12">' . _('Inventory Required') . '</th> + </tr>'; -echo '<tr><th>' . _('Item Code') . '</th> +echo '<tr> + <th>' . _('Item Code') . '</th> <th>' . _('Item Description') . '</th> <th>' . _('Quantity') . '</th> <th>' . _('Unit') . '</th> @@ -81,56 +85,70 @@ <th>' . _('Unit Cost') . '</th> <th>' . _('Total Cost') . '</th> </tr>'; + $ContractBOMBudget = 0; $ContractBOMActual = 0; foreach ($_SESSION['Contract'.$identifier]->ContractBOM as $Component) { - echo '<tr><td>' . $Component->StockID . '</td> - <td>' . $Component->ItemDescription . '</td> - <td class="number">' . $Component->Quantity . '</td> - <td>' . $Component->UOM . '</td> - <td class="number">' . number_format($Component->ItemCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> - <td class="number">' . number_format(($Component->ItemCost * $Component->Quantity),$_SESSION['CompanyRecord']['decimalplaces']) . '</td>'; + echo '<tr> + <td>' . $Component->StockID . '</td> + <td>' . $Component->ItemDescription . '</td> + <td class="number">' . $Component->Quantity . '</td> + <td>' . $Component->UOM . '</td> + <td class="number">' . number_format($Component->ItemCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> + <td class="number">' . number_format(($Component->ItemCost * $Component->Quantity),$_SESSION['CompanyRecord']['decimalplaces']) . '</td>'; + $ContractBOMBudget += ($Component->ItemCost * $Component->Quantity); + if (isset($InventoryIssues[$Component->StockID])){ $InventoryIssues[$Component->StockID]->Matched=1; echo '<td colspan="2" align="center">' . _('Actual usage') . '</td> - <td class="number">' . -$InventoryIssues[$Component->StockID]->Quantity . '</td> - <td>' . $InventoryIssues[$Component->StockID]->Units . '</td> - <td class="number">' . number_format($InventoryIssues[$Component->StockID]->TotalCost/$InventoryIssues[$Component->StockID]->Quantity,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> - <td>' . number_format(-$InventoryIssues[$Component->StockID]->TotalCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</td></tr>'; + <td class="number">' . -$InventoryIssues[$Component->StockID]->Quantity . '</td> + <td>' . $InventoryIssues[$Component->StockID]->Units . '</td> + <td class="number">' . number_format($InventoryIssues[$Component->StockID]->TotalCost/$InventoryIssues[$Component->StockID]->Quantity,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> + <td>' . number_format(-$InventoryIssues[$Component->StockID]->TotalCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> + </tr>'; } else { - echo '<td colspan="6"></td></tr>'; + echo '<td colspan="6"></td> + </tr>'; } } foreach ($InventoryIssues as $Component) { //actual inventory components used $ContractBOMActual -=$Component->TotalCost; if ($Component->Matched == 0) { //then its a component that wasn't budget for - echo '<tr><td colspan="6"></td> + echo '<tr> + <td colspan="6"></td> <td>' . $Component->StockID . '</td> <td>' . $Component->Description . '</td> <td class="number">' . -$Component->Quantity . '</td> <td>' . $Component->Units . '</td> <td class="number">' . number_format($Component->TotalCost/$Component->Quantity,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> - <td class="number">' . number_format(-$Component->TotalCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</td></tr>'; + <td class="number">' . number_format(-$Component->TotalCost,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> + </tr>'; } //end if its a component not originally budget for } -echo '<tr><td class="number" colspan="5">' . _('Total Inventory Budgeted Cost') . ':</td> +echo '<tr> + <td class="number" colspan="5">' . _('Total Inventory Budgeted Cost') . ':</td> <td class="number">' . number_format($ContractBOMBudget,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> <td class="number" colspan="5">' . _('Total Inventory Actual Cost') . ':</td> - <td class="number">' . number_format($ContractBOMActual,$_SESSION['CompanyRecord']['decimalplaces']) . '</td></tr>'; + <td class="number">' . number_format($ContractBOMActual,$_SESSION['CompanyRecord']['decimalplaces']) . '</td> + </tr>'; -echo '<tr><th colspan="12" align="center">' . _('Other Costs') . '</th></tr>'; +echo '<tr> + <th colspan="12" align="center">' . _('Other Costs') . '</th> + </tr>'; $OtherReqtsBudget = 0; //other requirements budget sub-table -echo '<tr><td colspan="6"><table class="selection"> - <tr><th>' . _('Requirement') . '</th> - <th>' . _('Quantity') . '</th> - <th>' . _('Unit Cost') . '</th> - <th>' . _('Total Cost') . '</th> - </tr>'; +echo '<tr> + <td colspan="6"><table class="selection"> + <tr> + <th>' . _('Requirement') . '</th> + <th>' . _('Quantity') . '</th> + <th>' . _('Unit Cost') . '</th> + <th>' . _('Total Cost') . '</th> + </tr>'; foreach ($_SESSION['Contract'.$identifier]->ContractReqts as $Requirement) { echo '<tr><td>' . $Requirement->Requirement . '</td> Modified: trunk/Contracts.php =================================================================== --- trunk/Contracts.php 2011-06-23 09:44:04 UTC (rev 4604) +++ trunk/Contracts.php 2011-06-25 10:55:02 UTC (rev 4605) @@ -38,21 +38,21 @@ } if (isset($_GET['NewContract']) AND isset($_GET['SelectedCustomer'])) { - /* - * initialize a new contract - */ - $_SESSION['ExistingContract']=0; - unset($_SESSION['Contract'.$identifier]->ContractBOM); - unset($_SESSION['Contract'.$identifier]->ContractReqts); - unset($_SESSION['Contract'.$identifier]); - /* initialize new class object */ - $_SESSION['Contract'.$identifier] = new Contract; + /* + * initialize a new contract + */ + $_SESSION['ExistingContract']=0; + unset($_SESSION['Contract'.$identifier]->ContractBOM); + unset($_SESSION['Contract'.$identifier]->ContractReqts); + unset($_SESSION['Contract'.$identifier]); + /* initialize new class object */ + $_SESSION['Contract'.$identifier] = new Contract; - $_POST['SelectedCustomer'] = $_GET['SelectedCustomer']; + $_POST['SelectedCustomer'] = $_GET['SelectedCustomer']; - /*The customer is checked for credit and the Contract Object populated - * using the usual logic of when a customer is selected - * */ + /*The customer is checked for credit and the Contract Object populated + * using the usual logic of when a customer is selected + * */ } if (isset($_SESSION['Contract'.$identifier]) AND @@ -139,9 +139,9 @@ if (isset($_GET['ModifyContractRef'])){ if (isset($_SESSION['Contract'.$identifier])){ - unset ($_SESSION['Contract'.$identifier]->ContractBOM); - unset ($_SESSION['Contract'.$identifier]->ContractReqts); - unset ($_SESSION['Contract'.$identifier]); + unset ($_SESSION['Contract'.$identifier]->ContractBOM); + unset ($_SESSION['Contract'.$identifier]->ContractReqts); + unset ($_SESSION['Contract'.$identifier]); } $_SESSION['ExistingContract']=$_GET['ModifyContractRef']; @@ -178,7 +178,7 @@ if ($_SESSION['Contract'.$identifier]->Status==1){ $sql = "DELETE FROM salesorderdetails WHERE orderno='" . $_SESSION['Contract'.$identifier]->OrderNo . "'"; - $ErrMsg = _('The quotation line for the contract could not be deleted because'); + $ErrMsg = _('The quotation lines for the contract could not be deleted because'); $DelResult=DB_query($sql,$db,$ErrMsg); $sql = "DELETE FROM salesorders WHERE orderno='" . $_SESSION['Contract'.$identifier]->OrderNo . "'"; $ErrMsg = _('The quotation for the contract could not be deleted because'); @@ -220,11 +220,11 @@ //First update the session['Contract'.$identifier] variable with all inputs from the form $InputError = False; //assume no errors on input then test for errors - if (strlen($_POST['ContractRef'])<2){ + if (strlen($_POST['ContractRef']) < 2){ prnMsg(_('The contract reference is expected to be more than 2 characters long. Please alter the contract reference before proceeding.'),'error'); $InputError = true; } - if(ContainsIllegalCharacters($_POST['ContractRef'])){ + if(ContainsIllegalCharacters($_POST['ContractRef']) OR strpos($_POST['ContractRef'],' ')>0){ prnMsg(_('The contract reference cannot contain any spaces, slashes, or inverted commas. Please alter the contract reference before proceeding.'),'error'); $InputError = true; } @@ -807,7 +807,7 @@ //end of page full new headings if } //end of while loop - echo '<input type="hidden" name="JustSelectedACustomer" value="Yes">'; + echo '<input type="hidden" name="JustSelectedACustomer" value="Yes" />'; echo '</table></form>'; @@ -938,7 +938,9 @@ <th>' . _('Quantity') . '</th> <th>' . _('Unit') . '</th> <th>' . _('Unit Cost') . '</th> - <th>' . _('Total Cost') . '</th></tr>'; + <th>' . _('Total Cost') . '</th> + </tr>'; + foreach ($_SESSION['Contract'.$identifier]->ContractBOM as $Component) { echo '<tr><td>' . $Component->StockID . '</td> <td>' . $Component->ItemDescription . '</td> @@ -949,22 +951,32 @@ </tr>'; $ContractBOMCost += ($Component->ItemCost * $Component->Quantity); } - echo '<tr><th colspan="5"><b>' . _('Total stock cost') . '</b></th> - <th class="number"><b>' . number_format($ContractBOMCost,2) . '</b></th></tr>'; + echo '<tr> + <th colspan="5"><b>' . _('Total stock cost') . '</b></th> + <th class="number"><b>' . number_format($ContractBOMCost,2) . '</b></th> + </tr>'; } else { //there are no items set up against this contract - echo '<tr><td colspan="6"><i>' . _('None Entered') . '</i></td></tr>'; + echo '<tr> + <td colspan="6"><i>' . _('None Entered') . '</i></td> + </tr>'; } echo '</table></td>'; //end of contract BOM table echo '<td valign="top"> - <table class="selection"><tr><th colspan="4">' . _('Other Requirements') . '</th></tr>'; + <table class="selection"> + <tr> + <th colspan="4">' . _('Other Requirements') . '</th> + </tr>'; $ContractReqtsCost = 0; if (count($_SESSION['Contract'.$identifier]->ContractReqts)!=0){ - echo '<tr><th>' . _('Requirement') . '</th> - <th>' . _('Quantity') . '</th> - <th>' . _('Unit Cost') . '</th> - <th>' . _('Total Cost') . '</th></tr>'; + echo '<tr> + <th>' . _('Requirement') . '</th> + <th>' . _('Quantity') . '</th> + <th>' . _('Unit Cost') . '</th> + <th>' . _('Total Cost') . '</th> + </tr>'; foreach ($_SESSION['Contract'.$identifier]->ContractReqts as $Requirement) { - echo '<tr><td>' . $Requirement->Requirement . '</td> + echo '<tr> + <td>' . $Requirement->Requirement . '</td> <td class="number">' . $Requirement->Quantity . '</td> <td class="number">' . $Requirement->CostPerUnit . '</td> <td class="number">' . number_format(($Requirement->CostPerUnit * $Requirement->Quantity),2) . '</td> Modified: trunk/Credit_Invoice.php =================================================================== --- trunk/Credit_Invoice.php 2011-06-23 09:44:04 UTC (rev 4604) +++ trunk/Credit_Invoice.php 2011-06-25 10:55:02 UTC (rev 4605) @@ -1523,7 +1523,7 @@ } $j++; echo '<tr><td>' . _('Credit note text') . '</td><td><textarea tabindex=' . $j . ' name=CreditText cols=31 rows=5>' . $_POST['CreditText'] . '</textarea></td></tr>'; - echo '</table><br /><div class="centre"><input tabindex=' . $j . ' type=submit name=Update Value=' . _('Update') . '><p>'; + echo '</table><br /><div class="centre"><input tabindex=' . $j . ' type=submit name=Update value=' . _('Update') . '><p>'; $j++; echo '<input type="submit" tabindex='.$j++.' name="ProcessCredit" Value="' . _('Process Credit') .'"></div>'; } Modified: trunk/PO_PDFPurchOrder.php =================================================================== --- trunk/PO_PDFPurchOrder.php 2011-06-23 09:44:04 UTC (rev 4604) +++ trunk/PO_PDFPurchOrder.php 2011-06-25 10:55:02 UTC (rev 4605) @@ -245,6 +245,16 @@ $OrderTotal += ($POLine['unitprice']*$POLine['quantityord']); $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column1->x,$YPos,$FormDesign->Data->Column1->Length,$FormDesign->Data->Column1->FontSize,$POLine['itemcode'], 'left'); $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column2->x,$YPos,$FormDesign->Data->Column2->Length,$FormDesign->Data->Column2->FontSize,$Desc, 'left'); + while (strlen($LeftOvers) > 1){ + $YPos-=$line_height; + if ($YPos-$line_height <= $Bottom_Margin){ + /* We reached the end of the page so finsih off the page and start a newy */ + $PageNumber++; + $YPos=$Page_Height - $FormDesign->Data->y; + include ('includes/PO_PDFOrderPageHeader.inc'); + } + $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column2->x,$YPos,$FormDesign->Data->Column2->Length,$FormDesign->Data->Column2->FontSize,$LeftOvers, 'left'); + } //end if need a new page headed up $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column3->x,$YPos,$FormDesign->Data->Column3->Length,$FormDesign->Data->Column3->FontSize,$DisplayQty, 'left'); $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column4->x,$YPos,$FormDesign->Data->Column4->Length,$FormDesign->Data->Column4->FontSize,$POLine['suppliersunit'], 'left'); $LeftOvers = $pdf->addTextWrap($FormDesign->Data->Column5->x,$YPos,$FormDesign->Data->Column5->Length,$FormDesign->Data->Column5->FontSize,$DisplayDelDate, 'left'); Modified: trunk/SalesInquiry.php =================================================================== --- trunk/SalesInquiry.php 2011-06-23 09:44:04 UTC (rev 4604) +++ trunk/SalesInquiry.php 2011-06-25 10:55:02 UTC (rev 4605) @@ -56,8 +56,7 @@ //####_SUBMIT_SUBMIT_SUBMIT_SUBMIT_SUBMIT_SUBMIT_SUBMIT_SUBMIT_SUBMIT_SUBMIT_SUBMIT_SUBMIT#### -function submit(&$db,$PartNumber,$PartNumberOp,$DebtorNo,$DebtorNoOp,$DebtorName,$DebtorNameOp,$savesummarytype) -{ +function submit(&$db,$PartNumber,$PartNumberOp,$DebtorNo,$DebtorNoOp,$DebtorName,$DebtorNameOp,$savesummarytype) { //initialize no input errors $InputError = 0; @@ -76,13 +75,13 @@ prnMsg(_('Invalid To Date'),'error'); } - if ($_POST['ReportType'] == 'Summary' && $_POST['DateType'] == 'Order' && $_POST['SummaryType'] == 'transno') { + if ($_POST['ReportType'] == 'Summary' AND $_POST['DateType'] == 'Order' AND $_POST['SummaryType'] == 'transno') { $InputError = 1; prnMsg(_('Cannot summarize by transaction number with a date type of Order Date'),'error'); return; } - if ($_POST['ReportType'] == 'Detail' && $_POST['DateType'] == 'Order' && $_POST['SortBy'] == 'tempstockmoves.transno,salesorderdetails.stkcode') { + if ($_POST['ReportType'] == 'Detail' AND $_POST['DateType'] == 'Order' AND $_POST['SortBy'] == 'tempstockmoves.transno,salesorderdetails.stkcode') { $InputError = 1; prnMsg(_('Cannot sort by transaction number with a date type of Order Date'),'error'); return; @@ -99,7 +98,7 @@ # Add more to WHERE statement, if user entered something for the part number,debtorno, name // Variables that end with Op - meaning operator - are either = or LIKE $WherePart = ' '; - if (strlen($PartNumber) > 0 && $PartNumberOp == 'LIKE') { + if (strlen($PartNumber) > 0 AND $PartNumberOp == 'LIKE') { $PartNumber = $PartNumber . '%'; } else { $PartNumberOp = '='; @@ -119,7 +118,7 @@ } $WhereDebtorName = ' '; - if (strlen($DebtorName) > 0 && $DebtorNameOp == 'LIKE') { + if (strlen($DebtorName) > 0 AND $DebtorNameOp == 'LIKE') { $DebtorName = $DebtorName . '%'; } else { $DebtorNameOp = '='; @@ -1105,7 +1104,7 @@ echo '</select></td></tr>'; echo '<tr><td>' . _('For Sales Man') . ':</td><td><select name="Salesman">'; - $sql='SELECT salesmancode, salesmanname FROM salesman'; + $sql="SELECT salesmancode, salesmanname FROM salesman"; $SalesmanResult= DB_query($sql,$db); echo '<option selected value="All">' . _('All Salesmen') . '</option>'; While ($myrow = DB_fetch_array($SalesmanResult)){ @@ -1164,8 +1163,7 @@ } // End of function display() -function TempStockmoves(&$db) -{ +function TempStockmoves(&$db) { // When report based on Invoice Date, use stockmoves as the main file, but credit // notes, which are type 11 in stockmoves, do not have the order number in the // reference field; instead they have "Ex Inv - " and then the transno from the Modified: trunk/SupplierCredit.php =================================================================== --- trunk/SupplierCredit.php 2011-06-23 09:44:04 UTC (rev 4604) +++ trunk/SupplierCredit.php 2011-06-25 10:55:02 UTC (rev 4605) @@ -279,16 +279,16 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<br /><table class=selection>'; -echo '<tr><td><font color=red>' . _('Supplier Credit Note Reference') . ":</font></td> - <td><font size=2><input type=TEXT size=20 maxlength=20 name=SuppReference value='" . $_SESSION['SuppTrans']->SuppReference . "'></td>"; +echo '<tr><td><font color=red>' . _('Supplier Credit Note Reference') . ':</font></td> + <td><font size=2><input type="text" size=20 maxlength=20 name="SuppReference" value="' . $_SESSION['SuppTrans']->SuppReference . '"></td>'; if (!isset($_SESSION['SuppTrans']->TranDate)){ $_SESSION['SuppTrans']->TranDate= Date($_SESSION['DefaultDateFormat'], Mktime(0,0,0,Date('m'),Date('d')-1,Date('y'))); } -echo '<td><font color=red>' . _('Credit Note Date') . ' (' . _('in format') . ' ' . $_SESSION['DefaultDateFormat'] . ") :</font></td> - <td><input type=TEXT class='date' alt='".$_SESSION['DefaultDateFormat']. "' size=11 maxlength=10 name='TranDate' value=" . $_SESSION['SuppTrans']->TranDate . '></td>'; -echo '<td><font color=red>' . _('Exchange Rate') . ":</font></td> - <td><input type=TEXT class='number' size=11 maxlength=10 name='ExRate' value=" . $_SESSION['SuppTrans']->ExRate . '></td></tr>'; +echo '<td><font color=red>' . _('Credit Note Date') . ' (' . _('in format') . ' ' . $_SESSION['DefaultDateFormat'] . ') :</font></td> + <td><input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" size=11 maxlength=10 name="TranDate" value="' . $_SESSION['SuppTrans']->TranDate . '"></td>'; +echo '<td><font color=red>' . _('Exchange Rate') . ':</font></td> + <td><input type="text" class="number" size=11 maxlength=10 name="ExRate" value="' . $_SESSION['SuppTrans']->ExRate . '"></td></tr>'; echo '</table>'; echo '<br /><div class="centre"><input type="submit" name="GRNS" value="' . _('Purchase Orders') . '"> '; @@ -315,7 +315,7 @@ <th>' . _('Line Total') . '<br />' . _('in') . ' ' . $_SESSION['SuppTrans']->CurrCode . '</th> </tr>'; echo $TableHeader; - $TotalGRNvalue=0; + $TotalGRNValue=0; foreach ($_SESSION['SuppTrans']->GRNs as $EnteredGRN){ @@ -344,7 +344,7 @@ <th>' . _('Amount') . '</th></tr>'; echo $TableHeader; - $TotalShiptvalue=0; + $TotalShiptValue=0; $i=0; @@ -443,7 +443,7 @@ <th>' . _('Narrative') . '</th></tr>'; echo $TableHeader; - $TotalGLvalue=0; + $TotalGLValue=0; foreach ($_SESSION['SuppTrans']->GLCodes as $EnteredGLCode){ @@ -467,13 +467,13 @@ } if (!isset($TotalGRNValue)) { - $TotalGRNvalue=0; + $TotalGRNValue=0; } if (!isset($TotalGLValue)) { - $TotalGLvalue=0; + $TotalGLValue=0; } if (!isset($TotalShiptValue)) { - $TotalShiptvalue=0; + $TotalShiptValue=0; } if (!isset($TotalContractsValue)){ $TotalContractsValue = 0; @@ -560,7 +560,7 @@ echo '<table class=selection><tr><td><font color=red>' . _('Comments') . '</font></td><td><textarea name=Comments cols=40 rows=2>' . $_SESSION['SuppTrans']->Comments . '</textarea></td></tr></table>'; -echo "<p><div class='centre'><input type=submit name='PostCreditNote' value='" . _('Enter Credit Note') . "'></div>"; +echo '<p><div class="centre"><input type=submit name="PostCreditNote" value="' . _('Enter Credit Note') . '"></div>'; if (isset($_POST['PostCreditNote'])){ Modified: trunk/includes/class.pdf.php =================================================================== --- trunk/includes/class.pdf.php 2011-06-23 09:44:04 UTC (rev 4604) +++ trunk/includes/class.pdf.php 2011-06-25 10:55:02 UTC (rev 4605) @@ -70,11 +70,11 @@ TCPDF::Line ($x1,$this->h-$y1,$x2,$this->h-$y2,$style); } - function addText($xb,$yb,$size,$text)//,$angle=0,$wordSpaceAdjust=0) + function addText($xb,$YPos,$size,$text)//,$angle=0,$wordSpaceAdjust=0) { // Javier $text = html_entity_decode($text); $this->SetFontSize($size); - $this->Text($xb, $this->h-$yb, $text); + $this->Text($xb, $this->h-$YPos, $text); } function addInfo($label, $value) { @@ -103,8 +103,8 @@ } - function addJpegFromFile($img,$x,$y,$w=0,$h=0){ - $this->Image($img, $x, $this->h-$y-$h, $w, $h); + function addJpegFromFile($img,$XPos,$y,$Width=0,$Height=0){ + $this->Image($img, $XPos, $this->h-$y-$Height, $Width, $Height); } /* @@ -242,33 +242,35 @@ $this->line($XPos, $YPos-$Height, $XPos, $YPos); } - function addTextWrap($x, $yb, $w, $h, $txt, $align='J', $border=0, $fill=0) { - - //$txt = html_entity_decode($txt); - + function addTextWrap($XPos, $YPos, $Width, $Height, $Text, $Align='J', $border=0, $fill=0) { + + /* Returns the balance of the string that could not fit in the width + * XPos = pdf horizontal coordinate + * YPos = pdf vertical coordiante + */ //some special characters are html encoded //this code serves to make them appear human readable in pdf file - $txt = html_entity_decode($txt, ENT_QUOTES, 'UTF-8'); + $Text = html_entity_decode($Text, ENT_QUOTES, 'UTF-8'); - $this->x = $x; - $this->y = $this->h - $yb - $h; + $this->x = $XPos; + $this->y = $this->h - $YPos - $Height; - switch($align) { + switch($Align) { case 'right': - $align = 'R'; break; + $Align = 'R'; break; case 'center': - $align = 'C'; break; + $Align = 'C'; break; default: - $align = 'L'; + $Align = 'L'; } - $this->SetFontSize($h); + $this->SetFontSize($Height); $cw=&$this->CurrentFont['cw']; - if($w==0) { - $w=$this->w-$this->rMargin-$this->x; + if($Width==0) { + $Width=$this->w-$this->rMargin-$this->x; } - $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; - $s=str_replace("\r",'',$txt); + $wmax=($Width-2*$this->cMargin)*1000/$this->FontSize; + $s=str_replace("\r",'',$Text); $s=str_replace("\n",' ',$s); $s = trim($s).' '; $nb=strlen($s); @@ -318,13 +320,13 @@ } $sep = $i; } else { - if($align=='J') { + if($Align=='J') { $this->ws=($ns>1) ? ($wmax-$ls)/1000*$this->FontSize/($ns-1) : 0; $this->_out(sprintf('%.3f Tw',$this->ws*$this->k)); } } - $this->Cell($w,$h,substr($s,0,$sep),$b,2,$align,$fill); + $this->Cell($Width,$Height,substr($s,0,$sep),$b,2,$Align,$fill); $this->x=$this->lMargin; return substr($s, $sep); } //end function addTextWrap This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-26 00:14:14
|
Revision: 4606 http://web-erp.svn.sourceforge.net/web-erp/?rev=4606&view=rev Author: daintree Date: 2011-06-26 00:14:07 +0000 (Sun, 26 Jun 2011) Log Message: ----------- PO_Items - no formatting on quantities or prices entry Modified Paths: -------------- trunk/PO_Items.php trunk/doc/Change.log Modified: trunk/PO_Items.php =================================================================== --- trunk/PO_Items.php 2011-06-25 10:55:02 UTC (rev 4605) +++ trunk/PO_Items.php 2011-06-26 00:14:07 UTC (rev 4606) @@ -33,21 +33,21 @@ if (isset($_POST['UpdateLines']) OR isset($_POST['Commit'])) { foreach ($_SESSION['PO'.$identifier]->LineItems as $POLine) { if ($POLine->Deleted == false) { - if (!is_numeric(str_replace($locale_info['thousands_sep'],'',$_POST['ConversionFactor'.$POLine->LineNo]))){ + if (!is_numeric($_POST['ConversionFactor'.$POLine->LineNo])){ prnMsg(_('The conversion factor is expected to be numeric - the figure which converts from our units to the supplier units. e.g. if the supplier units is a tonne and our unit is a kilogram then the conversion factor that converts our unit to the suppliers unit is 1000'),'error'); $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor = 1; } else { //a valid number for the conversion factor is entered - $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor = doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['ConversionFactor'.$POLine->LineNo])); + $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor = $_POST['ConversionFactor'.$POLine->LineNo]; } - if (!is_numeric(str_replace($locale_info['thousands_sep'],'',$_POST['SuppQty'.$POLine->LineNo]))){ + if (!is_numeric($_POST['SuppQty'.$POLine->LineNo])){ prnMsg(_('The quantity in the supplier units is expected to be numeric. Please re-enter as a number'),'error'); } else { //ok to update the PO object variables - $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->Quantity=round(doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['SuppQty'.$POLine->LineNo]))*doubleval(str_replace($locale_info['thousands_sep'],'',$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor)),$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->DecimalPlaces); + $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->Quantity=round($_POST['SuppQty'.$POLine->LineNo]*$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor,$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->DecimalPlaces); } - if (!is_numeric(str_replace($locale_info['thousands_sep'],'',$_POST['SuppPrice'.$POLine->LineNo]))){ + if (!is_numeric($_POST['SuppPrice'.$POLine->LineNo])){ prnMsg(_('The supplier price is expected to be numeric. Please re-enter as a number'),'error'); } else { //ok to update the PO object variables - $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->Price=(doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['SuppPrice'.$POLine->LineNo]))/$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor); + $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->Price=$_POST['SuppPrice'.$POLine->LineNo]/$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor; } $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ReqDelDate=$_POST['ReqDelDate'.$POLine->LineNo]; } @@ -680,13 +680,13 @@ <td>' . $POLine->Units . '</td> <td class="number">' . $DisplayPrice . '</td> <td><input type="text" class="number" name="ConversionFactor' . $POLine->LineNo .'" size="8" value="' . $POLine->ConversionFactor . '"></td> - <td><input type="text" class="number" name="SuppQty' . $POLine->LineNo .'" size="10" value="' . number_format($POLine->Quantity/$POLine->ConversionFactor,$POLine->DecimalPlaces) . '"></td> + <td><input type="text" class="number" name="SuppQty' . $POLine->LineNo .'" size="10" value="' . round($POLine->Quantity/$POLine->ConversionFactor,$POLine->DecimalPlaces) . '"></td> <td>' . $POLine->SuppliersUnit . '</td> - <td><input type="text" class="number" name="SuppPrice' . $POLine->LineNo . '" size="10" value="' .number_format(($POLine->Price *$POLine->ConversionFactor),$_SESSION['PO'.$identifier]->CurrDecimalPlaces) .'"></td> + <td><input type="text" class="number" name="SuppPrice' . $POLine->LineNo . '" size="10" value="' . round(($POLine->Price *$POLine->ConversionFactor),$_SESSION['PO'.$identifier]->CurrDecimalPlaces) .'"></td> <td class="number">' . $DisplayLineTotal . '</td> <td><input type="text" class="date" alt="' .$_SESSION['DefaultDateFormat'].'" name="ReqDelDate' . $POLine->LineNo.'" size="10" value="' .$POLine->ReqDelDate .'"></td> <td><a href="' . $_SERVER['PHP_SELF'] . '?identifier='.$identifier. '&Delete=' . $POLine->LineNo . '">' . _('Delete') . '</a></td></tr>'; - $_SESSION['PO'.$identifier]->Total = $_SESSION['PO'.$identifier]->Total + $LineTotal; + $_SESSION['PO'.$identifier]->Total += $LineTotal; } } Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-25 10:55:02 UTC (rev 4605) +++ trunk/doc/Change.log 2011-06-26 00:14:07 UTC (rev 4606) @@ -1,5 +1,6 @@ webERP Change Log +26/6/11 Phil: Went back to no numberformating on PO_Items.php price and quantity - Brian May still reporting issues 22/6/11 Phil: Added message to AccountGroups.php to show that child account groups cannot have changes to their account section, their profit and loss or balance sheet and sequence in TB as these properties belong only to parent account groups and are inherited by the kids 23/6/11 Phil: SelectOrderItems.php includes/DefineCartClass.php repaired credit checks 19/6/11 Phil: Credit_Invoice.php typos in quoting changes preventing posting credits on write offs also sql on gl account selection for write off This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-26 00:14:14
|
Revision: 4606 http://web-erp.svn.sourceforge.net/web-erp/?rev=4606&view=rev Author: daintree Date: 2011-06-26 00:14:07 +0000 (Sun, 26 Jun 2011) Log Message: ----------- PO_Items - no formatting on quantities or prices entry Modified Paths: -------------- trunk/PO_Items.php trunk/doc/Change.log Modified: trunk/PO_Items.php =================================================================== --- trunk/PO_Items.php 2011-06-25 10:55:02 UTC (rev 4605) +++ trunk/PO_Items.php 2011-06-26 00:14:07 UTC (rev 4606) @@ -33,21 +33,21 @@ if (isset($_POST['UpdateLines']) OR isset($_POST['Commit'])) { foreach ($_SESSION['PO'.$identifier]->LineItems as $POLine) { if ($POLine->Deleted == false) { - if (!is_numeric(str_replace($locale_info['thousands_sep'],'',$_POST['ConversionFactor'.$POLine->LineNo]))){ + if (!is_numeric($_POST['ConversionFactor'.$POLine->LineNo])){ prnMsg(_('The conversion factor is expected to be numeric - the figure which converts from our units to the supplier units. e.g. if the supplier units is a tonne and our unit is a kilogram then the conversion factor that converts our unit to the suppliers unit is 1000'),'error'); $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor = 1; } else { //a valid number for the conversion factor is entered - $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor = doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['ConversionFactor'.$POLine->LineNo])); + $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor = $_POST['ConversionFactor'.$POLine->LineNo]; } - if (!is_numeric(str_replace($locale_info['thousands_sep'],'',$_POST['SuppQty'.$POLine->LineNo]))){ + if (!is_numeric($_POST['SuppQty'.$POLine->LineNo])){ prnMsg(_('The quantity in the supplier units is expected to be numeric. Please re-enter as a number'),'error'); } else { //ok to update the PO object variables - $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->Quantity=round(doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['SuppQty'.$POLine->LineNo]))*doubleval(str_replace($locale_info['thousands_sep'],'',$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor)),$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->DecimalPlaces); + $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->Quantity=round($_POST['SuppQty'.$POLine->LineNo]*$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor,$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->DecimalPlaces); } - if (!is_numeric(str_replace($locale_info['thousands_sep'],'',$_POST['SuppPrice'.$POLine->LineNo]))){ + if (!is_numeric($_POST['SuppPrice'.$POLine->LineNo])){ prnMsg(_('The supplier price is expected to be numeric. Please re-enter as a number'),'error'); } else { //ok to update the PO object variables - $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->Price=(doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['SuppPrice'.$POLine->LineNo]))/$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor); + $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->Price=$_POST['SuppPrice'.$POLine->LineNo]/$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor; } $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ReqDelDate=$_POST['ReqDelDate'.$POLine->LineNo]; } @@ -680,13 +680,13 @@ <td>' . $POLine->Units . '</td> <td class="number">' . $DisplayPrice . '</td> <td><input type="text" class="number" name="ConversionFactor' . $POLine->LineNo .'" size="8" value="' . $POLine->ConversionFactor . '"></td> - <td><input type="text" class="number" name="SuppQty' . $POLine->LineNo .'" size="10" value="' . number_format($POLine->Quantity/$POLine->ConversionFactor,$POLine->DecimalPlaces) . '"></td> + <td><input type="text" class="number" name="SuppQty' . $POLine->LineNo .'" size="10" value="' . round($POLine->Quantity/$POLine->ConversionFactor,$POLine->DecimalPlaces) . '"></td> <td>' . $POLine->SuppliersUnit . '</td> - <td><input type="text" class="number" name="SuppPrice' . $POLine->LineNo . '" size="10" value="' .number_format(($POLine->Price *$POLine->ConversionFactor),$_SESSION['PO'.$identifier]->CurrDecimalPlaces) .'"></td> + <td><input type="text" class="number" name="SuppPrice' . $POLine->LineNo . '" size="10" value="' . round(($POLine->Price *$POLine->ConversionFactor),$_SESSION['PO'.$identifier]->CurrDecimalPlaces) .'"></td> <td class="number">' . $DisplayLineTotal . '</td> <td><input type="text" class="date" alt="' .$_SESSION['DefaultDateFormat'].'" name="ReqDelDate' . $POLine->LineNo.'" size="10" value="' .$POLine->ReqDelDate .'"></td> <td><a href="' . $_SERVER['PHP_SELF'] . '?identifier='.$identifier. '&Delete=' . $POLine->LineNo . '">' . _('Delete') . '</a></td></tr>'; - $_SESSION['PO'.$identifier]->Total = $_SESSION['PO'.$identifier]->Total + $LineTotal; + $_SESSION['PO'.$identifier]->Total += $LineTotal; } } Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-25 10:55:02 UTC (rev 4605) +++ trunk/doc/Change.log 2011-06-26 00:14:07 UTC (rev 4606) @@ -1,5 +1,6 @@ webERP Change Log +26/6/11 Phil: Went back to no numberformating on PO_Items.php price and quantity - Brian May still reporting issues 22/6/11 Phil: Added message to AccountGroups.php to show that child account groups cannot have changes to their account section, their profit and loss or balance sheet and sequence in TB as these properties belong only to parent account groups and are inherited by the kids 23/6/11 Phil: SelectOrderItems.php includes/DefineCartClass.php repaired credit checks 19/6/11 Phil: Credit_Invoice.php typos in quoting changes preventing posting credits on write offs also sql on gl account selection for write off This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-26 01:21:34
|
Revision: 4607 http://web-erp.svn.sourceforge.net/web-erp/?rev=4607&view=rev Author: daintree Date: 2011-06-26 01:21:26 +0000 (Sun, 26 Jun 2011) Log Message: ----------- PurchData no number_format on price - fix cost update in WorkOrderCosting.php Modified Paths: -------------- trunk/PurchData.php trunk/WorkOrderCosting.php trunk/doc/Change.log Modified: trunk/PurchData.php =================================================================== --- trunk/PurchData.php 2011-06-26 00:14:07 UTC (rev 4606) +++ trunk/PurchData.php 2011-06-26 01:21:26 UTC (rev 4607) @@ -37,36 +37,28 @@ $InputError = 1; prnMsg(_('There is no stock item set up enter the stock code or select a stock item using the search page'), 'error'); } - if (!is_numeric(doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['Price'])))) { + if (!is_numeric($_POST['Price'])) { $InputError = 1; unset($_POST['Price']); prnMsg(_('The price entered was not numeric and a number is expected. No changes have been made to the database'), 'error'); - } else { - $_POST['Price'] = doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['Price'])); } if ($_POST['Price'] == 0) { prnMsg(_('The price entered is zero') . ' ' . _('Is this intentional?'), 'warn'); } - if (!is_numeric(doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['LeadTime'])))) { + if (!is_numeric($_POST['LeadTime'])) { $InputError = 1; unset($_POST['LeadTime']); prnMsg(_('The lead time entered was not numeric a number of days is expected no changes have been made to the database'), 'error'); - } else { - $_POST['LeadTime'] = doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['LeadTime'])); } - if (!is_numeric(doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['MinOrderQty'])))) { + if (!is_numeric($_POST['MinOrderQty'])) { $InputError = 1; unset($_POST['MinOrderQty']); prnMsg(_('The minimum order quantity was not numeric and a number is expected no changes have been made to the database'), 'error'); - } else { - $_POST['MinOrderQty'] =doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['MinOrderQty'])); - } - if (!is_numeric(doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['ConversionFactor'])))) { + } + if (!is_numeric($_POST['ConversionFactor'])) { $InputError = 1; unset($_POST['ConversionFactor']); prnMsg(_('The conversion factor entered was not numeric') . ' (' . _('a number is expected') . '). ' . _('The conversion factor is the number which the price must be divided by to get the unit price in our unit of measure') . '. <br />' . _('E.g.') . ' ' . _('The supplier sells an item by the tonne and we hold stock by the kg') . '. ' . _('The suppliers price must be divided by 1000 to get to our cost per kg') . '. ' . _('The conversion factor to enter is 1000') . '. <br /><br />' . _('No changes will be made to the database'), 'error'); - } else { - $_POST['ConversionFactor'] =doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['ConversionFactor'])); } if ($InputError == 0 AND isset($_POST['AddRecord'])) { $sql = "INSERT INTO purchdata (supplierno, @@ -198,36 +190,36 @@ $DisplayPreferred = _('No'); } printf("<td>%s</td> - <td class=number>%s</td> - <td>%s</td> - <td class=number>%s</td> - <td class=number>%s</td> - <td>%s</td> - <td>%s</td> - <td>%s</td> - <td>%s " . _('days') . "</td> - <td>%s</td> - <td><a href='%s?StockID=%s&SupplierID=%s&Edit=1&EffectiveFrom=%s'>" . _('Edit') . "</a></td> - <td><a href='%s?StockID=%s&SupplierID=%s&Delete=1&EffectiveFrom=%s' onclick=\"return confirm('" . _('Are you sure you wish to delete this suppliers price?') . "');\">" . _('Delete') . "</a></td> - </tr>", - $myrow['suppname'], - number_format($myrow['price'], 3), - $myrow['suppliersuom'], - $myrow['conversionfactor'], - number_format($myrow['price']/$myrow['conversionfactor'],2), - $myrow['currcode'], - ConvertSQLDate($myrow['effectivefrom']), - $myrow['minorderqty'], - $myrow['leadtime'], - $DisplayPreferred, - $_SERVER['PHP_SELF'], - $StockID, - $myrow['supplierno'], - $myrow['effectivefrom'], - $_SERVER['PHP_SELF'], - $StockID, - $myrow['supplierno'], - $myrow['effectivefrom']); + <td class=number>%s</td> + <td>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> + <td>%s</td> + <td>%s</td> + <td>%s</td> + <td>%s " . _('days') . "</td> + <td>%s</td> + <td><a href='%s?StockID=%s&SupplierID=%s&Edit=1&EffectiveFrom=%s'>" . _('Edit') . "</a></td> + <td><a href='%s?StockID=%s&SupplierID=%s&Delete=1&EffectiveFrom=%s' onclick=\"return confirm('" . _('Are you sure you wish to delete this suppliers price?') . "');\">" . _('Delete') . "</a></td> + </tr>", + $myrow['suppname'], + number_format($myrow['price'], 3), + $myrow['suppliersuom'], + $myrow['conversionfactor'], + number_format($myrow['price']/$myrow['conversionfactor'],2), + $myrow['currcode'], + ConvertSQLDate($myrow['effectivefrom']), + $myrow['minorderqty'], + $myrow['leadtime'], + $DisplayPreferred, + $_SERVER['PHP_SELF'], + $StockID, + $myrow['supplierno'], + $myrow['effectivefrom'], + $_SERVER['PHP_SELF'], + $StockID, + $myrow['supplierno'], + $myrow['effectivefrom']); } //end of while loop echo '</table><br/>'; if ($CountPreferreds > 1) { @@ -465,7 +457,7 @@ echo '<tr><td>' . _('Currency') . ':</td> <td><input type=hidden name="CurrCode" . value="' . $CurrCode . '">' . $CurrCode . '</td></tr>'; echo '<tr><td>' . _('Price') . ' (' . _('in Supplier Currency') . '):</td> - <td><input type="text" class="number" name="Price" maxlength=12 size=12 value=' . number_format($_POST['Price'], $myrow['decimalplaces']) . '></td></tr>'; + <td><input type="text" class="number" name="Price" maxlength=12 size=12 value=' . round($_POST['Price'], $myrow['decimalplaces']) . '></td></tr>'; echo '<tr><td>' . _('Date Updated') . ':</td> <td><input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="EffectiveFrom" maxlength=10 size=11 value="' . $_POST['EffectiveFrom'] . '"></td></tr>'; echo '<tr><td>' . _('Our Unit of Measure') . ':</td>'; Modified: trunk/WorkOrderCosting.php =================================================================== --- trunk/WorkOrderCosting.php 2011-06-26 00:14:07 UTC (rev 4606) +++ trunk/WorkOrderCosting.php 2011-06-26 01:21:26 UTC (rev 4607) @@ -27,16 +27,15 @@ } - $ErrMsg = _('Could not retrieve the details of the selected work order'); $WOResult = DB_query("SELECT workorders.loccode, locations.locationname, workorders.requiredby, workorders.startdate, workorders.closed - FROM workorders INNER JOIN locations - ON workorders.loccode=locations.loccode - WHERE workorders.wo='" . $_POST['WO'] . "'", + FROM workorders INNER JOIN locations + ON workorders.loccode=locations.loccode + WHERE workorders.wo='" . $_POST['WO'] . "'", $db, $ErrMsg); @@ -153,13 +152,15 @@ echo '<td>' . $RequirementsRow['stockid'] . '</td> <td>' . $RequirementsRow['description'] . '</td>'; - $IssuesResult = DB_query("SELECT trandate, - qty, - standardcost - FROM stockmoves + $IssuesResult = DB_query("SELECT stockmoves.trandate, + stockmoves.qty, + stockmoves.standardcost, + stockmaster.decimalplaces, + FROM stockmoves INNER JOIN stockmaster + ON stockmoves.stockid = stockmaster.stockid WHERE stockmoves.type=28 - AND reference = '" . $_POST['WO'] . "' - AND stockid = '" . $RequirementsRow['stockid'] . "'", + AND stockmoves.reference = '" . $_POST['WO'] . "' + AND stockmoves.stockid = '" . $RequirementsRow['stockid'] . "'", $db, _('Could not retrieve the issues of the item because:')); $IssueQty =0; @@ -174,7 +175,7 @@ } echo '<td colspan=4></td><td>' . ConvertSQLDate($IssuesRow['trandate']) . '</td> <td class=number>' . number_format(-$IssuesRow['qty'],$RequirementsRow['decimalplaces']) . '</td> - <td class=number>' . number_format(-($IssuesRow['qty']*$IssuesRow['standardcost']),2) . '</td></tr>'; + <td class=number>' . number_format(-($IssuesRow['qty']*$IssuesRow['standardcost']),$IssuesRow['decimalplaces']) . '</td></tr>'; $IssueQty -= $IssuesRow['qty'];// because qty for the stock movement will be negative $IssueCost -= ($IssuesRow['qty']*$IssuesRow['standardcost']); @@ -392,7 +393,7 @@ labourcost=0, overheadcost=0, lastcost='" . $WORow['currcost'] . "' - WHERE stockid='" . $_POST['StockID'] . "'"; + WHERE stockid='" . $WORow['stockid'] . "'"; $ErrMsg = _('The cost details for the stock item could not be updated because'); $DbgMsg = _('The SQL that failed was'); Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-26 00:14:07 UTC (rev 4606) +++ trunk/doc/Change.log 2011-06-26 01:21:26 UTC (rev 4607) @@ -1,6 +1,9 @@ webERP Change Log -26/6/11 Phil: Went back to no numberformating on PO_Items.php price and quantity - Brian May still reporting issues +26/6/11 Phil: Fixed reference to $_POST['StockID'] in WorkOrderCosting.php when updating the new weighted average cost +26/6/11 Phil: Went back to no number_formatting on PurchData.php +26/6/11 Phil: Went back to no number_formatting on PO_Items.php price and quantity - Brian May still reporting issues +25/6/11 Phil: Made PO_PDFPurchOrder.php have the description of the order item run over several lines where it exceeds the width of the space allowed for it 22/6/11 Phil: Added message to AccountGroups.php to show that child account groups cannot have changes to their account section, their profit and loss or balance sheet and sequence in TB as these properties belong only to parent account groups and are inherited by the kids 23/6/11 Phil: SelectOrderItems.php includes/DefineCartClass.php repaired credit checks 19/6/11 Phil: Credit_Invoice.php typos in quoting changes preventing posting credits on write offs also sql on gl account selection for write off This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-26 01:21:34
|
Revision: 4607 http://web-erp.svn.sourceforge.net/web-erp/?rev=4607&view=rev Author: daintree Date: 2011-06-26 01:21:26 +0000 (Sun, 26 Jun 2011) Log Message: ----------- PurchData no number_format on price - fix cost update in WorkOrderCosting.php Modified Paths: -------------- trunk/PurchData.php trunk/WorkOrderCosting.php trunk/doc/Change.log Modified: trunk/PurchData.php =================================================================== --- trunk/PurchData.php 2011-06-26 00:14:07 UTC (rev 4606) +++ trunk/PurchData.php 2011-06-26 01:21:26 UTC (rev 4607) @@ -37,36 +37,28 @@ $InputError = 1; prnMsg(_('There is no stock item set up enter the stock code or select a stock item using the search page'), 'error'); } - if (!is_numeric(doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['Price'])))) { + if (!is_numeric($_POST['Price'])) { $InputError = 1; unset($_POST['Price']); prnMsg(_('The price entered was not numeric and a number is expected. No changes have been made to the database'), 'error'); - } else { - $_POST['Price'] = doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['Price'])); } if ($_POST['Price'] == 0) { prnMsg(_('The price entered is zero') . ' ' . _('Is this intentional?'), 'warn'); } - if (!is_numeric(doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['LeadTime'])))) { + if (!is_numeric($_POST['LeadTime'])) { $InputError = 1; unset($_POST['LeadTime']); prnMsg(_('The lead time entered was not numeric a number of days is expected no changes have been made to the database'), 'error'); - } else { - $_POST['LeadTime'] = doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['LeadTime'])); } - if (!is_numeric(doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['MinOrderQty'])))) { + if (!is_numeric($_POST['MinOrderQty'])) { $InputError = 1; unset($_POST['MinOrderQty']); prnMsg(_('The minimum order quantity was not numeric and a number is expected no changes have been made to the database'), 'error'); - } else { - $_POST['MinOrderQty'] =doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['MinOrderQty'])); - } - if (!is_numeric(doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['ConversionFactor'])))) { + } + if (!is_numeric($_POST['ConversionFactor'])) { $InputError = 1; unset($_POST['ConversionFactor']); prnMsg(_('The conversion factor entered was not numeric') . ' (' . _('a number is expected') . '). ' . _('The conversion factor is the number which the price must be divided by to get the unit price in our unit of measure') . '. <br />' . _('E.g.') . ' ' . _('The supplier sells an item by the tonne and we hold stock by the kg') . '. ' . _('The suppliers price must be divided by 1000 to get to our cost per kg') . '. ' . _('The conversion factor to enter is 1000') . '. <br /><br />' . _('No changes will be made to the database'), 'error'); - } else { - $_POST['ConversionFactor'] =doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['ConversionFactor'])); } if ($InputError == 0 AND isset($_POST['AddRecord'])) { $sql = "INSERT INTO purchdata (supplierno, @@ -198,36 +190,36 @@ $DisplayPreferred = _('No'); } printf("<td>%s</td> - <td class=number>%s</td> - <td>%s</td> - <td class=number>%s</td> - <td class=number>%s</td> - <td>%s</td> - <td>%s</td> - <td>%s</td> - <td>%s " . _('days') . "</td> - <td>%s</td> - <td><a href='%s?StockID=%s&SupplierID=%s&Edit=1&EffectiveFrom=%s'>" . _('Edit') . "</a></td> - <td><a href='%s?StockID=%s&SupplierID=%s&Delete=1&EffectiveFrom=%s' onclick=\"return confirm('" . _('Are you sure you wish to delete this suppliers price?') . "');\">" . _('Delete') . "</a></td> - </tr>", - $myrow['suppname'], - number_format($myrow['price'], 3), - $myrow['suppliersuom'], - $myrow['conversionfactor'], - number_format($myrow['price']/$myrow['conversionfactor'],2), - $myrow['currcode'], - ConvertSQLDate($myrow['effectivefrom']), - $myrow['minorderqty'], - $myrow['leadtime'], - $DisplayPreferred, - $_SERVER['PHP_SELF'], - $StockID, - $myrow['supplierno'], - $myrow['effectivefrom'], - $_SERVER['PHP_SELF'], - $StockID, - $myrow['supplierno'], - $myrow['effectivefrom']); + <td class=number>%s</td> + <td>%s</td> + <td class=number>%s</td> + <td class=number>%s</td> + <td>%s</td> + <td>%s</td> + <td>%s</td> + <td>%s " . _('days') . "</td> + <td>%s</td> + <td><a href='%s?StockID=%s&SupplierID=%s&Edit=1&EffectiveFrom=%s'>" . _('Edit') . "</a></td> + <td><a href='%s?StockID=%s&SupplierID=%s&Delete=1&EffectiveFrom=%s' onclick=\"return confirm('" . _('Are you sure you wish to delete this suppliers price?') . "');\">" . _('Delete') . "</a></td> + </tr>", + $myrow['suppname'], + number_format($myrow['price'], 3), + $myrow['suppliersuom'], + $myrow['conversionfactor'], + number_format($myrow['price']/$myrow['conversionfactor'],2), + $myrow['currcode'], + ConvertSQLDate($myrow['effectivefrom']), + $myrow['minorderqty'], + $myrow['leadtime'], + $DisplayPreferred, + $_SERVER['PHP_SELF'], + $StockID, + $myrow['supplierno'], + $myrow['effectivefrom'], + $_SERVER['PHP_SELF'], + $StockID, + $myrow['supplierno'], + $myrow['effectivefrom']); } //end of while loop echo '</table><br/>'; if ($CountPreferreds > 1) { @@ -465,7 +457,7 @@ echo '<tr><td>' . _('Currency') . ':</td> <td><input type=hidden name="CurrCode" . value="' . $CurrCode . '">' . $CurrCode . '</td></tr>'; echo '<tr><td>' . _('Price') . ' (' . _('in Supplier Currency') . '):</td> - <td><input type="text" class="number" name="Price" maxlength=12 size=12 value=' . number_format($_POST['Price'], $myrow['decimalplaces']) . '></td></tr>'; + <td><input type="text" class="number" name="Price" maxlength=12 size=12 value=' . round($_POST['Price'], $myrow['decimalplaces']) . '></td></tr>'; echo '<tr><td>' . _('Date Updated') . ':</td> <td><input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="EffectiveFrom" maxlength=10 size=11 value="' . $_POST['EffectiveFrom'] . '"></td></tr>'; echo '<tr><td>' . _('Our Unit of Measure') . ':</td>'; Modified: trunk/WorkOrderCosting.php =================================================================== --- trunk/WorkOrderCosting.php 2011-06-26 00:14:07 UTC (rev 4606) +++ trunk/WorkOrderCosting.php 2011-06-26 01:21:26 UTC (rev 4607) @@ -27,16 +27,15 @@ } - $ErrMsg = _('Could not retrieve the details of the selected work order'); $WOResult = DB_query("SELECT workorders.loccode, locations.locationname, workorders.requiredby, workorders.startdate, workorders.closed - FROM workorders INNER JOIN locations - ON workorders.loccode=locations.loccode - WHERE workorders.wo='" . $_POST['WO'] . "'", + FROM workorders INNER JOIN locations + ON workorders.loccode=locations.loccode + WHERE workorders.wo='" . $_POST['WO'] . "'", $db, $ErrMsg); @@ -153,13 +152,15 @@ echo '<td>' . $RequirementsRow['stockid'] . '</td> <td>' . $RequirementsRow['description'] . '</td>'; - $IssuesResult = DB_query("SELECT trandate, - qty, - standardcost - FROM stockmoves + $IssuesResult = DB_query("SELECT stockmoves.trandate, + stockmoves.qty, + stockmoves.standardcost, + stockmaster.decimalplaces, + FROM stockmoves INNER JOIN stockmaster + ON stockmoves.stockid = stockmaster.stockid WHERE stockmoves.type=28 - AND reference = '" . $_POST['WO'] . "' - AND stockid = '" . $RequirementsRow['stockid'] . "'", + AND stockmoves.reference = '" . $_POST['WO'] . "' + AND stockmoves.stockid = '" . $RequirementsRow['stockid'] . "'", $db, _('Could not retrieve the issues of the item because:')); $IssueQty =0; @@ -174,7 +175,7 @@ } echo '<td colspan=4></td><td>' . ConvertSQLDate($IssuesRow['trandate']) . '</td> <td class=number>' . number_format(-$IssuesRow['qty'],$RequirementsRow['decimalplaces']) . '</td> - <td class=number>' . number_format(-($IssuesRow['qty']*$IssuesRow['standardcost']),2) . '</td></tr>'; + <td class=number>' . number_format(-($IssuesRow['qty']*$IssuesRow['standardcost']),$IssuesRow['decimalplaces']) . '</td></tr>'; $IssueQty -= $IssuesRow['qty'];// because qty for the stock movement will be negative $IssueCost -= ($IssuesRow['qty']*$IssuesRow['standardcost']); @@ -392,7 +393,7 @@ labourcost=0, overheadcost=0, lastcost='" . $WORow['currcost'] . "' - WHERE stockid='" . $_POST['StockID'] . "'"; + WHERE stockid='" . $WORow['stockid'] . "'"; $ErrMsg = _('The cost details for the stock item could not be updated because'); $DbgMsg = _('The SQL that failed was'); Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-26 00:14:07 UTC (rev 4606) +++ trunk/doc/Change.log 2011-06-26 01:21:26 UTC (rev 4607) @@ -1,6 +1,9 @@ webERP Change Log -26/6/11 Phil: Went back to no numberformating on PO_Items.php price and quantity - Brian May still reporting issues +26/6/11 Phil: Fixed reference to $_POST['StockID'] in WorkOrderCosting.php when updating the new weighted average cost +26/6/11 Phil: Went back to no number_formatting on PurchData.php +26/6/11 Phil: Went back to no number_formatting on PO_Items.php price and quantity - Brian May still reporting issues +25/6/11 Phil: Made PO_PDFPurchOrder.php have the description of the order item run over several lines where it exceeds the width of the space allowed for it 22/6/11 Phil: Added message to AccountGroups.php to show that child account groups cannot have changes to their account section, their profit and loss or balance sheet and sequence in TB as these properties belong only to parent account groups and are inherited by the kids 23/6/11 Phil: SelectOrderItems.php includes/DefineCartClass.php repaired credit checks 19/6/11 Phil: Credit_Invoice.php typos in quoting changes preventing posting credits on write offs also sql on gl account selection for write off This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-27 10:30:26
|
Revision: 4608 http://web-erp.svn.sourceforge.net/web-erp/?rev=4608&view=rev Author: daintree Date: 2011-06-27 10:30:19 +0000 (Mon, 27 Jun 2011) Log Message: ----------- MRP fix per Exson Modified Paths: -------------- trunk/MRP.php trunk/doc/Change.log Modified: trunk/MRP.php =================================================================== --- trunk/MRP.php 2011-06-26 01:21:26 UTC (rev 4607) +++ trunk/MRP.php 2011-06-27 10:30:19 UTC (rev 4608) @@ -588,7 +588,7 @@ -function LevelNetting(&$db,$part,$eoq,$pansize,$shrinkfactor) { +function LevelNetting(&$db,$part,$eoq,$PanSize,$ShrinkFactor) { // Create an array of mrprequirements and an array of mrpsupplies, then read through // them seeing if all requirements are covered by supplies. Create a planned order // for any unmet requirements. Change dates if necessary for the supplies. @@ -600,13 +600,13 @@ $myrow=DB_fetch_row($result); $DecimalPlaces = $myrow[0]; - // Load mrprequirements into $requirements array + // Load mrprequirements into $Requirements array $sql = "SELECT * FROM mrprequirements WHERE part = '" .$part. "' ORDER BY daterequired"; $result = DB_query($sql,$db); - $requirements = array(); + $Requirements = array(); $i = 0; while ($myrow=DB_fetch_array($result)) { - array_push($requirements,$myrow); + array_push($Requirements,$myrow); $i++; } //end of while loop @@ -621,32 +621,32 @@ } //end of while loop // Go through all requirements and check if have supplies to cover them - $requirementcount = count($requirements); + $Requirementcount = count($Requirements); $supplycount = count($supplies); $reqi = 0; //Index for requirements $supi = 0; // index for supplies $totalrequirement = 0; $totalsupply = 0; - if ($requirementcount > 0 && $supplycount > 0) { - $totalrequirement += $requirements[$reqi]['quantity']; + if ($Requirementcount > 0 && $supplycount > 0) { + $totalrequirement += $Requirements[$reqi]['quantity']; $totalsupply += $supplies[$supi]['supplyquantity']; while ($totalrequirement > 0 && $totalsupply > 0) { $supplies[$supi]['updateflag'] = 1; // ******** Put leeway calculation in here ******** $duedate = ConvertSQLDate($supplies[$supi]['duedate']); - $reqdate = ConvertSQLDate($requirements[$reqi]['daterequired']); + $reqdate = ConvertSQLDate($Requirements[$reqi]['daterequired']); $datediff = DateDiff($duedate,$reqdate,'d'); - //if ($supplies[$supi]['duedate'] > $requirements[$reqi]['daterequired']) { + //if ($supplies[$supi]['duedate'] > $Requirements[$reqi]['daterequired']) { if ($datediff > abs($_POST['Leeway'])) { - $sql = "UPDATE mrpsupplies SET mrpdate = '" . $requirements[$reqi]['daterequired'] . + $sql = "UPDATE mrpsupplies SET mrpdate = '" . $Requirements[$reqi]['daterequired'] . "' WHERE id = '" . $supplies[$supi]['id'] . "' AND duedate = mrpdate"; $result = DB_query($sql,$db); } if ($totalrequirement > $totalsupply) { $totalrequirement -= $totalsupply; - $requirements[$reqi]['quantity'] -= $totalsupply; + $Requirements[$reqi]['quantity'] -= $totalsupply; $totalsupply = 0; $supplies[$supi]['supplyquantity'] = 0; $supi++; @@ -657,10 +657,10 @@ $totalsupply -= $totalrequirement; $supplies[$supi]['supplyquantity'] -= $totalrequirement; $totalrequirement = 0; - $requirements[$reqi]['quantity'] = 0; + $Requirements[$reqi]['quantity'] = 0; $reqi++; - if ($requirementcount > $reqi) { - $totalrequirement += $requirements[$reqi]['quantity']; + if ($Requirementcount > $reqi) { + $totalrequirement += $Requirements[$reqi]['quantity']; } } // End of if $totalrequirement > $totalsupply } // End of while @@ -676,39 +676,39 @@ // would be an excess of 3; if there was another requirement for 3 or less, the excess // would cover it, so no planned order would have to be created for the second requirement. $excessqty = 0; - foreach ($requirements as $key => $row) { - $daterequired[$key] = $row['daterequired']; + foreach ($Requirements as $key => $row) { + $DateRequired[$key] = $row['daterequired']; } - if (count($requirements)) { - array_multisort($daterequired, SORT_ASC, $requirements); + if (count($Requirements)) { + array_multisort($DateRequired, SORT_ASC, $Requirements); } - foreach($requirements as $requirement) { + foreach($Requirements as $Requirement) { // First, inflate requirement if there is a shrinkage factor // Should the quantity be rounded? - if ($_POST['shrinkageflag'] == 'y' and $shrinkfactor > 0) { - $requirement['quantity'] = ($requirement['quantity'] * 100) / (100 - $shrinkfactor); - $requirement['quantity'] = round($requirement['quantity'],$DecimalPlaces); + if ($_POST['shrinkageflag'] == 'y' AND $ShrinkFactor > 0) { + $Requirement['quantity'] = ($Requirement['quantity'] * 100) / (100 - $ShrinkFactor); + $Requirement['quantity'] = round($Requirement['quantity'],$DecimalPlaces); } - if ($excessqty >= $requirement['quantity']) { - $plannedqty = 0; - $excessqty -= $requirement['quantity']; + if ($excessqty >= $Requirement['quantity']) { + $PlannedQty = 0; + $excessqty -= $Requirement['quantity']; } else { - $plannedqty = $requirement['quantity'] - $excessqty; + $PlannedQty = $Requirement['quantity'] - $excessqty; $excessqty = 0; } - if ($plannedqty > 0) { - if ($_POST['eoqflag'] == 'y' and $eoq > $plannedqty) { - $excessqty = $eoq - $plannedqty; - $plannedqty = $eoq; + if ($PlannedQty > 0) { + if ($_POST['eoqflag'] == 'y' AND $eoq > $PlannedQty) { + $excessqty = $eoq - $PlannedQty; + $PlannedQty = $eoq; } // Pansize calculation here - // if $plannedqty not evenly divisible by $pansize, calculate as $plannedqty - // divided by $pansize and rounded up to the next highest integer and then + // if $PlannedQty not evenly divisible by $PanSize, calculate as $PlannedQty + // divided by $PanSize and rounded up to the next highest integer and then // multiplied by the pansize. For instance, with a planned qty of 17 with a pansize // of 5, divide 17 by 5 to get 3 with a remainder of 2, which is rounded up to 4 // and then multiplied by 5 - the pansize - to get 20 - if ($_POST['pansizeflag'] == 'y' and $pansize != 0 and $plannedqty % $pansize != 0) { - $plannedqty = ceil($plannedqty / $pansize) * $pansize; + if ($_POST['pansizeflag'] == 'y' AND $PanSize != 0 AND $PlannedQty != 0) { + $PlannedQty = ceil($PlannedQty / $PanSize) * $PanSize; } $sql = "INSERT INTO mrpplannedorders (id, part, @@ -719,27 +719,27 @@ mrpdate, updateflag) VALUES (NULL, - '" . $requirement['part'] . "', - '" . $requirement['daterequired'] . "', - '" . $plannedqty . "', - '" . $requirement['mrpdemandtype'] . "', - '" . $requirement['orderno'] . "', - '" . $requirement['daterequired'] . "', + '" . $Requirement['part'] . "', + '" . $Requirement['daterequired'] . "', + '" . $PlannedQty . "', + '" . $Requirement['mrpdemandtype'] . "', + '" . $Requirement['orderno'] . "', + '" . $Requirement['daterequired'] . "', '0')"; $result = DB_query($sql,$db); // If part has lower level components, create requirements for them $sql = "SELECT COUNT(*) FROM bom - WHERE parent ='" . $requirement['part'] . "' + WHERE parent ='" . $Requirement['part'] . "' GROUP BY parent"; $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); if ($myrow[0] > 0) { - CreateLowerLevelRequirement($db,$requirement['part'],$requirement['daterequired'], - $plannedqty,$requirement['mrpdemandtype'],$requirement['orderno'], - $requirement['whererequired']); + CreateLowerLevelRequirement($db,$Requirement['part'],$Requirement['daterequired'], + $PlannedQty,$Requirement['mrpdemandtype'],$Requirement['orderno'], + $Requirement['whererequired']); } - } // End of if $plannedqty > 0 - } // End of foreach $requirements + } // End of if $PlannedQty > 0 + } // End of foreach $Requirements // If there are any supplies not used and updateflag is zero, those supplies are not // necessary, so change date @@ -756,12 +756,12 @@ } // End of LevelNetting ------------------------------------------------------- function CreateLowerLevelRequirement(&$db, - $toppart, - $topdate, + $TopPart, + $TopDate, $topquantity, - $topmrpdemandtype, - $toporderno, - $whererequired) { + $TopMRPDemandType, + $TopOrderNo, + $WhereRequired) { // Creates an mrprequirement based on the net requirement from the part above it in the bom $sql = "SELECT bom.component, bom.quantity, @@ -770,43 +770,43 @@ FROM bom LEFT JOIN levels ON bom.component = levels.part - WHERE bom.parent = '".$toppart."' + WHERE bom.parent = '".$TopPart."' AND effectiveafter <= now() AND effectiveto >= now()"; - $resultbom = DB_query($sql,$db); - while ($myrow=DB_fetch_array($resultbom)) { + $ResultBOM = DB_query($sql,$db); + while ($myrow=DB_fetch_array($ResultBOM)) { // Calculate required date by subtracting leadtime from top part's required date - $leadtime = $myrow['leadtime']; + $LeadTime = $myrow['leadtime']; // Following sql finds daynumber for the top part's required date, subtracts leadtime, and finds // a valid manufacturing date for the daynumber. There is only one valid manufacturing date // for each daynumber, but there could be several non-manufacturing dates for the // same daynumber. MRPCalendar.php maintains the manufacturing calendar. - $calendarsql = "SELECT COUNT(*),cal2.calendardate + $CalendarSQL = "SELECT COUNT(*),cal2.calendardate FROM mrpcalendar LEFT JOIN mrpcalendar as cal2 - ON (mrpcalendar.daynumber - '".$leadtime."') = cal2.daynumber - WHERE mrpcalendar.calendardate = '".$topdate."' + ON (mrpcalendar.daynumber - '".$LeadTime."') = cal2.daynumber + WHERE mrpcalendar.calendardate = '".$TopDate."' AND cal2.manufacturingflag='1' GROUP BY cal2.calendardate"; - $resultdate = DB_query($calendarsql,$db); - $myrowdate=DB_fetch_array($resultdate); - $newdate = $myrowdate[1]; - // If can't find date based on manufacturing calendar, use $topdate + $ResultDate = DB_query($CalendarSQL,$db); + $myrowdate=DB_fetch_array($ResultDate); + $NewDate = $myrowdate[1]; + // If can't find date based on manufacturing calendar, use $TopDate if ($myrowdate[0] == 0){ - // Convert $topdate from mysql format to system date format, use that to subtract leadtime + // Convert $TopDate from mysql format to system date format, use that to subtract leadtime // from it using DateAdd, convert that date back to mysql format - $convertdate = ConvertSQLDate($topdate); - $dateadd = DateAdd($convertdate,"d",($leadtime * -1)); - $newdate = FormatDateForSQL($dateadd); + $ConvertDate = ConvertSQLDate($TopDate); + $DateAdd = DateAdd($ConvertDate,'d',($LeadTime * -1)); + $NewDate = FormatDateForSQL($DateAdd); } - $component = $myrow['component']; - $extendedquantity = $myrow['quantity'] * $topquantity; + $Component = $myrow['component']; + $ExtendedQuantity = $myrow['quantity'] * $topquantity; // Commented out the following lines 8/15/09 because the eoq should be considered in the // LevelNetting() function where $excessqty is calculated -// if ($myrow['eoq'] > $extendedquantity) { -// $extendedquantity = $myrow['eoq']; +// if ($myrow['eoq'] > $ExtendedQuantity) { +// $ExtendedQuantity = $myrow['eoq']; // } $sql = "INSERT INTO mrprequirements (part, @@ -816,13 +816,13 @@ orderno, directdemand, whererequired) - VALUES ('".$component."', - '".$newdate."', - '".$extendedquantity."', - '".$topmrpdemandtype."', - '".$toporderno."', + VALUES ('".$Component."', + '".$NewDate."', + '".$ExtendedQuantity."', + '".$TopMRPDemandType."', + '".$TopOrderNo."', '0', - '".$whererequired."')"; + '".$WhereRequired."')"; $result = DB_query($sql,$db); } //end of while loop Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-26 01:21:26 UTC (rev 4607) +++ trunk/doc/Change.log 2011-06-27 10:30:19 UTC (rev 4608) @@ -1,5 +1,6 @@ webERP Change Log +27/6/11 Exson: MRP>php fixed modulus arithmetic that prevented suggesting production quantities where the quantity was less than 1 - the calculation using PanSize should round up to the nearest whole unit to manufacture 26/6/11 Phil: Fixed reference to $_POST['StockID'] in WorkOrderCosting.php when updating the new weighted average cost 26/6/11 Phil: Went back to no number_formatting on PurchData.php 26/6/11 Phil: Went back to no number_formatting on PO_Items.php price and quantity - Brian May still reporting issues This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-27 10:30:27
|
Revision: 4608 http://web-erp.svn.sourceforge.net/web-erp/?rev=4608&view=rev Author: daintree Date: 2011-06-27 10:30:19 +0000 (Mon, 27 Jun 2011) Log Message: ----------- MRP fix per Exson Modified Paths: -------------- trunk/MRP.php trunk/doc/Change.log Modified: trunk/MRP.php =================================================================== --- trunk/MRP.php 2011-06-26 01:21:26 UTC (rev 4607) +++ trunk/MRP.php 2011-06-27 10:30:19 UTC (rev 4608) @@ -588,7 +588,7 @@ -function LevelNetting(&$db,$part,$eoq,$pansize,$shrinkfactor) { +function LevelNetting(&$db,$part,$eoq,$PanSize,$ShrinkFactor) { // Create an array of mrprequirements and an array of mrpsupplies, then read through // them seeing if all requirements are covered by supplies. Create a planned order // for any unmet requirements. Change dates if necessary for the supplies. @@ -600,13 +600,13 @@ $myrow=DB_fetch_row($result); $DecimalPlaces = $myrow[0]; - // Load mrprequirements into $requirements array + // Load mrprequirements into $Requirements array $sql = "SELECT * FROM mrprequirements WHERE part = '" .$part. "' ORDER BY daterequired"; $result = DB_query($sql,$db); - $requirements = array(); + $Requirements = array(); $i = 0; while ($myrow=DB_fetch_array($result)) { - array_push($requirements,$myrow); + array_push($Requirements,$myrow); $i++; } //end of while loop @@ -621,32 +621,32 @@ } //end of while loop // Go through all requirements and check if have supplies to cover them - $requirementcount = count($requirements); + $Requirementcount = count($Requirements); $supplycount = count($supplies); $reqi = 0; //Index for requirements $supi = 0; // index for supplies $totalrequirement = 0; $totalsupply = 0; - if ($requirementcount > 0 && $supplycount > 0) { - $totalrequirement += $requirements[$reqi]['quantity']; + if ($Requirementcount > 0 && $supplycount > 0) { + $totalrequirement += $Requirements[$reqi]['quantity']; $totalsupply += $supplies[$supi]['supplyquantity']; while ($totalrequirement > 0 && $totalsupply > 0) { $supplies[$supi]['updateflag'] = 1; // ******** Put leeway calculation in here ******** $duedate = ConvertSQLDate($supplies[$supi]['duedate']); - $reqdate = ConvertSQLDate($requirements[$reqi]['daterequired']); + $reqdate = ConvertSQLDate($Requirements[$reqi]['daterequired']); $datediff = DateDiff($duedate,$reqdate,'d'); - //if ($supplies[$supi]['duedate'] > $requirements[$reqi]['daterequired']) { + //if ($supplies[$supi]['duedate'] > $Requirements[$reqi]['daterequired']) { if ($datediff > abs($_POST['Leeway'])) { - $sql = "UPDATE mrpsupplies SET mrpdate = '" . $requirements[$reqi]['daterequired'] . + $sql = "UPDATE mrpsupplies SET mrpdate = '" . $Requirements[$reqi]['daterequired'] . "' WHERE id = '" . $supplies[$supi]['id'] . "' AND duedate = mrpdate"; $result = DB_query($sql,$db); } if ($totalrequirement > $totalsupply) { $totalrequirement -= $totalsupply; - $requirements[$reqi]['quantity'] -= $totalsupply; + $Requirements[$reqi]['quantity'] -= $totalsupply; $totalsupply = 0; $supplies[$supi]['supplyquantity'] = 0; $supi++; @@ -657,10 +657,10 @@ $totalsupply -= $totalrequirement; $supplies[$supi]['supplyquantity'] -= $totalrequirement; $totalrequirement = 0; - $requirements[$reqi]['quantity'] = 0; + $Requirements[$reqi]['quantity'] = 0; $reqi++; - if ($requirementcount > $reqi) { - $totalrequirement += $requirements[$reqi]['quantity']; + if ($Requirementcount > $reqi) { + $totalrequirement += $Requirements[$reqi]['quantity']; } } // End of if $totalrequirement > $totalsupply } // End of while @@ -676,39 +676,39 @@ // would be an excess of 3; if there was another requirement for 3 or less, the excess // would cover it, so no planned order would have to be created for the second requirement. $excessqty = 0; - foreach ($requirements as $key => $row) { - $daterequired[$key] = $row['daterequired']; + foreach ($Requirements as $key => $row) { + $DateRequired[$key] = $row['daterequired']; } - if (count($requirements)) { - array_multisort($daterequired, SORT_ASC, $requirements); + if (count($Requirements)) { + array_multisort($DateRequired, SORT_ASC, $Requirements); } - foreach($requirements as $requirement) { + foreach($Requirements as $Requirement) { // First, inflate requirement if there is a shrinkage factor // Should the quantity be rounded? - if ($_POST['shrinkageflag'] == 'y' and $shrinkfactor > 0) { - $requirement['quantity'] = ($requirement['quantity'] * 100) / (100 - $shrinkfactor); - $requirement['quantity'] = round($requirement['quantity'],$DecimalPlaces); + if ($_POST['shrinkageflag'] == 'y' AND $ShrinkFactor > 0) { + $Requirement['quantity'] = ($Requirement['quantity'] * 100) / (100 - $ShrinkFactor); + $Requirement['quantity'] = round($Requirement['quantity'],$DecimalPlaces); } - if ($excessqty >= $requirement['quantity']) { - $plannedqty = 0; - $excessqty -= $requirement['quantity']; + if ($excessqty >= $Requirement['quantity']) { + $PlannedQty = 0; + $excessqty -= $Requirement['quantity']; } else { - $plannedqty = $requirement['quantity'] - $excessqty; + $PlannedQty = $Requirement['quantity'] - $excessqty; $excessqty = 0; } - if ($plannedqty > 0) { - if ($_POST['eoqflag'] == 'y' and $eoq > $plannedqty) { - $excessqty = $eoq - $plannedqty; - $plannedqty = $eoq; + if ($PlannedQty > 0) { + if ($_POST['eoqflag'] == 'y' AND $eoq > $PlannedQty) { + $excessqty = $eoq - $PlannedQty; + $PlannedQty = $eoq; } // Pansize calculation here - // if $plannedqty not evenly divisible by $pansize, calculate as $plannedqty - // divided by $pansize and rounded up to the next highest integer and then + // if $PlannedQty not evenly divisible by $PanSize, calculate as $PlannedQty + // divided by $PanSize and rounded up to the next highest integer and then // multiplied by the pansize. For instance, with a planned qty of 17 with a pansize // of 5, divide 17 by 5 to get 3 with a remainder of 2, which is rounded up to 4 // and then multiplied by 5 - the pansize - to get 20 - if ($_POST['pansizeflag'] == 'y' and $pansize != 0 and $plannedqty % $pansize != 0) { - $plannedqty = ceil($plannedqty / $pansize) * $pansize; + if ($_POST['pansizeflag'] == 'y' AND $PanSize != 0 AND $PlannedQty != 0) { + $PlannedQty = ceil($PlannedQty / $PanSize) * $PanSize; } $sql = "INSERT INTO mrpplannedorders (id, part, @@ -719,27 +719,27 @@ mrpdate, updateflag) VALUES (NULL, - '" . $requirement['part'] . "', - '" . $requirement['daterequired'] . "', - '" . $plannedqty . "', - '" . $requirement['mrpdemandtype'] . "', - '" . $requirement['orderno'] . "', - '" . $requirement['daterequired'] . "', + '" . $Requirement['part'] . "', + '" . $Requirement['daterequired'] . "', + '" . $PlannedQty . "', + '" . $Requirement['mrpdemandtype'] . "', + '" . $Requirement['orderno'] . "', + '" . $Requirement['daterequired'] . "', '0')"; $result = DB_query($sql,$db); // If part has lower level components, create requirements for them $sql = "SELECT COUNT(*) FROM bom - WHERE parent ='" . $requirement['part'] . "' + WHERE parent ='" . $Requirement['part'] . "' GROUP BY parent"; $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); if ($myrow[0] > 0) { - CreateLowerLevelRequirement($db,$requirement['part'],$requirement['daterequired'], - $plannedqty,$requirement['mrpdemandtype'],$requirement['orderno'], - $requirement['whererequired']); + CreateLowerLevelRequirement($db,$Requirement['part'],$Requirement['daterequired'], + $PlannedQty,$Requirement['mrpdemandtype'],$Requirement['orderno'], + $Requirement['whererequired']); } - } // End of if $plannedqty > 0 - } // End of foreach $requirements + } // End of if $PlannedQty > 0 + } // End of foreach $Requirements // If there are any supplies not used and updateflag is zero, those supplies are not // necessary, so change date @@ -756,12 +756,12 @@ } // End of LevelNetting ------------------------------------------------------- function CreateLowerLevelRequirement(&$db, - $toppart, - $topdate, + $TopPart, + $TopDate, $topquantity, - $topmrpdemandtype, - $toporderno, - $whererequired) { + $TopMRPDemandType, + $TopOrderNo, + $WhereRequired) { // Creates an mrprequirement based on the net requirement from the part above it in the bom $sql = "SELECT bom.component, bom.quantity, @@ -770,43 +770,43 @@ FROM bom LEFT JOIN levels ON bom.component = levels.part - WHERE bom.parent = '".$toppart."' + WHERE bom.parent = '".$TopPart."' AND effectiveafter <= now() AND effectiveto >= now()"; - $resultbom = DB_query($sql,$db); - while ($myrow=DB_fetch_array($resultbom)) { + $ResultBOM = DB_query($sql,$db); + while ($myrow=DB_fetch_array($ResultBOM)) { // Calculate required date by subtracting leadtime from top part's required date - $leadtime = $myrow['leadtime']; + $LeadTime = $myrow['leadtime']; // Following sql finds daynumber for the top part's required date, subtracts leadtime, and finds // a valid manufacturing date for the daynumber. There is only one valid manufacturing date // for each daynumber, but there could be several non-manufacturing dates for the // same daynumber. MRPCalendar.php maintains the manufacturing calendar. - $calendarsql = "SELECT COUNT(*),cal2.calendardate + $CalendarSQL = "SELECT COUNT(*),cal2.calendardate FROM mrpcalendar LEFT JOIN mrpcalendar as cal2 - ON (mrpcalendar.daynumber - '".$leadtime."') = cal2.daynumber - WHERE mrpcalendar.calendardate = '".$topdate."' + ON (mrpcalendar.daynumber - '".$LeadTime."') = cal2.daynumber + WHERE mrpcalendar.calendardate = '".$TopDate."' AND cal2.manufacturingflag='1' GROUP BY cal2.calendardate"; - $resultdate = DB_query($calendarsql,$db); - $myrowdate=DB_fetch_array($resultdate); - $newdate = $myrowdate[1]; - // If can't find date based on manufacturing calendar, use $topdate + $ResultDate = DB_query($CalendarSQL,$db); + $myrowdate=DB_fetch_array($ResultDate); + $NewDate = $myrowdate[1]; + // If can't find date based on manufacturing calendar, use $TopDate if ($myrowdate[0] == 0){ - // Convert $topdate from mysql format to system date format, use that to subtract leadtime + // Convert $TopDate from mysql format to system date format, use that to subtract leadtime // from it using DateAdd, convert that date back to mysql format - $convertdate = ConvertSQLDate($topdate); - $dateadd = DateAdd($convertdate,"d",($leadtime * -1)); - $newdate = FormatDateForSQL($dateadd); + $ConvertDate = ConvertSQLDate($TopDate); + $DateAdd = DateAdd($ConvertDate,'d',($LeadTime * -1)); + $NewDate = FormatDateForSQL($DateAdd); } - $component = $myrow['component']; - $extendedquantity = $myrow['quantity'] * $topquantity; + $Component = $myrow['component']; + $ExtendedQuantity = $myrow['quantity'] * $topquantity; // Commented out the following lines 8/15/09 because the eoq should be considered in the // LevelNetting() function where $excessqty is calculated -// if ($myrow['eoq'] > $extendedquantity) { -// $extendedquantity = $myrow['eoq']; +// if ($myrow['eoq'] > $ExtendedQuantity) { +// $ExtendedQuantity = $myrow['eoq']; // } $sql = "INSERT INTO mrprequirements (part, @@ -816,13 +816,13 @@ orderno, directdemand, whererequired) - VALUES ('".$component."', - '".$newdate."', - '".$extendedquantity."', - '".$topmrpdemandtype."', - '".$toporderno."', + VALUES ('".$Component."', + '".$NewDate."', + '".$ExtendedQuantity."', + '".$TopMRPDemandType."', + '".$TopOrderNo."', '0', - '".$whererequired."')"; + '".$WhereRequired."')"; $result = DB_query($sql,$db); } //end of while loop Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-26 01:21:26 UTC (rev 4607) +++ trunk/doc/Change.log 2011-06-27 10:30:19 UTC (rev 4608) @@ -1,5 +1,6 @@ webERP Change Log +27/6/11 Exson: MRP>php fixed modulus arithmetic that prevented suggesting production quantities where the quantity was less than 1 - the calculation using PanSize should round up to the nearest whole unit to manufacture 26/6/11 Phil: Fixed reference to $_POST['StockID'] in WorkOrderCosting.php when updating the new weighted average cost 26/6/11 Phil: Went back to no number_formatting on PurchData.php 26/6/11 Phil: Went back to no number_formatting on PO_Items.php price and quantity - Brian May still reporting issues This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-28 10:12:34
|
Revision: 4609 http://web-erp.svn.sourceforge.net/web-erp/?rev=4609&view=rev Author: daintree Date: 2011-06-28 10:12:27 +0000 (Tue, 28 Jun 2011) Log Message: ----------- Modified Paths: -------------- trunk/MRPDemands.php trunk/PrintCustOrder_generic.php trunk/doc/Change.log Modified: trunk/MRPDemands.php =================================================================== --- trunk/MRPDemands.php 2011-06-27 10:30:19 UTC (rev 4608) +++ trunk/MRPDemands.php 2011-06-28 10:12:27 UTC (rev 4609) @@ -103,8 +103,9 @@ $k++; } $tabindex=$j+4; - echo "<td><input tabindex='".$tabindex."' type=submit name='StockID' value='".$myrow['stockid']."'</td> - <td>".$myrow['description']."</td></tr>"; + echo '<td><input tabindex="' . $tabindex . '" type=submit name="StockID" value="' . $myrow['stockid'] .'"</td> + <td>' . $myrow['description'] . '</td> + </tr>'; $j++; } //end of while loop @@ -212,7 +213,7 @@ $result = DB_query($sql,$db,_('The update/addition of the MRP demand record failed because')); prnMsg($msg,'success'); - echo '<br>'; + echo '<br />'; unset ($_POST['MRPDemandtype']); unset ($_POST['Quantity']); unset ($_POST['StockID']); @@ -225,7 +226,7 @@ } // End of function submit() -function delete(&$db,$DemandID,$demandtype,$StockID) { //####DELETE_DELETE_DELETE_DELETE_DELETE_DELETE_#### +function delete(&$db,$DemandID,$DemandType,$StockID) { //####DELETE_DELETE_DELETE_DELETE_DELETE_DELETE_#### // If wanted to have a Confirm routine before did actually deletion, could check if // deletion = "yes"; if it did, display link that redirects back to this page @@ -234,8 +235,8 @@ // This deletes an individual record by DemandID if called from a listall that shows // edit/delete or deletes all of a particular demand type if press Delete Demand Type button. $where = " "; - if ($demandtype) { - $where = " WHERE mrpdemandtype ='" . $demandtype . "'"; + if ($DemandType) { + $where = " WHERE mrpdemandtype ='" . $DemandType . "'"; } if ($DemandID) { $where = " WHERE demandid ='" . $DemandID . "'"; @@ -246,7 +247,7 @@ if ($DemandID) { prnMsg(_('The MRP demand record for') .' '. $StockID .' '. _('has been deleted'),'succes'); } else { - prnMsg(_('All records for demand type') .' '. $demandtype .' ' . _('have been deleted'),'succes'); + prnMsg(_('All records for demand type') .' '. $DemandType .' ' . _('have been deleted'),'succes'); } unset ($DemandID); unset ($StockID); @@ -255,7 +256,7 @@ } // End of function delete() -function listall(&$db,$part,$demandtype) {//####LISTALL_LISTALL_LISTALL_LISTALL_LISTALL_LISTALL_LISTALL_#### +function listall(&$db,$part,$DemandType) {//####LISTALL_LISTALL_LISTALL_LISTALL_LISTALL_LISTALL_LISTALL_#### // List all mrpdemands records, with anchors to Edit or Delete records if hit List All anchor // Lists some in hit List Selection submit button, and uses part number if it is entered or @@ -264,33 +265,34 @@ echo '<form action="' . $_SERVER['PHP_SELF'] .'" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; $where = " "; - if ($demandtype) { - $where = " WHERE mrpdemandtype ='" . $demandtype . "'"; + if ($DemandType) { + $where = " WHERE mrpdemandtype ='" . $DemandType . "'"; } if ($part) { $where = " WHERE mrpdemands.stockid ='" . $part . "'"; } // If part is entered, it overrides demandtype - $sql = 'SELECT mrpdemands.demandid, + $sql = "SELECT mrpdemands.demandid, mrpdemands.stockid, mrpdemands.mrpdemandtype, mrpdemands.quantity, mrpdemands.duedate, stockmaster.description - FROM mrpdemands - LEFT JOIN stockmaster on mrpdemands.stockid = stockmaster.stockid' . - $where . ' ORDER BY mrpdemands.stockid, mrpdemands.duedate'; - //echo "<br/>sql is $sql<br/>"; + FROM mrpdemands + LEFT JOIN stockmaster on mrpdemands.stockid = stockmaster.stockid" . + $where . " ORDER BY mrpdemands.stockid, mrpdemands.duedate"; + $ErrMsg = _('The SQL to find the parts selected failed with the message'); $result = DB_query($sql,$db,$ErrMsg); - echo "<table class=selection> - <tr bgcolor =#800000><th>" . _('Part Number') . "</th> - <th>" . _('Description') . "</th> - <th>" . _('Demand Type') . "</th> - <th>" . _('Quantity') . "</th> - <th>" . _('Due Date') . "</th> - </tr>"; + echo '<table class="selection"> + <tr bgcolor =#800000> + <th>' . _('Part Number') . '</th> + <th>' . _('Description') . '</th> + <th>' . _('Demand Type') . '</th> + <th>' . _('Quantity') . '</th> + <th>' . _('Due Date') . '</th> + </tr>'; $ctr = 0; while ($myrow = DB_fetch_row($result)) { $displaydate = ConvertSQLDate($myrow[4]); @@ -300,8 +302,8 @@ <td>' . $myrow[2] . '</td> <td>' . $myrow[3] . '</td> <td>' . $displaydate . '</td> - <td><a href="' .$_SERVER['PHP_SELF'] .'DemandID=' . $myrow[0] . '&StockID=' . $myrow[1] . '">' . _('Edit') . '</td> - <td><a href="' . $_SERVER['PHP_SELF'] . 'DemandID=' . $myrow[0] . '&StockID=' . $myrow[1].'&delete=yes">' . _('Delete') .'</td> + <td><a href="' .$_SERVER['PHP_SELF'] .'?DemandID=' . $myrow[0] . '&StockID=' . $myrow[1] . '">' . _('Edit') . '</td> + <td><a href="' . $_SERVER['PHP_SELF'] . '?DemandID=' . $myrow[0] . '&StockID=' . $myrow[1].'&delete=yes" onclick="return confirm(\'' . _('Are you sure you wish to delete this demand?') . '\');">' . _('Delete') .'</td> </tr>'; } @@ -378,15 +380,21 @@ $_POST['Duedate']=' '; } - echo '<tr><td>' . _('Quantity') . ":</td><td><input type='Text' name='Quantity' class=number size=6 - maxlength=6 value=" . $_POST['Quantity'] . '></td></tr><tr><td>' . _('Due Date') . ":</td> - <td><input type='Text' class=date alt='".$_SESSION['DefaultDateFormat']."' name='Duedate' size=12 - maxlength=12 value=" . $_POST['Duedate'] . '></td></tr>'; + echo '<tr><td>' . _('Quantity') . ':</td> + <td><input type="text" name="Quantity" class="number" size="6" maxlength="6" value=' . $_POST['Quantity'] . '></td> + </tr> + <tr> + <td>' . _('Due Date') . ':</td> + <td><input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="Duedate" size="12" maxlength="12" value="' . $_POST['Duedate'] . '"></td> + </tr>'; // Generate selections for Demand Type - echo '<tr><td>' . _('Demand Type') . "</td><td><select name='MRPDemandtype'>"; - $sql = 'SELECT mrpdemandtype, + echo '<tr> + <td>' . _('Demand Type') . '</td> + <td><select name="MRPDemandtype">'; + + $sql = "SELECT mrpdemandtype, description - FROM mrpdemandtypes'; + FROM mrpdemandtypes"; $result = DB_query($sql,$db); while ($myrow = DB_fetch_array($result)) { if (isset($_POST['MRPDemandtype']) and $myrow['mrpdemandtype']==$_POST['MRPDemandtype']) { @@ -399,18 +407,18 @@ echo '</select></td></tr>'; echo '</table>'; - echo '<br><div class=centre><input type="submit" name="submit" value="' . _('Enter Information') . '">  '; + echo '<br /> + <div class=centre><input type="submit" name="submit" value="' . _('Enter Information') . '">  '; echo '<input type="submit" name="listsome" value="' . _('List Selection') . '">  '; - echo '<input type="Submit" name="deletesome" value="' . _('Delete Demand Type') . '">'; + echo '<input type="submit" name="deletesome" value="' . _('Delete Demand Type') . '">'; // If mrpdemand record exists, display option to delete it if ((isset($DemandID)) AND (DB_num_rows($result) > 0)) { - echo '<br/><br/><a href=" ' . $_SERVER['PHP_SELF'] . '?&delete=yes&StockID='.$StockID.'&DemandID=' . $DemandID . '">' . _('Or Delete Record') ; + echo '<br/><br/><a href=" ' . $_SERVER['PHP_SELF'] . '?delete=yes&StockID='.$StockID.'&DemandID=' . $DemandID . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this demand?') . '\');">' . _('Or Delete Record') ; } } echo '</form>'; } // End of function display() - include('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/PrintCustOrder_generic.php =================================================================== --- trunk/PrintCustOrder_generic.php 2011-06-27 10:30:19 UTC (rev 4608) +++ trunk/PrintCustOrder_generic.php 2011-06-28 10:12:27 UTC (rev 4609) @@ -2,7 +2,6 @@ /* $Id$*/ -/* $Revision: 1.20 $ */ include('includes/session.inc'); include('includes/SQL_CommonFunctions.inc'); @@ -10,16 +9,27 @@ //Get Out if we have no order number to work with If (!isset($_GET['TransNo']) OR $_GET['TransNo']==""){ - $title = _('Select Order To Print'); - include('includes/header.inc'); - echo '<div class=centre><br /><br /><br />'; - prnMsg( _('Select an Order Number to Print before calling this page') , 'error'); - echo '<br /><br /><br /><table class="table_index"><tr><td class="menu_group_item"> - <li><a href="'. $rootpath . '/SelectSalesOrder.php?">' . _('Outstanding Sales Orders') . '</a></li> - <li><a href="'. $rootpath . '/SelectCompletedOrder.php">' . _('Completed Sales Orders') . '</a></li> - </td></tr></table></div><br /><br /><br />'; - include('includes/footer.inc'); - exit(); + $title = _('Select Order To Print'); + include('includes/header.inc'); + echo '<div class=centre><br /><br /><br />'; + prnMsg( _('Select an Order Number to Print before calling this page') , 'error'); + echo '<br /> + <br /> + <br /> + <table class="table_index"> + <tr> + <td class="menu_group_item"> + <li><a href="'. $rootpath . '/SelectSalesOrder.php?">' . _('Outstanding Sales Orders') . '</a></li> + <li><a href="'. $rootpath . '/SelectCompletedOrder.php">' . _('Completed Sales Orders') . '</a></li> + </td> + </tr> + </table> + </div> + <br /> + <br /> + <br />'; + include('includes/footer.inc'); + exit(); } /*retrieve the order details from the database to print */ @@ -27,50 +37,62 @@ $sql = "SELECT salesorders.debtorno, salesorders.customerref, - salesorders.comments, - salesorders.orddate, - salesorders.deliverto, - salesorders.deladd1, - salesorders.deladd2, - salesorders.deladd3, - salesorders.deladd4, - salesorders.deladd5, - salesorders.deladd6, - salesorders.deliverblind, - debtorsmaster.name, - debtorsmaster.address1, - debtorsmaster.address2, - debtorsmaster.address3, - debtorsmaster.address4, - debtorsmaster.address5, - debtorsmaster.address6, - shippers.shippername, - salesorders.printedpackingslip, - salesorders.datepackingslipprinted, - locations.locationname - FROM salesorders, - debtorsmaster, - shippers, - locations - WHERE salesorders.debtorno=debtorsmaster.debtorno - AND salesorders.shipvia=shippers.shipper_id - AND salesorders.fromstkloc=locations.loccode - AND salesorders.orderno='" . $_GET['TransNo'] . "'"; - + salesorders.comments, + salesorders.orddate, + salesorders.deliverto, + salesorders.deladd1, + salesorders.deladd2, + salesorders.deladd3, + salesorders.deladd4, + salesorders.deladd5, + salesorders.deladd6, + salesorders.deliverblind, + debtorsmaster.name, + debtorsmaster.address1, + debtorsmaster.address2, + debtorsmaster.address3, + debtorsmaster.address4, + debtorsmaster.address5, + debtorsmaster.address6, + shippers.shippername, + salesorders.printedpackingslip, + salesorders.datepackingslipprinted, + locations.locationname + FROM salesorders, + debtorsmaster, + shippers, + locations + WHERE salesorders.debtorno=debtorsmaster.debtorno + AND salesorders.shipvia=shippers.shipper_id + AND salesorders.fromstkloc=locations.loccode + AND salesorders.orderno='" . $_GET['TransNo'] . "'"; + $result=DB_query($sql,$db, $ErrMsg); //If there are no rows, there's a problem. if (DB_num_rows($result)==0){ - $title = _('Print Packing Slip Error'); - include('includes/header.inc'); - echo '<div class=centre><br /><br /><br />'; - prnMsg( _('Unable to Locate Order Number') . ' : ' . $_GET['TransNo'] . ' ', 'error'); - echo '<br /><br /><br /><table class="table_index"><tr><td class="menu_group_item"> - <li><a href="'. $rootpath . '/SelectSalesOrder.php">' . _('Outstanding Sales Orders') . '</a></li> - <li><a href="'. $rootpath . '/SelectCompletedOrder.php">' . _('Completed Sales Orders') . '</a></li> - </td></tr></table></div><br /><br /><br />'; - include('includes/footer.inc'); - exit(); + $title = _('Print Packing Slip Error'); + include('includes/header.inc'); + echo '<div class=centre><br /><br /><br />'; + prnMsg( _('Unable to Locate Order Number') . ' : ' . $_GET['TransNo'] . ' ', 'error'); + echo '<br /> + <br /> + <br /> + <table class="table_index"> + <tr> + <td class="menu_group_item"> + <li><a href="'. $rootpath . '/SelectSalesOrder.php">' . _('Outstanding Sales Orders') . '</a></li> + <li><a href="'. $rootpath . '/SelectCompletedOrder.php">' . _('Completed Sales Orders') . '</a></li> + </td> + </tr> + </table> + </div> + <br /> + <br /> + <br />'; + + include('includes/footer.inc'); + exit(); } elseif (DB_num_rows($result)==1){ /*There is only one order header returned - thats good! */ $myrow = DB_fetch_array($result); @@ -90,10 +112,18 @@ echo '<br /><br /><br />'; echo _('Or select another Order Number to Print'); - echo '<table class="table_index"><tr><td class="menu_group_item"> + echo '<table class="table_index"> + <tr> + <td class="menu_group_item"> <li><a href="'. $rootpath . '/SelectSalesOrder.php">' . _('Outstanding Sales Orders') . '</a></li> <li><a href="'. $rootpath . '/SelectCompletedOrder.php">' . _('Completed Sales Orders') . '</a></li> - </td></tr></table></div><br /><br /><br />'; + </td> + </tr> + </table> + </div> + <br /> + <br /> + <br />'; include('includes/footer.inc'); exit; @@ -102,9 +132,9 @@ /*retrieve the order details from the database to print */ -/* Then there's an order to print and its not been printed already (or its been flagged for reprinting/ge_Width=807; -) +/* Then there's an order to print and its not been printed already (or its been flagged for reprinting) LETS GO */ + $PaperSize = 'A4_Landscape'; include('includes/PDFStarter.php'); //$pdf->selectFont('./fonts/Helvetica.afm'); @@ -119,22 +149,24 @@ for ($i=1;$i<=2;$i++){ /*Print it out twice one copy for customer and one for office */ if ($i==2){ - $PageNumber = 1; + $PageNumber = 1; $pdf->newPage(); } /* Now ... Has the order got any line items still outstanding to be invoiced */ - $ErrMsg = _('There was a problem retrieving the order header details for Order Number') . ' ' . + $ErrMsg = _('There was a problem retrieving the order details for Order Number') . ' ' . $_GET['TransNo'] . ' ' . _('from the database'); $sql = "SELECT salesorderdetails.stkcode, - stockmaster.description, - salesorderdetails.quantity, - salesorderdetails.qtyinvoiced, - salesorderdetails.unitprice, - salesorderdetails.narrative - FROM salesorderdetails INNER JOIN stockmaster - ON salesorderdetails.stkcode=stockmaster.stockid - WHERE salesorderdetails.orderno='" . $_GET['TransNo'] . "'"; + stockmaster.description, + salesorderdetails.quantity, + salesorderdetails.qtyinvoiced, + salesorderdetails.unitprice, + salesorderdetails.narrative, + stockmaster.mbflag, + stockmaster.decimalplaces + FROM salesorderdetails INNER JOIN stockmaster + ON salesorderdetails.stkcode=stockmaster.stockid + WHERE salesorderdetails.orderno='" . $_GET['TransNo'] . "'"; $result=DB_query($sql,$db, $ErrMsg); if (DB_num_rows($result)>0){ @@ -144,26 +176,56 @@ while ($myrow2=DB_fetch_array($result)){ $ListCount ++; + + $DisplayQty = number_format($myrow2['quantity'],$myrow2['decimalplaces']); + $DisplayPrevDel = number_format($myrow2['qtyinvoiced'],$myrow2['decimalplaces']); + $DisplayQtySupplied = number_format($myrow2['quantity'] - $myrow2['qtyinvoiced'],$myrow2['decimalplaces']); - $DisplayQty = number_format($myrow2['quantity'],2); - $DisplayPrevDel = number_format($myrow2['qtyinvoiced'],2); - $DisplayQtySupplied = number_format($myrow2['quantity'] - $myrow2['qtyinvoiced'],2); - $LeftOvers = $pdf->addTextWrap($XPos,$YPos,127,$FontSize,$myrow2['stkcode']); $LeftOvers = $pdf->addTextWrap(147,$YPos,255,$FontSize,$myrow2['description']); $LeftOvers = $pdf->addTextWrap(400,$YPos,85,$FontSize,$DisplayQty,'right'); $LeftOvers = $pdf->addTextWrap(503,$YPos,85,$FontSize,$DisplayQtySupplied,'right'); $LeftOvers = $pdf->addTextWrap(602,$YPos,85,$FontSize,$DisplayPrevDel,'right'); - + if ($YPos-$line_height <= 50){ /* We reached the end of the page so finsih off the page and start a newy */ $PageNumber++; include ('includes/PDFOrderPageHeader_generic.inc'); } //end if need a new page headed up - else{ + else { /*increment a line down for the next line item */ $YPos -= ($line_height); } + if ($myrow2['mbflag']=='A'){ + /*Then its an assembly item - need to explode into it's components for packing list purposes */ + $sql = "SELECT bom.component, + bom.quantity, + stockmaster.description, + stockmaster.decimalplaces + FROM bom INNER JOIN stockmaster + ON bom.component=stockmaster.stockid + WHERE bom.parent='" . $myrow2['stkcode'] . "'"; + $ErrMsg = _('Could not retrieve the components of the ordered assembly item'); + $AssemblyResult = DB_query($sql,$db,$ErrMsg); + $LeftOvers = $pdf->addTextWrap($XPos,$YPos,150,$FontSize, _('Assembly Components:-')); + $YPos -= ($line_height); + /*Loop around all the components of the assembly and list the quantity supplied */ + while ($ComponentRow=DB_fetch_array($AssemblyResult)){ + $DisplayQtySupplied = number_format($ComponentRow['quantity']*($myrow2['quantity'] - $myrow2['qtyinvoiced']),$ComponentRow['decimalplaces']); + $LeftOvers = $pdf->addTextWrap($XPos,$YPos,127,$FontSize,$ComponentRow['component']); + $LeftOvers = $pdf->addTextWrap(147,$YPos,255,$FontSize,$ComponentRow['description']); + $LeftOvers = $pdf->addTextWrap(503,$YPos,85,$FontSize,$DisplayQtySupplied,'right'); + if ($YPos-$line_height <= 50){ + /* We reached the end of the page so finsih off the page and start a newy */ + $PageNumber++; + include ('includes/PDFOrderPageHeader_generic.inc'); + } //end if need a new page headed up + else{ + /*increment a line down for the next line item */ + $YPos -= ($line_height); + } + } //loop around all the components of the assembly + } } //end while there are line items to print out } /*end if there are order details to show on the order*/ @@ -172,18 +234,21 @@ } /*end for loop to print the whole lot twice */ -if ($ListCount == 0) { //UldisN - $title = _('Print Packing Slip Error'); - include('includes/header.inc'); - echo '<p>'. _('There were no outstanding items on the order to deliver') . '. ' . _('A packing slip cannot be printed'). - '<br /><a href="' . $rootpath . '/SelectSalesOrder.php">'. _('Print Another Packing Slip/Order'). - '</a>' . '<br />'. '<a href="' . $rootpath . '/index.php">' . _('Back to the menu') . '</a>'; - include('includes/footer.inc'); +if ($ListCount == 0) { + $title = _('Print Packing Slip Error'); + include('includes/header.inc'); + echo '<p>'. _('There were no outstanding items on the order to deliver') . '. ' . _('A packing slip cannot be printed'). + '<br /><a href="' . $rootpath . '/SelectSalesOrder.php">'. _('Print Another Packing Slip/Order'). + '</a> + <br /><a href="' . $rootpath . '/index.php">' . _('Back to the menu') . '</a>'; + include('includes/footer.inc'); exit; } else { - $pdf->OutputD($_SESSION['DatabaseName'] . '_PackingSlip_' . date('Y-m-d') . '.pdf');//UldisN - $pdf->__destruct(); //UldisN - $sql = "UPDATE salesorders SET printedpackingslip=1, datepackingslipprinted='" . Date('Y-m-d') . "' WHERE salesorders.orderno='" .$_GET['TransNo'] . "'"; + $pdf->OutputD($_SESSION['DatabaseName'] . '_PackingSlip_' . date('Y-m-d') . '.pdf'); + $pdf->__destruct(); + $sql = "UPDATE salesorders SET printedpackingslip=1, + datepackingslipprinted='" . Date('Y-m-d') . "' + WHERE salesorders.orderno='" .$_GET['TransNo'] . "'"; $result = DB_query($sql,$db); } Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-27 10:30:19 UTC (rev 4608) +++ trunk/doc/Change.log 2011-06-28 10:12:27 UTC (rev 4609) @@ -1,6 +1,8 @@ webERP Change Log -27/6/11 Exson: MRP>php fixed modulus arithmetic that prevented suggesting production quantities where the quantity was less than 1 - the calculation using PanSize should round up to the nearest whole unit to manufacture +28/6/11 Phil: Make assembly items explode into components on packing slips PrintCustOrder_generic.php +28/6/11 Exson: MRPDemands.php links missing ? now fixed - script fixed for quoting variable name CamelCasing +27/6/11 Exson: MRP.php fixed modulus arithmetic that prevented suggesting production quantities where the quantity was less than 1 - the calculation using PanSize should round up to the nearest whole unit to manufacture 26/6/11 Phil: Fixed reference to $_POST['StockID'] in WorkOrderCosting.php when updating the new weighted average cost 26/6/11 Phil: Went back to no number_formatting on PurchData.php 26/6/11 Phil: Went back to no number_formatting on PO_Items.php price and quantity - Brian May still reporting issues This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-06-28 10:12:34
|
Revision: 4609 http://web-erp.svn.sourceforge.net/web-erp/?rev=4609&view=rev Author: daintree Date: 2011-06-28 10:12:27 +0000 (Tue, 28 Jun 2011) Log Message: ----------- Modified Paths: -------------- trunk/MRPDemands.php trunk/PrintCustOrder_generic.php trunk/doc/Change.log Modified: trunk/MRPDemands.php =================================================================== --- trunk/MRPDemands.php 2011-06-27 10:30:19 UTC (rev 4608) +++ trunk/MRPDemands.php 2011-06-28 10:12:27 UTC (rev 4609) @@ -103,8 +103,9 @@ $k++; } $tabindex=$j+4; - echo "<td><input tabindex='".$tabindex."' type=submit name='StockID' value='".$myrow['stockid']."'</td> - <td>".$myrow['description']."</td></tr>"; + echo '<td><input tabindex="' . $tabindex . '" type=submit name="StockID" value="' . $myrow['stockid'] .'"</td> + <td>' . $myrow['description'] . '</td> + </tr>'; $j++; } //end of while loop @@ -212,7 +213,7 @@ $result = DB_query($sql,$db,_('The update/addition of the MRP demand record failed because')); prnMsg($msg,'success'); - echo '<br>'; + echo '<br />'; unset ($_POST['MRPDemandtype']); unset ($_POST['Quantity']); unset ($_POST['StockID']); @@ -225,7 +226,7 @@ } // End of function submit() -function delete(&$db,$DemandID,$demandtype,$StockID) { //####DELETE_DELETE_DELETE_DELETE_DELETE_DELETE_#### +function delete(&$db,$DemandID,$DemandType,$StockID) { //####DELETE_DELETE_DELETE_DELETE_DELETE_DELETE_#### // If wanted to have a Confirm routine before did actually deletion, could check if // deletion = "yes"; if it did, display link that redirects back to this page @@ -234,8 +235,8 @@ // This deletes an individual record by DemandID if called from a listall that shows // edit/delete or deletes all of a particular demand type if press Delete Demand Type button. $where = " "; - if ($demandtype) { - $where = " WHERE mrpdemandtype ='" . $demandtype . "'"; + if ($DemandType) { + $where = " WHERE mrpdemandtype ='" . $DemandType . "'"; } if ($DemandID) { $where = " WHERE demandid ='" . $DemandID . "'"; @@ -246,7 +247,7 @@ if ($DemandID) { prnMsg(_('The MRP demand record for') .' '. $StockID .' '. _('has been deleted'),'succes'); } else { - prnMsg(_('All records for demand type') .' '. $demandtype .' ' . _('have been deleted'),'succes'); + prnMsg(_('All records for demand type') .' '. $DemandType .' ' . _('have been deleted'),'succes'); } unset ($DemandID); unset ($StockID); @@ -255,7 +256,7 @@ } // End of function delete() -function listall(&$db,$part,$demandtype) {//####LISTALL_LISTALL_LISTALL_LISTALL_LISTALL_LISTALL_LISTALL_#### +function listall(&$db,$part,$DemandType) {//####LISTALL_LISTALL_LISTALL_LISTALL_LISTALL_LISTALL_LISTALL_#### // List all mrpdemands records, with anchors to Edit or Delete records if hit List All anchor // Lists some in hit List Selection submit button, and uses part number if it is entered or @@ -264,33 +265,34 @@ echo '<form action="' . $_SERVER['PHP_SELF'] .'" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; $where = " "; - if ($demandtype) { - $where = " WHERE mrpdemandtype ='" . $demandtype . "'"; + if ($DemandType) { + $where = " WHERE mrpdemandtype ='" . $DemandType . "'"; } if ($part) { $where = " WHERE mrpdemands.stockid ='" . $part . "'"; } // If part is entered, it overrides demandtype - $sql = 'SELECT mrpdemands.demandid, + $sql = "SELECT mrpdemands.demandid, mrpdemands.stockid, mrpdemands.mrpdemandtype, mrpdemands.quantity, mrpdemands.duedate, stockmaster.description - FROM mrpdemands - LEFT JOIN stockmaster on mrpdemands.stockid = stockmaster.stockid' . - $where . ' ORDER BY mrpdemands.stockid, mrpdemands.duedate'; - //echo "<br/>sql is $sql<br/>"; + FROM mrpdemands + LEFT JOIN stockmaster on mrpdemands.stockid = stockmaster.stockid" . + $where . " ORDER BY mrpdemands.stockid, mrpdemands.duedate"; + $ErrMsg = _('The SQL to find the parts selected failed with the message'); $result = DB_query($sql,$db,$ErrMsg); - echo "<table class=selection> - <tr bgcolor =#800000><th>" . _('Part Number') . "</th> - <th>" . _('Description') . "</th> - <th>" . _('Demand Type') . "</th> - <th>" . _('Quantity') . "</th> - <th>" . _('Due Date') . "</th> - </tr>"; + echo '<table class="selection"> + <tr bgcolor =#800000> + <th>' . _('Part Number') . '</th> + <th>' . _('Description') . '</th> + <th>' . _('Demand Type') . '</th> + <th>' . _('Quantity') . '</th> + <th>' . _('Due Date') . '</th> + </tr>'; $ctr = 0; while ($myrow = DB_fetch_row($result)) { $displaydate = ConvertSQLDate($myrow[4]); @@ -300,8 +302,8 @@ <td>' . $myrow[2] . '</td> <td>' . $myrow[3] . '</td> <td>' . $displaydate . '</td> - <td><a href="' .$_SERVER['PHP_SELF'] .'DemandID=' . $myrow[0] . '&StockID=' . $myrow[1] . '">' . _('Edit') . '</td> - <td><a href="' . $_SERVER['PHP_SELF'] . 'DemandID=' . $myrow[0] . '&StockID=' . $myrow[1].'&delete=yes">' . _('Delete') .'</td> + <td><a href="' .$_SERVER['PHP_SELF'] .'?DemandID=' . $myrow[0] . '&StockID=' . $myrow[1] . '">' . _('Edit') . '</td> + <td><a href="' . $_SERVER['PHP_SELF'] . '?DemandID=' . $myrow[0] . '&StockID=' . $myrow[1].'&delete=yes" onclick="return confirm(\'' . _('Are you sure you wish to delete this demand?') . '\');">' . _('Delete') .'</td> </tr>'; } @@ -378,15 +380,21 @@ $_POST['Duedate']=' '; } - echo '<tr><td>' . _('Quantity') . ":</td><td><input type='Text' name='Quantity' class=number size=6 - maxlength=6 value=" . $_POST['Quantity'] . '></td></tr><tr><td>' . _('Due Date') . ":</td> - <td><input type='Text' class=date alt='".$_SESSION['DefaultDateFormat']."' name='Duedate' size=12 - maxlength=12 value=" . $_POST['Duedate'] . '></td></tr>'; + echo '<tr><td>' . _('Quantity') . ':</td> + <td><input type="text" name="Quantity" class="number" size="6" maxlength="6" value=' . $_POST['Quantity'] . '></td> + </tr> + <tr> + <td>' . _('Due Date') . ':</td> + <td><input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="Duedate" size="12" maxlength="12" value="' . $_POST['Duedate'] . '"></td> + </tr>'; // Generate selections for Demand Type - echo '<tr><td>' . _('Demand Type') . "</td><td><select name='MRPDemandtype'>"; - $sql = 'SELECT mrpdemandtype, + echo '<tr> + <td>' . _('Demand Type') . '</td> + <td><select name="MRPDemandtype">'; + + $sql = "SELECT mrpdemandtype, description - FROM mrpdemandtypes'; + FROM mrpdemandtypes"; $result = DB_query($sql,$db); while ($myrow = DB_fetch_array($result)) { if (isset($_POST['MRPDemandtype']) and $myrow['mrpdemandtype']==$_POST['MRPDemandtype']) { @@ -399,18 +407,18 @@ echo '</select></td></tr>'; echo '</table>'; - echo '<br><div class=centre><input type="submit" name="submit" value="' . _('Enter Information') . '">  '; + echo '<br /> + <div class=centre><input type="submit" name="submit" value="' . _('Enter Information') . '">  '; echo '<input type="submit" name="listsome" value="' . _('List Selection') . '">  '; - echo '<input type="Submit" name="deletesome" value="' . _('Delete Demand Type') . '">'; + echo '<input type="submit" name="deletesome" value="' . _('Delete Demand Type') . '">'; // If mrpdemand record exists, display option to delete it if ((isset($DemandID)) AND (DB_num_rows($result) > 0)) { - echo '<br/><br/><a href=" ' . $_SERVER['PHP_SELF'] . '?&delete=yes&StockID='.$StockID.'&DemandID=' . $DemandID . '">' . _('Or Delete Record') ; + echo '<br/><br/><a href=" ' . $_SERVER['PHP_SELF'] . '?delete=yes&StockID='.$StockID.'&DemandID=' . $DemandID . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this demand?') . '\');">' . _('Or Delete Record') ; } } echo '</form>'; } // End of function display() - include('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/PrintCustOrder_generic.php =================================================================== --- trunk/PrintCustOrder_generic.php 2011-06-27 10:30:19 UTC (rev 4608) +++ trunk/PrintCustOrder_generic.php 2011-06-28 10:12:27 UTC (rev 4609) @@ -2,7 +2,6 @@ /* $Id$*/ -/* $Revision: 1.20 $ */ include('includes/session.inc'); include('includes/SQL_CommonFunctions.inc'); @@ -10,16 +9,27 @@ //Get Out if we have no order number to work with If (!isset($_GET['TransNo']) OR $_GET['TransNo']==""){ - $title = _('Select Order To Print'); - include('includes/header.inc'); - echo '<div class=centre><br /><br /><br />'; - prnMsg( _('Select an Order Number to Print before calling this page') , 'error'); - echo '<br /><br /><br /><table class="table_index"><tr><td class="menu_group_item"> - <li><a href="'. $rootpath . '/SelectSalesOrder.php?">' . _('Outstanding Sales Orders') . '</a></li> - <li><a href="'. $rootpath . '/SelectCompletedOrder.php">' . _('Completed Sales Orders') . '</a></li> - </td></tr></table></div><br /><br /><br />'; - include('includes/footer.inc'); - exit(); + $title = _('Select Order To Print'); + include('includes/header.inc'); + echo '<div class=centre><br /><br /><br />'; + prnMsg( _('Select an Order Number to Print before calling this page') , 'error'); + echo '<br /> + <br /> + <br /> + <table class="table_index"> + <tr> + <td class="menu_group_item"> + <li><a href="'. $rootpath . '/SelectSalesOrder.php?">' . _('Outstanding Sales Orders') . '</a></li> + <li><a href="'. $rootpath . '/SelectCompletedOrder.php">' . _('Completed Sales Orders') . '</a></li> + </td> + </tr> + </table> + </div> + <br /> + <br /> + <br />'; + include('includes/footer.inc'); + exit(); } /*retrieve the order details from the database to print */ @@ -27,50 +37,62 @@ $sql = "SELECT salesorders.debtorno, salesorders.customerref, - salesorders.comments, - salesorders.orddate, - salesorders.deliverto, - salesorders.deladd1, - salesorders.deladd2, - salesorders.deladd3, - salesorders.deladd4, - salesorders.deladd5, - salesorders.deladd6, - salesorders.deliverblind, - debtorsmaster.name, - debtorsmaster.address1, - debtorsmaster.address2, - debtorsmaster.address3, - debtorsmaster.address4, - debtorsmaster.address5, - debtorsmaster.address6, - shippers.shippername, - salesorders.printedpackingslip, - salesorders.datepackingslipprinted, - locations.locationname - FROM salesorders, - debtorsmaster, - shippers, - locations - WHERE salesorders.debtorno=debtorsmaster.debtorno - AND salesorders.shipvia=shippers.shipper_id - AND salesorders.fromstkloc=locations.loccode - AND salesorders.orderno='" . $_GET['TransNo'] . "'"; - + salesorders.comments, + salesorders.orddate, + salesorders.deliverto, + salesorders.deladd1, + salesorders.deladd2, + salesorders.deladd3, + salesorders.deladd4, + salesorders.deladd5, + salesorders.deladd6, + salesorders.deliverblind, + debtorsmaster.name, + debtorsmaster.address1, + debtorsmaster.address2, + debtorsmaster.address3, + debtorsmaster.address4, + debtorsmaster.address5, + debtorsmaster.address6, + shippers.shippername, + salesorders.printedpackingslip, + salesorders.datepackingslipprinted, + locations.locationname + FROM salesorders, + debtorsmaster, + shippers, + locations + WHERE salesorders.debtorno=debtorsmaster.debtorno + AND salesorders.shipvia=shippers.shipper_id + AND salesorders.fromstkloc=locations.loccode + AND salesorders.orderno='" . $_GET['TransNo'] . "'"; + $result=DB_query($sql,$db, $ErrMsg); //If there are no rows, there's a problem. if (DB_num_rows($result)==0){ - $title = _('Print Packing Slip Error'); - include('includes/header.inc'); - echo '<div class=centre><br /><br /><br />'; - prnMsg( _('Unable to Locate Order Number') . ' : ' . $_GET['TransNo'] . ' ', 'error'); - echo '<br /><br /><br /><table class="table_index"><tr><td class="menu_group_item"> - <li><a href="'. $rootpath . '/SelectSalesOrder.php">' . _('Outstanding Sales Orders') . '</a></li> - <li><a href="'. $rootpath . '/SelectCompletedOrder.php">' . _('Completed Sales Orders') . '</a></li> - </td></tr></table></div><br /><br /><br />'; - include('includes/footer.inc'); - exit(); + $title = _('Print Packing Slip Error'); + include('includes/header.inc'); + echo '<div class=centre><br /><br /><br />'; + prnMsg( _('Unable to Locate Order Number') . ' : ' . $_GET['TransNo'] . ' ', 'error'); + echo '<br /> + <br /> + <br /> + <table class="table_index"> + <tr> + <td class="menu_group_item"> + <li><a href="'. $rootpath . '/SelectSalesOrder.php">' . _('Outstanding Sales Orders') . '</a></li> + <li><a href="'. $rootpath . '/SelectCompletedOrder.php">' . _('Completed Sales Orders') . '</a></li> + </td> + </tr> + </table> + </div> + <br /> + <br /> + <br />'; + + include('includes/footer.inc'); + exit(); } elseif (DB_num_rows($result)==1){ /*There is only one order header returned - thats good! */ $myrow = DB_fetch_array($result); @@ -90,10 +112,18 @@ echo '<br /><br /><br />'; echo _('Or select another Order Number to Print'); - echo '<table class="table_index"><tr><td class="menu_group_item"> + echo '<table class="table_index"> + <tr> + <td class="menu_group_item"> <li><a href="'. $rootpath . '/SelectSalesOrder.php">' . _('Outstanding Sales Orders') . '</a></li> <li><a href="'. $rootpath . '/SelectCompletedOrder.php">' . _('Completed Sales Orders') . '</a></li> - </td></tr></table></div><br /><br /><br />'; + </td> + </tr> + </table> + </div> + <br /> + <br /> + <br />'; include('includes/footer.inc'); exit; @@ -102,9 +132,9 @@ /*retrieve the order details from the database to print */ -/* Then there's an order to print and its not been printed already (or its been flagged for reprinting/ge_Width=807; -) +/* Then there's an order to print and its not been printed already (or its been flagged for reprinting) LETS GO */ + $PaperSize = 'A4_Landscape'; include('includes/PDFStarter.php'); //$pdf->selectFont('./fonts/Helvetica.afm'); @@ -119,22 +149,24 @@ for ($i=1;$i<=2;$i++){ /*Print it out twice one copy for customer and one for office */ if ($i==2){ - $PageNumber = 1; + $PageNumber = 1; $pdf->newPage(); } /* Now ... Has the order got any line items still outstanding to be invoiced */ - $ErrMsg = _('There was a problem retrieving the order header details for Order Number') . ' ' . + $ErrMsg = _('There was a problem retrieving the order details for Order Number') . ' ' . $_GET['TransNo'] . ' ' . _('from the database'); $sql = "SELECT salesorderdetails.stkcode, - stockmaster.description, - salesorderdetails.quantity, - salesorderdetails.qtyinvoiced, - salesorderdetails.unitprice, - salesorderdetails.narrative - FROM salesorderdetails INNER JOIN stockmaster - ON salesorderdetails.stkcode=stockmaster.stockid - WHERE salesorderdetails.orderno='" . $_GET['TransNo'] . "'"; + stockmaster.description, + salesorderdetails.quantity, + salesorderdetails.qtyinvoiced, + salesorderdetails.unitprice, + salesorderdetails.narrative, + stockmaster.mbflag, + stockmaster.decimalplaces + FROM salesorderdetails INNER JOIN stockmaster + ON salesorderdetails.stkcode=stockmaster.stockid + WHERE salesorderdetails.orderno='" . $_GET['TransNo'] . "'"; $result=DB_query($sql,$db, $ErrMsg); if (DB_num_rows($result)>0){ @@ -144,26 +176,56 @@ while ($myrow2=DB_fetch_array($result)){ $ListCount ++; + + $DisplayQty = number_format($myrow2['quantity'],$myrow2['decimalplaces']); + $DisplayPrevDel = number_format($myrow2['qtyinvoiced'],$myrow2['decimalplaces']); + $DisplayQtySupplied = number_format($myrow2['quantity'] - $myrow2['qtyinvoiced'],$myrow2['decimalplaces']); - $DisplayQty = number_format($myrow2['quantity'],2); - $DisplayPrevDel = number_format($myrow2['qtyinvoiced'],2); - $DisplayQtySupplied = number_format($myrow2['quantity'] - $myrow2['qtyinvoiced'],2); - $LeftOvers = $pdf->addTextWrap($XPos,$YPos,127,$FontSize,$myrow2['stkcode']); $LeftOvers = $pdf->addTextWrap(147,$YPos,255,$FontSize,$myrow2['description']); $LeftOvers = $pdf->addTextWrap(400,$YPos,85,$FontSize,$DisplayQty,'right'); $LeftOvers = $pdf->addTextWrap(503,$YPos,85,$FontSize,$DisplayQtySupplied,'right'); $LeftOvers = $pdf->addTextWrap(602,$YPos,85,$FontSize,$DisplayPrevDel,'right'); - + if ($YPos-$line_height <= 50){ /* We reached the end of the page so finsih off the page and start a newy */ $PageNumber++; include ('includes/PDFOrderPageHeader_generic.inc'); } //end if need a new page headed up - else{ + else { /*increment a line down for the next line item */ $YPos -= ($line_height); } + if ($myrow2['mbflag']=='A'){ + /*Then its an assembly item - need to explode into it's components for packing list purposes */ + $sql = "SELECT bom.component, + bom.quantity, + stockmaster.description, + stockmaster.decimalplaces + FROM bom INNER JOIN stockmaster + ON bom.component=stockmaster.stockid + WHERE bom.parent='" . $myrow2['stkcode'] . "'"; + $ErrMsg = _('Could not retrieve the components of the ordered assembly item'); + $AssemblyResult = DB_query($sql,$db,$ErrMsg); + $LeftOvers = $pdf->addTextWrap($XPos,$YPos,150,$FontSize, _('Assembly Components:-')); + $YPos -= ($line_height); + /*Loop around all the components of the assembly and list the quantity supplied */ + while ($ComponentRow=DB_fetch_array($AssemblyResult)){ + $DisplayQtySupplied = number_format($ComponentRow['quantity']*($myrow2['quantity'] - $myrow2['qtyinvoiced']),$ComponentRow['decimalplaces']); + $LeftOvers = $pdf->addTextWrap($XPos,$YPos,127,$FontSize,$ComponentRow['component']); + $LeftOvers = $pdf->addTextWrap(147,$YPos,255,$FontSize,$ComponentRow['description']); + $LeftOvers = $pdf->addTextWrap(503,$YPos,85,$FontSize,$DisplayQtySupplied,'right'); + if ($YPos-$line_height <= 50){ + /* We reached the end of the page so finsih off the page and start a newy */ + $PageNumber++; + include ('includes/PDFOrderPageHeader_generic.inc'); + } //end if need a new page headed up + else{ + /*increment a line down for the next line item */ + $YPos -= ($line_height); + } + } //loop around all the components of the assembly + } } //end while there are line items to print out } /*end if there are order details to show on the order*/ @@ -172,18 +234,21 @@ } /*end for loop to print the whole lot twice */ -if ($ListCount == 0) { //UldisN - $title = _('Print Packing Slip Error'); - include('includes/header.inc'); - echo '<p>'. _('There were no outstanding items on the order to deliver') . '. ' . _('A packing slip cannot be printed'). - '<br /><a href="' . $rootpath . '/SelectSalesOrder.php">'. _('Print Another Packing Slip/Order'). - '</a>' . '<br />'. '<a href="' . $rootpath . '/index.php">' . _('Back to the menu') . '</a>'; - include('includes/footer.inc'); +if ($ListCount == 0) { + $title = _('Print Packing Slip Error'); + include('includes/header.inc'); + echo '<p>'. _('There were no outstanding items on the order to deliver') . '. ' . _('A packing slip cannot be printed'). + '<br /><a href="' . $rootpath . '/SelectSalesOrder.php">'. _('Print Another Packing Slip/Order'). + '</a> + <br /><a href="' . $rootpath . '/index.php">' . _('Back to the menu') . '</a>'; + include('includes/footer.inc'); exit; } else { - $pdf->OutputD($_SESSION['DatabaseName'] . '_PackingSlip_' . date('Y-m-d') . '.pdf');//UldisN - $pdf->__destruct(); //UldisN - $sql = "UPDATE salesorders SET printedpackingslip=1, datepackingslipprinted='" . Date('Y-m-d') . "' WHERE salesorders.orderno='" .$_GET['TransNo'] . "'"; + $pdf->OutputD($_SESSION['DatabaseName'] . '_PackingSlip_' . date('Y-m-d') . '.pdf'); + $pdf->__destruct(); + $sql = "UPDATE salesorders SET printedpackingslip=1, + datepackingslipprinted='" . Date('Y-m-d') . "' + WHERE salesorders.orderno='" .$_GET['TransNo'] . "'"; $result = DB_query($sql,$db); } Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-27 10:30:19 UTC (rev 4608) +++ trunk/doc/Change.log 2011-06-28 10:12:27 UTC (rev 4609) @@ -1,6 +1,8 @@ webERP Change Log -27/6/11 Exson: MRP>php fixed modulus arithmetic that prevented suggesting production quantities where the quantity was less than 1 - the calculation using PanSize should round up to the nearest whole unit to manufacture +28/6/11 Phil: Make assembly items explode into components on packing slips PrintCustOrder_generic.php +28/6/11 Exson: MRPDemands.php links missing ? now fixed - script fixed for quoting variable name CamelCasing +27/6/11 Exson: MRP.php fixed modulus arithmetic that prevented suggesting production quantities where the quantity was less than 1 - the calculation using PanSize should round up to the nearest whole unit to manufacture 26/6/11 Phil: Fixed reference to $_POST['StockID'] in WorkOrderCosting.php when updating the new weighted average cost 26/6/11 Phil: Went back to no number_formatting on PurchData.php 26/6/11 Phil: Went back to no number_formatting on PO_Items.php price and quantity - Brian May still reporting issues This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-07-02 01:34:10
|
Revision: 4610 http://web-erp.svn.sourceforge.net/web-erp/?rev=4610&view=rev Author: daintree Date: 2011-07-02 01:34:04 +0000 (Sat, 02 Jul 2011) Log Message: ----------- Modified Paths: -------------- trunk/BankAccounts.php trunk/MRP.php trunk/PrintCustTrans.php trunk/doc/Change.log trunk/sql/mysql/upgrade3.11-3.11.1.sql Modified: trunk/BankAccounts.php =================================================================== --- trunk/BankAccounts.php 2011-06-28 10:12:27 UTC (rev 4609) +++ trunk/BankAccounts.php 2011-07-02 01:34:04 UTC (rev 4610) @@ -9,7 +9,7 @@ include('includes/header.inc'); echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Bank') . '" alt="" />' . ' ' . $title . '</p>'; -echo '<div class="page_help_text">' . _('Update Bank Account details. Account Code is for SWIFT or BSB type Bank Codes. Set Default for Invoices to "yes" to print Account details on Invoices (only one account can be set to "yes").') . '.</div><br />'; +echo '<div class="page_help_text">' . _('Update Bank Account details. Account Code is for SWIFT or BSB type Bank Codes. Set Default for Invoices to "Currency Default" of "Fallback Default" to print Account details on Invoices (only one account should be set to "Fall Back Default").') . '.</div><br />'; if (isset($_GET['SelectedBankAccount'])) { $SelectedBankAccount=$_GET['SelectedBankAccount']; @@ -133,6 +133,7 @@ echo '<br />'; unset($_POST['AccountCode']); unset($_POST['BankAccountName']); + unset($_POST['BankAccountCode']); unset($_POST['BankAccountNumber']); unset($_POST['BankAddress']); unset($_POST['CurrCode']); @@ -207,8 +208,10 @@ } if ($myrow['invoice']==0) { $DefaultBankAccount=_('No'); - } else { - $DefaultBankAccount=_('Yes'); + } elseif ($myrow['invoice']==1) { + $DefaultBankAccount=_('Fall Back Default'); + } elseif ($myrow['invoice']==2) { + $DefaultBankAccount=_('Currency Default'); } printf('<td>%s<br /><font size=2>%s</font></td> <td>%s</td> @@ -363,15 +366,22 @@ $db); while ($myrow = DB_fetch_array($result)) { if ($myrow['invoice']== 1) { - echo '<option selected value="1">'._('Yes').'</option> + echo '<option selected value="1">'._('Fall Back Default').'</option> + <option value="2">'._('Currency Default') . '</option> <option value="0">'._('No').'</option>'; + } elseif ($myrow['invoice']== 2) { + echo '<option value="0">'._('No').'</option> + <option selected value="2">'._('Currency Default') . '</option> + <option value="1">'._('Fall Back Default').'</option>'; } else { echo '<option selected value="0">'._('No').'</option> - <option value="1">'._('Yes').'</option>'; + <option value="2">'._('Currency Default') . '</option> + <option value="1">'._('Fall Back Default').'</option>'; } }//end while loop } else { - echo '<option value="1">'._('Yes').'</option> + echo '<option value="1">'._('Fall Back Default').'</option> + <option value="2">'._('Currency Default') . '</option> <option value="0">'._('No').'</option>'; } Modified: trunk/MRP.php =================================================================== --- trunk/MRP.php 2011-06-28 10:12:27 UTC (rev 4609) +++ trunk/MRP.php 2011-07-02 01:34:04 UTC (rev 4610) @@ -45,7 +45,8 @@ $sql = "INSERT INTO passbom (part, sortpart) SELECT bom.component AS part, CONCAT(bom.parent,'%',bom.component) AS sortpart - FROM bom LEFT JOIN bom as bom2 ON bom.parent = bom2.component + FROM bom LEFT JOIN bom as bom2 + ON bom.parent = bom2.component WHERE bom2.component IS NULL"; $result = DB_query($sql,$db); @@ -116,11 +117,11 @@ $result = DB_query($sql,$db); while ($myrow=DB_fetch_array($result)) { $parts = explode('%',$myrow['sortpart']); - $level = $myrow['level']; + $Level = $myrow['level']; $ctr = 0; foreach ($parts as $part) { $ctr++; - $newlevel = $level - $ctr; + $newlevel = $Level - $ctr; $sql = "INSERT INTO bomlevels (part, level) VALUES('" . $part . "','" . $newlevel . "')"; $result2 = DB_query($sql,$db); } // End of foreach @@ -223,7 +224,9 @@ mrpdemandtype varchar(6), orderno int(11), directdemand smallint, - whererequired char(20)) DEFAULT CHARSET=utf8"; + whererequired char(20), + KEY part (part) + ) DEFAULT CHARSET=utf8"; $result = DB_query($sql,$db,_('Create of mrprequirements failed because')); prnMsg(_('Loading requirements from sales orders'),'info'); @@ -314,7 +317,6 @@ prnMsg(_('Loading requirements based on reorder level'),'info'); flush(); - $result = DB_query("ALTER TABLE mrprequirements ADD INDEX part(part)",$db); // In the following section, create mrpsupplies from open purchase orders, // open work orders, and current quantity onhand from locstock @@ -398,7 +400,7 @@ FROM locstock WHERE quantity > 0 " . $WhereLocation . - 'GROUP BY stockid'; + "GROUP BY stockid"; $result = DB_query($sql,$db); prnMsg(_('Loading supplies from work orders'),'info'); @@ -434,14 +436,14 @@ flush(); $result = DB_query("DROP TABLE IF EXISTS mrpplannedorders",$db); $sql = "CREATE TABLE mrpplannedorders (id int(11) NOT NULL auto_increment, - part char(20), - duedate date, - supplyquantity double, - ordertype varchar(6), - orderno int(11), - mrpdate date, - updateflag smallint(6), - PRIMARY KEY (id)) DEFAULT CHARSET=utf8"; + part char(20), + duedate date, + supplyquantity double, + ordertype varchar(6), + orderno int(11), + mrpdate date, + updateflag smallint(6), + PRIMARY KEY (id)) DEFAULT CHARSET=utf8"; $result = DB_query($sql,$db,_('Create of mrpplannedorders failed because')); // Find the highest and lowest level number @@ -449,8 +451,8 @@ $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); - $maxlevel = $myrow[0]; - $minlevel = $myrow[1]; + $MaxLevel = $myrow[0]; + $MinLevel = $myrow[1]; // At this point, have all requirements in mrprequirements and all supplies to satisfy // those requirements in mrpsupplies. Starting at the top level, will read all parts one @@ -458,17 +460,17 @@ // planned orders to satisfy requirements. If there is a net requirement from a higher level // part, that serves as a gross requirement for a lower level part, so will read down through // the Bill of Materials to generate those requirements in function LevelNetting(). - for ($level = $maxlevel; $level >= $minlevel; $level--) { - $sql = "SELECT * FROM levels WHERE level = '" . $level ."' LIMIT 50000"; //should cover most eventualities!! ... yes indeed :-) + for ($Level = $MaxLevel; $Level >= $MinLevel; $Level--) { + $sql = "SELECT * FROM levels WHERE level = '" . $Level ."' LIMIT 50000"; //should cover most eventualities!! ... yes indeed :-) - prnMsg('</br>------ ' . _('Processing level') .' ' . $level . ' ------','info'); + prnMsg('------ ' . _('Processing level') .' ' . $Level . ' ------','info'); flush(); $result = DB_query($sql,$db); while ($myrow=DB_fetch_array($result)) { LevelNetting($db,$myrow['part'],$myrow['eoq'],$myrow['pansize'],$myrow['shrinkfactor']); } //end of while loop } // end of for - echo '</br>' . _('End time') . ': ' . date('h:i:s') . '</br>'; + echo '<br />' . _('End time') . ': ' . date('h:i:s') . '<br />'; // Create mrpparameters table $sql = "DROP TABLE IF EXISTS mrpparameters"; Modified: trunk/PrintCustTrans.php =================================================================== --- trunk/PrintCustTrans.php 2011-06-28 10:12:27 UTC (rev 4609) +++ trunk/PrintCustTrans.php 2011-07-02 01:34:04 UTC (rev 4610) @@ -80,121 +80,121 @@ if ($InvOrCredit=='Invoice') { $sql = "SELECT debtortrans.trandate, - debtortrans.ovamount, - debtortrans.ovdiscount, - debtortrans.ovfreight, - debtortrans.ovgst, - debtortrans.rate, - debtortrans.invtext, - debtortrans.consignment, - debtorsmaster.name, - debtorsmaster.address1, - debtorsmaster.address2, - debtorsmaster.address3, - debtorsmaster.address4, - debtorsmaster.address5, - debtorsmaster.address6, - debtorsmaster.currcode, - debtorsmaster.invaddrbranch, - debtorsmaster.taxref, - paymentterms.terms, - salesorders.deliverto, - salesorders.deladd1, - salesorders.deladd2, - salesorders.deladd3, - salesorders.deladd4, - salesorders.deladd5, - salesorders.deladd6, - salesorders.customerref, - salesorders.orderno, - salesorders.orddate, - locations.locationname, - shippers.shippername, - custbranch.brname, - custbranch.braddress1, - custbranch.braddress2, - custbranch.braddress3, - custbranch.braddress4, - custbranch.braddress5, - custbranch.braddress6, - custbranch.brpostaddr1, - custbranch.brpostaddr2, - custbranch.brpostaddr3, - custbranch.brpostaddr4, - custbranch.brpostaddr5, - custbranch.brpostaddr6, - salesman.salesmanname, - debtortrans.debtorno, - debtortrans.branchcode - FROM debtortrans, - debtorsmaster, - custbranch, - salesorders, - shippers, - salesman, - locations, - paymentterms - WHERE debtortrans.order_ = salesorders.orderno - AND debtortrans.type=10 - AND debtortrans.transno='" . $FromTransNo . "' - AND debtortrans.shipvia=shippers.shipper_id - AND debtortrans.debtorno=debtorsmaster.debtorno - AND debtorsmaster.paymentterms=paymentterms.termsindicator - AND debtortrans.debtorno=custbranch.debtorno - AND debtortrans.branchcode=custbranch.branchcode - AND custbranch.salesman=salesman.salesmancode - AND salesorders.fromstkloc=locations.loccode"; + debtortrans.ovamount, + debtortrans.ovdiscount, + debtortrans.ovfreight, + debtortrans.ovgst, + debtortrans.rate, + debtortrans.invtext, + debtortrans.consignment, + debtorsmaster.name, + debtorsmaster.address1, + debtorsmaster.address2, + debtorsmaster.address3, + debtorsmaster.address4, + debtorsmaster.address5, + debtorsmaster.address6, + debtorsmaster.currcode, + debtorsmaster.invaddrbranch, + debtorsmaster.taxref, + paymentterms.terms, + salesorders.deliverto, + salesorders.deladd1, + salesorders.deladd2, + salesorders.deladd3, + salesorders.deladd4, + salesorders.deladd5, + salesorders.deladd6, + salesorders.customerref, + salesorders.orderno, + salesorders.orddate, + locations.locationname, + shippers.shippername, + custbranch.brname, + custbranch.braddress1, + custbranch.braddress2, + custbranch.braddress3, + custbranch.braddress4, + custbranch.braddress5, + custbranch.braddress6, + custbranch.brpostaddr1, + custbranch.brpostaddr2, + custbranch.brpostaddr3, + custbranch.brpostaddr4, + custbranch.brpostaddr5, + custbranch.brpostaddr6, + salesman.salesmanname, + debtortrans.debtorno, + debtortrans.branchcode + FROM debtortrans, + debtorsmaster, + custbranch, + salesorders, + shippers, + salesman, + locations, + paymentterms + WHERE debtortrans.order_ = salesorders.orderno + AND debtortrans.type=10 + AND debtortrans.transno='" . $FromTransNo . "' + AND debtortrans.shipvia=shippers.shipper_id + AND debtortrans.debtorno=debtorsmaster.debtorno + AND debtorsmaster.paymentterms=paymentterms.termsindicator + AND debtortrans.debtorno=custbranch.debtorno + AND debtortrans.branchcode=custbranch.branchcode + AND custbranch.salesman=salesman.salesmancode + AND salesorders.fromstkloc=locations.loccode"; if (isset($_POST['PrintEDI']) and $_POST['PrintEDI']=='No') { $sql = $sql . " AND debtorsmaster.ediinvoices=0"; } } else { $sql = "SELECT debtortrans.trandate, - debtortrans.ovamount, - debtortrans.ovdiscount, - debtortrans.ovfreight, - debtortrans.ovgst, - debtortrans.rate, - debtortrans.invtext, - debtorsmaster.invaddrbranch, - debtorsmaster.name, - debtorsmaster.address1, - debtorsmaster.address2, - debtorsmaster.address3, - debtorsmaster.address4, - debtorsmaster.address5, - debtorsmaster.address6, - debtorsmaster.currcode, - debtorsmaster.taxref, - custbranch.brname, - custbranch.braddress1, - custbranch.braddress2, - custbranch.braddress3, - custbranch.braddress4, - custbranch.braddress5, - custbranch.braddress6, - custbranch.brpostaddr1, - custbranch.brpostaddr2, - custbranch.brpostaddr3, - custbranch.brpostaddr4, - custbranch.brpostaddr5, - custbranch.brpostaddr6, - salesman.salesmanname, - debtortrans.debtorno, - debtortrans.branchcode, - paymentterms.terms - FROM debtortrans, - debtorsmaster, - custbranch, - salesman, - paymentterms - WHERE debtortrans.type=11 - AND debtorsmaster.paymentterms = paymentterms.termsindicator - AND debtortrans.transno='" . $FromTransNo . "' - AND debtortrans.debtorno=debtorsmaster.debtorno - AND debtortrans.debtorno=custbranch.debtorno - AND debtortrans.branchcode=custbranch.branchcode - AND custbranch.salesman=salesman.salesmancode"; + debtortrans.ovamount, + debtortrans.ovdiscount, + debtortrans.ovfreight, + debtortrans.ovgst, + debtortrans.rate, + debtortrans.invtext, + debtorsmaster.invaddrbranch, + debtorsmaster.name, + debtorsmaster.address1, + debtorsmaster.address2, + debtorsmaster.address3, + debtorsmaster.address4, + debtorsmaster.address5, + debtorsmaster.address6, + debtorsmaster.currcode, + debtorsmaster.taxref, + custbranch.brname, + custbranch.braddress1, + custbranch.braddress2, + custbranch.braddress3, + custbranch.braddress4, + custbranch.braddress5, + custbranch.braddress6, + custbranch.brpostaddr1, + custbranch.brpostaddr2, + custbranch.brpostaddr3, + custbranch.brpostaddr4, + custbranch.brpostaddr5, + custbranch.brpostaddr6, + salesman.salesmanname, + debtortrans.debtorno, + debtortrans.branchcode, + paymentterms.terms + FROM debtortrans, + debtorsmaster, + custbranch, + salesman, + paymentterms + WHERE debtortrans.type=11 + AND debtorsmaster.paymentterms = paymentterms.termsindicator + AND debtortrans.transno='" . $FromTransNo . "' + AND debtortrans.debtorno=debtorsmaster.debtorno + AND debtortrans.debtorno=custbranch.debtorno + AND debtortrans.branchcode=custbranch.branchcode + AND custbranch.salesman=salesman.salesmancode"; if ($_POST['PrintEDI']=='No') { $sql = $sql . " AND debtorsmaster.ediinvoices=0"; @@ -219,35 +219,35 @@ if ($InvOrCredit=='Invoice') { $sql = "SELECT stockmoves.stockid, - stockmaster.description, - -stockmoves.qty as quantity, - stockmoves.discountpercent, - ((1 - stockmoves.discountpercent) * stockmoves.price * " . $ExchRate . "* -stockmoves.qty) AS fxnet, - (stockmoves.price * " . $ExchRate . ") AS fxprice, - stockmoves.narrative, - stockmaster.units - FROM stockmoves, - stockmaster - WHERE stockmoves.stockid = stockmaster.stockid - AND stockmoves.type=10 - AND stockmoves.transno=" . $FromTransNo . " - AND stockmoves.show_on_inv_crds=1"; + stockmaster.description, + -stockmoves.qty as quantity, + stockmoves.discountpercent, + ((1 - stockmoves.discountpercent) * stockmoves.price * " . $ExchRate . "* -stockmoves.qty) AS fxnet, + (stockmoves.price * " . $ExchRate . ") AS fxprice, + stockmoves.narrative, + stockmaster.units + FROM stockmoves, + stockmaster + WHERE stockmoves.stockid = stockmaster.stockid + AND stockmoves.type=10 + AND stockmoves.transno=" . $FromTransNo . " + AND stockmoves.show_on_inv_crds=1"; } else { /* only credit notes to be retrieved */ $sql = "SELECT stockmoves.stockid, - stockmaster.description, - stockmoves.qty as quantity, - stockmoves.discountpercent, - ((1 - stockmoves.discountpercent) * stockmoves.price * " . $ExchRate . " * stockmoves.qty) AS fxnet, - (stockmoves.price * " . $ExchRate . ") AS fxprice, - stockmoves.narrative, - stockmaster.units - FROM stockmoves, - stockmaster - WHERE stockmoves.stockid = stockmaster.stockid - AND stockmoves.type=11 - AND stockmoves.transno=" . $FromTransNo . " - AND stockmoves.show_on_inv_crds=1"; + stockmaster.description, + stockmoves.qty as quantity, + stockmoves.discountpercent, + ((1 - stockmoves.discountpercent) * stockmoves.price * " . $ExchRate . " * stockmoves.qty) AS fxnet, + (stockmoves.price * " . $ExchRate . ") AS fxprice, + stockmoves.narrative, + stockmaster.units + FROM stockmoves, + stockmaster + WHERE stockmoves.stockid = stockmaster.stockid + AND stockmoves.type=11 + AND stockmoves.transno=" . $FromTransNo . " + AND stockmoves.show_on_inv_crds=1"; } // end else $result=DB_query($sql,$db); @@ -407,6 +407,36 @@ $YPos-=12; $LeftOvers = $pdf->addTextWrap($Left_Margin+280,$YPos,220,$FontSize,$LeftOvers); } + /*print out bank details */ + /*Get currency default for the currency of the invocie */ + $PrintBankDetails = true; //assume we print bank details by default + $BankResult = DB_query("SELECT bankaddress, + bankaccountnumber, + bankaccountcode + FROM bankaccounts + WHERE invoice=2 + AND currcode='" . $myrow['currcode'] . "'", + $db); + if (DB_num_rows($BankResult)==0){ + /* If no currency default check the fall back default */ + $BankResult = DB_query("SELECT bankaddress, + bankaccountnumber, + bankaccountcode + FROM bankaccounts + WHERE invoice=1", + $db); + if (DB_num_rows($BankResult)==0){ + $PrintBankDetails = false; + } + } + if ($PrintBankDetails){ + $BankDetailsRow = DB_fetch_array($BankResult); + $YPos-=4; + $LeftOvers = $pdf->addTextWrap($Left_Margin+280,$YPos,220,$FontSize,$BankDetailsRow['bankaddress']); + $YPos-=12; + $LeftOvers = $pdf->addTextWrap($Left_Margin+280,$YPos,220,$FontSize,$BankDetailsRow['bankaccountcode'] . ' ' . _('Account No:') . ' ' . $BankDetailsRow['bankaccountnumber']); + } + /* Add Images for Visa / Mastercard / Paypal */ if (file_exists('companies/' . $_SESSION['DatabaseName'] . '/payment.jpg')) { $pdf->addJpegFromFile('companies/' . $_SESSION['DatabaseName'] . '/payment.jpg',$Page_Width/2 -280,$YPos-20,0,40); Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-28 10:12:27 UTC (rev 4609) +++ trunk/doc/Change.log 2011-07-02 01:34:04 UTC (rev 4610) @@ -1,5 +1,6 @@ webERP Change Log +29/6/11 Phil: Bank account to allow default for invoice in currency and also a fall back default to show on invoice where no default for the currency. Modified BankAccounts.php and PrintCustTrans.php (Landscape only) to show the pertinent bank account given the currency of the invoice 28/6/11 Phil: Make assembly items explode into components on packing slips PrintCustOrder_generic.php 28/6/11 Exson: MRPDemands.php links missing ? now fixed - script fixed for quoting variable name CamelCasing 27/6/11 Exson: MRP.php fixed modulus arithmetic that prevented suggesting production quantities where the quantity was less than 1 - the calculation using PanSize should round up to the nearest whole unit to manufacture Modified: trunk/sql/mysql/upgrade3.11-3.11.1.sql =================================================================== --- trunk/sql/mysql/upgrade3.11-3.11.1.sql 2011-06-28 10:12:27 UTC (rev 4609) +++ trunk/sql/mysql/upgrade3.11-3.11.1.sql 2011-07-02 01:34:04 UTC (rev 4610) @@ -1,3 +1,4 @@ +USE saveurpacific; SET FOREIGN_KEY_CHECKS=0; ALTER TABLE accountgroups ADD CONSTRAINT `accountgroups_ibfk_1` FOREIGN KEY (`sectioninaccounts`) REFERENCES `accountsection` (`sectionid`); ALTER TABLE audittrail ADD CONSTRAINT `audittrail_ibfk_1` FOREIGN KEY (`userid`) REFERENCES `www_users` (`userid`); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-07-02 01:34:11
|
Revision: 4610 http://web-erp.svn.sourceforge.net/web-erp/?rev=4610&view=rev Author: daintree Date: 2011-07-02 01:34:04 +0000 (Sat, 02 Jul 2011) Log Message: ----------- Modified Paths: -------------- trunk/BankAccounts.php trunk/MRP.php trunk/PrintCustTrans.php trunk/doc/Change.log trunk/sql/mysql/upgrade3.11-3.11.1.sql Modified: trunk/BankAccounts.php =================================================================== --- trunk/BankAccounts.php 2011-06-28 10:12:27 UTC (rev 4609) +++ trunk/BankAccounts.php 2011-07-02 01:34:04 UTC (rev 4610) @@ -9,7 +9,7 @@ include('includes/header.inc'); echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Bank') . '" alt="" />' . ' ' . $title . '</p>'; -echo '<div class="page_help_text">' . _('Update Bank Account details. Account Code is for SWIFT or BSB type Bank Codes. Set Default for Invoices to "yes" to print Account details on Invoices (only one account can be set to "yes").') . '.</div><br />'; +echo '<div class="page_help_text">' . _('Update Bank Account details. Account Code is for SWIFT or BSB type Bank Codes. Set Default for Invoices to "Currency Default" of "Fallback Default" to print Account details on Invoices (only one account should be set to "Fall Back Default").') . '.</div><br />'; if (isset($_GET['SelectedBankAccount'])) { $SelectedBankAccount=$_GET['SelectedBankAccount']; @@ -133,6 +133,7 @@ echo '<br />'; unset($_POST['AccountCode']); unset($_POST['BankAccountName']); + unset($_POST['BankAccountCode']); unset($_POST['BankAccountNumber']); unset($_POST['BankAddress']); unset($_POST['CurrCode']); @@ -207,8 +208,10 @@ } if ($myrow['invoice']==0) { $DefaultBankAccount=_('No'); - } else { - $DefaultBankAccount=_('Yes'); + } elseif ($myrow['invoice']==1) { + $DefaultBankAccount=_('Fall Back Default'); + } elseif ($myrow['invoice']==2) { + $DefaultBankAccount=_('Currency Default'); } printf('<td>%s<br /><font size=2>%s</font></td> <td>%s</td> @@ -363,15 +366,22 @@ $db); while ($myrow = DB_fetch_array($result)) { if ($myrow['invoice']== 1) { - echo '<option selected value="1">'._('Yes').'</option> + echo '<option selected value="1">'._('Fall Back Default').'</option> + <option value="2">'._('Currency Default') . '</option> <option value="0">'._('No').'</option>'; + } elseif ($myrow['invoice']== 2) { + echo '<option value="0">'._('No').'</option> + <option selected value="2">'._('Currency Default') . '</option> + <option value="1">'._('Fall Back Default').'</option>'; } else { echo '<option selected value="0">'._('No').'</option> - <option value="1">'._('Yes').'</option>'; + <option value="2">'._('Currency Default') . '</option> + <option value="1">'._('Fall Back Default').'</option>'; } }//end while loop } else { - echo '<option value="1">'._('Yes').'</option> + echo '<option value="1">'._('Fall Back Default').'</option> + <option value="2">'._('Currency Default') . '</option> <option value="0">'._('No').'</option>'; } Modified: trunk/MRP.php =================================================================== --- trunk/MRP.php 2011-06-28 10:12:27 UTC (rev 4609) +++ trunk/MRP.php 2011-07-02 01:34:04 UTC (rev 4610) @@ -45,7 +45,8 @@ $sql = "INSERT INTO passbom (part, sortpart) SELECT bom.component AS part, CONCAT(bom.parent,'%',bom.component) AS sortpart - FROM bom LEFT JOIN bom as bom2 ON bom.parent = bom2.component + FROM bom LEFT JOIN bom as bom2 + ON bom.parent = bom2.component WHERE bom2.component IS NULL"; $result = DB_query($sql,$db); @@ -116,11 +117,11 @@ $result = DB_query($sql,$db); while ($myrow=DB_fetch_array($result)) { $parts = explode('%',$myrow['sortpart']); - $level = $myrow['level']; + $Level = $myrow['level']; $ctr = 0; foreach ($parts as $part) { $ctr++; - $newlevel = $level - $ctr; + $newlevel = $Level - $ctr; $sql = "INSERT INTO bomlevels (part, level) VALUES('" . $part . "','" . $newlevel . "')"; $result2 = DB_query($sql,$db); } // End of foreach @@ -223,7 +224,9 @@ mrpdemandtype varchar(6), orderno int(11), directdemand smallint, - whererequired char(20)) DEFAULT CHARSET=utf8"; + whererequired char(20), + KEY part (part) + ) DEFAULT CHARSET=utf8"; $result = DB_query($sql,$db,_('Create of mrprequirements failed because')); prnMsg(_('Loading requirements from sales orders'),'info'); @@ -314,7 +317,6 @@ prnMsg(_('Loading requirements based on reorder level'),'info'); flush(); - $result = DB_query("ALTER TABLE mrprequirements ADD INDEX part(part)",$db); // In the following section, create mrpsupplies from open purchase orders, // open work orders, and current quantity onhand from locstock @@ -398,7 +400,7 @@ FROM locstock WHERE quantity > 0 " . $WhereLocation . - 'GROUP BY stockid'; + "GROUP BY stockid"; $result = DB_query($sql,$db); prnMsg(_('Loading supplies from work orders'),'info'); @@ -434,14 +436,14 @@ flush(); $result = DB_query("DROP TABLE IF EXISTS mrpplannedorders",$db); $sql = "CREATE TABLE mrpplannedorders (id int(11) NOT NULL auto_increment, - part char(20), - duedate date, - supplyquantity double, - ordertype varchar(6), - orderno int(11), - mrpdate date, - updateflag smallint(6), - PRIMARY KEY (id)) DEFAULT CHARSET=utf8"; + part char(20), + duedate date, + supplyquantity double, + ordertype varchar(6), + orderno int(11), + mrpdate date, + updateflag smallint(6), + PRIMARY KEY (id)) DEFAULT CHARSET=utf8"; $result = DB_query($sql,$db,_('Create of mrpplannedorders failed because')); // Find the highest and lowest level number @@ -449,8 +451,8 @@ $result = DB_query($sql,$db); $myrow = DB_fetch_row($result); - $maxlevel = $myrow[0]; - $minlevel = $myrow[1]; + $MaxLevel = $myrow[0]; + $MinLevel = $myrow[1]; // At this point, have all requirements in mrprequirements and all supplies to satisfy // those requirements in mrpsupplies. Starting at the top level, will read all parts one @@ -458,17 +460,17 @@ // planned orders to satisfy requirements. If there is a net requirement from a higher level // part, that serves as a gross requirement for a lower level part, so will read down through // the Bill of Materials to generate those requirements in function LevelNetting(). - for ($level = $maxlevel; $level >= $minlevel; $level--) { - $sql = "SELECT * FROM levels WHERE level = '" . $level ."' LIMIT 50000"; //should cover most eventualities!! ... yes indeed :-) + for ($Level = $MaxLevel; $Level >= $MinLevel; $Level--) { + $sql = "SELECT * FROM levels WHERE level = '" . $Level ."' LIMIT 50000"; //should cover most eventualities!! ... yes indeed :-) - prnMsg('</br>------ ' . _('Processing level') .' ' . $level . ' ------','info'); + prnMsg('------ ' . _('Processing level') .' ' . $Level . ' ------','info'); flush(); $result = DB_query($sql,$db); while ($myrow=DB_fetch_array($result)) { LevelNetting($db,$myrow['part'],$myrow['eoq'],$myrow['pansize'],$myrow['shrinkfactor']); } //end of while loop } // end of for - echo '</br>' . _('End time') . ': ' . date('h:i:s') . '</br>'; + echo '<br />' . _('End time') . ': ' . date('h:i:s') . '<br />'; // Create mrpparameters table $sql = "DROP TABLE IF EXISTS mrpparameters"; Modified: trunk/PrintCustTrans.php =================================================================== --- trunk/PrintCustTrans.php 2011-06-28 10:12:27 UTC (rev 4609) +++ trunk/PrintCustTrans.php 2011-07-02 01:34:04 UTC (rev 4610) @@ -80,121 +80,121 @@ if ($InvOrCredit=='Invoice') { $sql = "SELECT debtortrans.trandate, - debtortrans.ovamount, - debtortrans.ovdiscount, - debtortrans.ovfreight, - debtortrans.ovgst, - debtortrans.rate, - debtortrans.invtext, - debtortrans.consignment, - debtorsmaster.name, - debtorsmaster.address1, - debtorsmaster.address2, - debtorsmaster.address3, - debtorsmaster.address4, - debtorsmaster.address5, - debtorsmaster.address6, - debtorsmaster.currcode, - debtorsmaster.invaddrbranch, - debtorsmaster.taxref, - paymentterms.terms, - salesorders.deliverto, - salesorders.deladd1, - salesorders.deladd2, - salesorders.deladd3, - salesorders.deladd4, - salesorders.deladd5, - salesorders.deladd6, - salesorders.customerref, - salesorders.orderno, - salesorders.orddate, - locations.locationname, - shippers.shippername, - custbranch.brname, - custbranch.braddress1, - custbranch.braddress2, - custbranch.braddress3, - custbranch.braddress4, - custbranch.braddress5, - custbranch.braddress6, - custbranch.brpostaddr1, - custbranch.brpostaddr2, - custbranch.brpostaddr3, - custbranch.brpostaddr4, - custbranch.brpostaddr5, - custbranch.brpostaddr6, - salesman.salesmanname, - debtortrans.debtorno, - debtortrans.branchcode - FROM debtortrans, - debtorsmaster, - custbranch, - salesorders, - shippers, - salesman, - locations, - paymentterms - WHERE debtortrans.order_ = salesorders.orderno - AND debtortrans.type=10 - AND debtortrans.transno='" . $FromTransNo . "' - AND debtortrans.shipvia=shippers.shipper_id - AND debtortrans.debtorno=debtorsmaster.debtorno - AND debtorsmaster.paymentterms=paymentterms.termsindicator - AND debtortrans.debtorno=custbranch.debtorno - AND debtortrans.branchcode=custbranch.branchcode - AND custbranch.salesman=salesman.salesmancode - AND salesorders.fromstkloc=locations.loccode"; + debtortrans.ovamount, + debtortrans.ovdiscount, + debtortrans.ovfreight, + debtortrans.ovgst, + debtortrans.rate, + debtortrans.invtext, + debtortrans.consignment, + debtorsmaster.name, + debtorsmaster.address1, + debtorsmaster.address2, + debtorsmaster.address3, + debtorsmaster.address4, + debtorsmaster.address5, + debtorsmaster.address6, + debtorsmaster.currcode, + debtorsmaster.invaddrbranch, + debtorsmaster.taxref, + paymentterms.terms, + salesorders.deliverto, + salesorders.deladd1, + salesorders.deladd2, + salesorders.deladd3, + salesorders.deladd4, + salesorders.deladd5, + salesorders.deladd6, + salesorders.customerref, + salesorders.orderno, + salesorders.orddate, + locations.locationname, + shippers.shippername, + custbranch.brname, + custbranch.braddress1, + custbranch.braddress2, + custbranch.braddress3, + custbranch.braddress4, + custbranch.braddress5, + custbranch.braddress6, + custbranch.brpostaddr1, + custbranch.brpostaddr2, + custbranch.brpostaddr3, + custbranch.brpostaddr4, + custbranch.brpostaddr5, + custbranch.brpostaddr6, + salesman.salesmanname, + debtortrans.debtorno, + debtortrans.branchcode + FROM debtortrans, + debtorsmaster, + custbranch, + salesorders, + shippers, + salesman, + locations, + paymentterms + WHERE debtortrans.order_ = salesorders.orderno + AND debtortrans.type=10 + AND debtortrans.transno='" . $FromTransNo . "' + AND debtortrans.shipvia=shippers.shipper_id + AND debtortrans.debtorno=debtorsmaster.debtorno + AND debtorsmaster.paymentterms=paymentterms.termsindicator + AND debtortrans.debtorno=custbranch.debtorno + AND debtortrans.branchcode=custbranch.branchcode + AND custbranch.salesman=salesman.salesmancode + AND salesorders.fromstkloc=locations.loccode"; if (isset($_POST['PrintEDI']) and $_POST['PrintEDI']=='No') { $sql = $sql . " AND debtorsmaster.ediinvoices=0"; } } else { $sql = "SELECT debtortrans.trandate, - debtortrans.ovamount, - debtortrans.ovdiscount, - debtortrans.ovfreight, - debtortrans.ovgst, - debtortrans.rate, - debtortrans.invtext, - debtorsmaster.invaddrbranch, - debtorsmaster.name, - debtorsmaster.address1, - debtorsmaster.address2, - debtorsmaster.address3, - debtorsmaster.address4, - debtorsmaster.address5, - debtorsmaster.address6, - debtorsmaster.currcode, - debtorsmaster.taxref, - custbranch.brname, - custbranch.braddress1, - custbranch.braddress2, - custbranch.braddress3, - custbranch.braddress4, - custbranch.braddress5, - custbranch.braddress6, - custbranch.brpostaddr1, - custbranch.brpostaddr2, - custbranch.brpostaddr3, - custbranch.brpostaddr4, - custbranch.brpostaddr5, - custbranch.brpostaddr6, - salesman.salesmanname, - debtortrans.debtorno, - debtortrans.branchcode, - paymentterms.terms - FROM debtortrans, - debtorsmaster, - custbranch, - salesman, - paymentterms - WHERE debtortrans.type=11 - AND debtorsmaster.paymentterms = paymentterms.termsindicator - AND debtortrans.transno='" . $FromTransNo . "' - AND debtortrans.debtorno=debtorsmaster.debtorno - AND debtortrans.debtorno=custbranch.debtorno - AND debtortrans.branchcode=custbranch.branchcode - AND custbranch.salesman=salesman.salesmancode"; + debtortrans.ovamount, + debtortrans.ovdiscount, + debtortrans.ovfreight, + debtortrans.ovgst, + debtortrans.rate, + debtortrans.invtext, + debtorsmaster.invaddrbranch, + debtorsmaster.name, + debtorsmaster.address1, + debtorsmaster.address2, + debtorsmaster.address3, + debtorsmaster.address4, + debtorsmaster.address5, + debtorsmaster.address6, + debtorsmaster.currcode, + debtorsmaster.taxref, + custbranch.brname, + custbranch.braddress1, + custbranch.braddress2, + custbranch.braddress3, + custbranch.braddress4, + custbranch.braddress5, + custbranch.braddress6, + custbranch.brpostaddr1, + custbranch.brpostaddr2, + custbranch.brpostaddr3, + custbranch.brpostaddr4, + custbranch.brpostaddr5, + custbranch.brpostaddr6, + salesman.salesmanname, + debtortrans.debtorno, + debtortrans.branchcode, + paymentterms.terms + FROM debtortrans, + debtorsmaster, + custbranch, + salesman, + paymentterms + WHERE debtortrans.type=11 + AND debtorsmaster.paymentterms = paymentterms.termsindicator + AND debtortrans.transno='" . $FromTransNo . "' + AND debtortrans.debtorno=debtorsmaster.debtorno + AND debtortrans.debtorno=custbranch.debtorno + AND debtortrans.branchcode=custbranch.branchcode + AND custbranch.salesman=salesman.salesmancode"; if ($_POST['PrintEDI']=='No') { $sql = $sql . " AND debtorsmaster.ediinvoices=0"; @@ -219,35 +219,35 @@ if ($InvOrCredit=='Invoice') { $sql = "SELECT stockmoves.stockid, - stockmaster.description, - -stockmoves.qty as quantity, - stockmoves.discountpercent, - ((1 - stockmoves.discountpercent) * stockmoves.price * " . $ExchRate . "* -stockmoves.qty) AS fxnet, - (stockmoves.price * " . $ExchRate . ") AS fxprice, - stockmoves.narrative, - stockmaster.units - FROM stockmoves, - stockmaster - WHERE stockmoves.stockid = stockmaster.stockid - AND stockmoves.type=10 - AND stockmoves.transno=" . $FromTransNo . " - AND stockmoves.show_on_inv_crds=1"; + stockmaster.description, + -stockmoves.qty as quantity, + stockmoves.discountpercent, + ((1 - stockmoves.discountpercent) * stockmoves.price * " . $ExchRate . "* -stockmoves.qty) AS fxnet, + (stockmoves.price * " . $ExchRate . ") AS fxprice, + stockmoves.narrative, + stockmaster.units + FROM stockmoves, + stockmaster + WHERE stockmoves.stockid = stockmaster.stockid + AND stockmoves.type=10 + AND stockmoves.transno=" . $FromTransNo . " + AND stockmoves.show_on_inv_crds=1"; } else { /* only credit notes to be retrieved */ $sql = "SELECT stockmoves.stockid, - stockmaster.description, - stockmoves.qty as quantity, - stockmoves.discountpercent, - ((1 - stockmoves.discountpercent) * stockmoves.price * " . $ExchRate . " * stockmoves.qty) AS fxnet, - (stockmoves.price * " . $ExchRate . ") AS fxprice, - stockmoves.narrative, - stockmaster.units - FROM stockmoves, - stockmaster - WHERE stockmoves.stockid = stockmaster.stockid - AND stockmoves.type=11 - AND stockmoves.transno=" . $FromTransNo . " - AND stockmoves.show_on_inv_crds=1"; + stockmaster.description, + stockmoves.qty as quantity, + stockmoves.discountpercent, + ((1 - stockmoves.discountpercent) * stockmoves.price * " . $ExchRate . " * stockmoves.qty) AS fxnet, + (stockmoves.price * " . $ExchRate . ") AS fxprice, + stockmoves.narrative, + stockmaster.units + FROM stockmoves, + stockmaster + WHERE stockmoves.stockid = stockmaster.stockid + AND stockmoves.type=11 + AND stockmoves.transno=" . $FromTransNo . " + AND stockmoves.show_on_inv_crds=1"; } // end else $result=DB_query($sql,$db); @@ -407,6 +407,36 @@ $YPos-=12; $LeftOvers = $pdf->addTextWrap($Left_Margin+280,$YPos,220,$FontSize,$LeftOvers); } + /*print out bank details */ + /*Get currency default for the currency of the invocie */ + $PrintBankDetails = true; //assume we print bank details by default + $BankResult = DB_query("SELECT bankaddress, + bankaccountnumber, + bankaccountcode + FROM bankaccounts + WHERE invoice=2 + AND currcode='" . $myrow['currcode'] . "'", + $db); + if (DB_num_rows($BankResult)==0){ + /* If no currency default check the fall back default */ + $BankResult = DB_query("SELECT bankaddress, + bankaccountnumber, + bankaccountcode + FROM bankaccounts + WHERE invoice=1", + $db); + if (DB_num_rows($BankResult)==0){ + $PrintBankDetails = false; + } + } + if ($PrintBankDetails){ + $BankDetailsRow = DB_fetch_array($BankResult); + $YPos-=4; + $LeftOvers = $pdf->addTextWrap($Left_Margin+280,$YPos,220,$FontSize,$BankDetailsRow['bankaddress']); + $YPos-=12; + $LeftOvers = $pdf->addTextWrap($Left_Margin+280,$YPos,220,$FontSize,$BankDetailsRow['bankaccountcode'] . ' ' . _('Account No:') . ' ' . $BankDetailsRow['bankaccountnumber']); + } + /* Add Images for Visa / Mastercard / Paypal */ if (file_exists('companies/' . $_SESSION['DatabaseName'] . '/payment.jpg')) { $pdf->addJpegFromFile('companies/' . $_SESSION['DatabaseName'] . '/payment.jpg',$Page_Width/2 -280,$YPos-20,0,40); Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2011-06-28 10:12:27 UTC (rev 4609) +++ trunk/doc/Change.log 2011-07-02 01:34:04 UTC (rev 4610) @@ -1,5 +1,6 @@ webERP Change Log +29/6/11 Phil: Bank account to allow default for invoice in currency and also a fall back default to show on invoice where no default for the currency. Modified BankAccounts.php and PrintCustTrans.php (Landscape only) to show the pertinent bank account given the currency of the invoice 28/6/11 Phil: Make assembly items explode into components on packing slips PrintCustOrder_generic.php 28/6/11 Exson: MRPDemands.php links missing ? now fixed - script fixed for quoting variable name CamelCasing 27/6/11 Exson: MRP.php fixed modulus arithmetic that prevented suggesting production quantities where the quantity was less than 1 - the calculation using PanSize should round up to the nearest whole unit to manufacture Modified: trunk/sql/mysql/upgrade3.11-3.11.1.sql =================================================================== --- trunk/sql/mysql/upgrade3.11-3.11.1.sql 2011-06-28 10:12:27 UTC (rev 4609) +++ trunk/sql/mysql/upgrade3.11-3.11.1.sql 2011-07-02 01:34:04 UTC (rev 4610) @@ -1,3 +1,4 @@ +USE saveurpacific; SET FOREIGN_KEY_CHECKS=0; ALTER TABLE accountgroups ADD CONSTRAINT `accountgroups_ibfk_1` FOREIGN KEY (`sectioninaccounts`) REFERENCES `accountsection` (`sectionid`); ALTER TABLE audittrail ADD CONSTRAINT `audittrail_ibfk_1` FOREIGN KEY (`userid`) REFERENCES `www_users` (`userid`); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dai...@us...> - 2011-07-02 22:51:51
|
Revision: 4617 http://web-erp.svn.sourceforge.net/web-erp/?rev=4617&view=rev Author: daintree Date: 2011-07-02 22:51:40 +0000 (Sat, 02 Jul 2011) Log Message: ----------- mb_strlen Modified Paths: -------------- trunk/AccountSections.php trunk/AddCustomerContacts.php trunk/AddCustomerNotes.php trunk/AddCustomerTypeNotes.php trunk/AgedDebtors.php trunk/AgedSuppliers.php trunk/Areas.php trunk/BOMInquiry.php trunk/BOMListing.php trunk/BOMs.php trunk/BankAccounts.php trunk/CompanyPreferences.php trunk/ConfirmDispatch_Invoice.php trunk/ContractBOM.php trunk/Contracts.php trunk/CounterSales.php trunk/CreditStatus.php trunk/Currencies.php trunk/CustEDISetup.php trunk/CustLoginSetup.php trunk/CustomerBranches.php trunk/CustomerReceipt.php trunk/CustomerTypes.php trunk/Customers.php trunk/DailySalesInquiry.php trunk/DebtorsAtPeriodEnd.php trunk/DeliveryDetails.php trunk/EDIProcessOrders.php trunk/EmailConfirmation.php trunk/Factors.php trunk/FixedAssetCategories.php trunk/FixedAssetItems.php trunk/FixedAssetLocations.php trunk/FormDesigner.php trunk/FreightCosts.php trunk/GLAccountReport.php trunk/GLAccounts.php trunk/GLTransInquiry.php trunk/GetStockImage.php trunk/InventoryPlanning.php trunk/InventoryValuation.php trunk/MRPDemandTypes.php trunk/MRPDemands.php trunk/MRPReport.php trunk/Numbers/Words/lang.bg.php trunk/Numbers/Words/lang.cs.php trunk/Numbers/Words/lang.de.php trunk/Numbers/Words/lang.dk.php trunk/Numbers/Words/lang.en_100.php trunk/Numbers/Words/lang.en_GB.php trunk/Numbers/Words/lang.en_US.php trunk/Numbers/Words/lang.es.php trunk/Numbers/Words/lang.es_AR.php trunk/Numbers/Words/lang.et.php trunk/Numbers/Words/lang.fr.php trunk/Numbers/Words/lang.fr_BE.php trunk/Numbers/Words/lang.he.php trunk/Numbers/Words/lang.hu_HU.php trunk/Numbers/Words/lang.id.php trunk/Numbers/Words/lang.it_IT.php trunk/Numbers/Words/lang.lt.php trunk/Numbers/Words/lang.nl.php trunk/Numbers/Words/lang.pl.php trunk/Numbers/Words/lang.pt_BR.php trunk/Numbers/Words/lang.ru.php trunk/Numbers/Words/lang.sv.php trunk/Numbers/Words.php trunk/OutstandingGRNs.php trunk/PDFDeliveryDifferences.php trunk/PDFPriceList.php trunk/PDFPrintLabel.php trunk/PDFQuotation.php trunk/PDFQuotationPortrait.php trunk/PDFRemittanceAdvice.php trunk/PDFStockCheckComparison.php trunk/PDFStockLocTransfer.php trunk/PDFTopItems.php trunk/POReport.php trunk/PO_Header.php trunk/PO_Items.php trunk/PO_PDFPurchOrder.php trunk/PageSecurity.php trunk/PaymentTerms.php trunk/PcExpenses.php trunk/PcTabs.php trunk/PcTypeTabs.php trunk/Prices.php trunk/Prices_Customer.php trunk/PrintCheque.php trunk/PrintCustStatements.php trunk/PrintCustTrans.php trunk/PrintCustTransPortrait.php trunk/PurchData.php trunk/ReorderLevel.php trunk/SalesAnalReptCols.php trunk/SalesAnalRepts.php trunk/SalesCategories.php trunk/SalesInquiry.php trunk/SalesPeople.php trunk/SalesTypes.php trunk/SecurityTokens.php trunk/SelectCompletedOrder.php trunk/SelectCreditItems.php trunk/SelectCustomer.php trunk/SelectGLAccount.php trunk/SelectOrderItems.php trunk/SelectSalesOrder.php trunk/SelectSupplier.php trunk/Shipments.php trunk/Shippers.php trunk/SpecialOrder.php trunk/StockAdjustments.php trunk/StockCategories.php trunk/StockCheck.php trunk/StockCounts.php trunk/StockSerialItemResearch.php trunk/StockTransfers.php trunk/Stocks.php trunk/SuppLoginSetup.php trunk/SuppPaymentRun.php trunk/SupplierBalsAtPeriodEnd.php trunk/SupplierContacts.php trunk/SupplierCredit.php trunk/SupplierInvoice.php trunk/SupplierTenders.php trunk/SupplierTypes.php trunk/Suppliers.php trunk/SystemParameters.php trunk/TaxGroups.php trunk/UpgradeDatabase.php trunk/WOSerialNos.php trunk/WWW_Access.php trunk/WWW_Users.php trunk/WorkCentres.php trunk/WorkOrderEntry.php trunk/WorkOrderIssue.php trunk/WorkOrderReceive.php trunk/Z_CreateCompanyTemplateFile.php trunk/Z_DataExport.php trunk/Z_ImportChartOfAccounts.php trunk/Z_ImportFixedAssets.php trunk/Z_ImportStocks.php trunk/Z_MakeNewCompany.php trunk/Z_Upgrade_3.04-3.05.php trunk/Z_Upgrade_3.05-3.06.php trunk/Z_Upgrade_3.07-3.08.php trunk/Z_Upgrade_3.08-3.09.php trunk/Z_Upgrade_3.09-3.10.php trunk/Z_Upgrade_3.10-3.11.php trunk/Z_Upgrade_3.11-4.00.php trunk/Z_poAddLanguage.php trunk/Z_poEditLangModule.php trunk/Z_poEditLangRemaining.php trunk/api/api_customers.php trunk/api/api_debtortransactions.php trunk/api/api_glaccounts.php trunk/api/api_glsections.php trunk/api/api_locations.php trunk/api/api_login.php trunk/api/api_purchdata.php trunk/api/api_salesorders.php trunk/api/api_stock.php trunk/api/api_stockcategories.php trunk/api/api_suppliers.php trunk/api/api_workorders.php trunk/includes/Add_SerialItems.php trunk/includes/Add_SerialItemsOut.php trunk/includes/DateFunctions.inc trunk/includes/MiscFunctions.php trunk/includes/PDFOrderPageHeader.inc trunk/includes/PDFOrderPageHeader_generic.inc trunk/includes/PDFPickingListHeader.inc trunk/includes/PDFSalesOrder_generic.inc trunk/includes/PO_PDFOrderPageHeader.inc trunk/includes/RFC822.php trunk/includes/class.pdf.php trunk/includes/mimePart.php trunk/includes/php-gettext/gettext.inc trunk/includes/php-gettext/streams.php trunk/includes/phplot/phplot.php trunk/includes/smtp.php trunk/includes/tcpdf/barcodes.php trunk/includes/tcpdf/config/tcpdf_config.php trunk/includes/tcpdf/config/tcpdf_config_alt.php trunk/includes/tcpdf/tcpdf.php trunk/install/save.php trunk/install/timezone.php trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.mo trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po trunk/locale/de_DE.utf8/LC_MESSAGES/messages.mo trunk/locale/de_DE.utf8/LC_MESSAGES/messages.po trunk/locale/el_GR.utf8/LC_MESSAGES/messages.mo trunk/locale/el_GR.utf8/LC_MESSAGES/messages.po trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot trunk/locale/en_US.utf8/LC_MESSAGES/messages.mo trunk/locale/en_US.utf8/LC_MESSAGES/messages.po trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po trunk/locale/et_EE.utf8/LC_MESSAGES/messages.mo trunk/locale/et_EE.utf8/LC_MESSAGES/messages.po trunk/locale/fa_IR.utf8/LC_MESSAGES/messages.mo trunk/locale/fa_IR.utf8/LC_MESSAGES/messages.po trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.mo trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.mo trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.po trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.mo trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.po trunk/locale/hu_HU.utf8/LC_MESSAGES/messages.mo trunk/locale/hu_HU.utf8/LC_MESSAGES/messages.po trunk/locale/id_ID.utf8/LC_MESSAGES/messages.mo trunk/locale/id_ID.utf8/LC_MESSAGES/messages.po trunk/locale/it_IT.utf8/LC_MESSAGES/messages.mo trunk/locale/it_IT.utf8/LC_MESSAGES/messages.po trunk/locale/ja_JP.utf8/LC_MESSAGES/messages.mo trunk/locale/ja_JP.utf8/LC_MESSAGES/messages.po trunk/locale/lv_LV.utf8/LC_MESSAGES/messages.mo trunk/locale/lv_LV.utf8/LC_MESSAGES/messages.po trunk/locale/nl_NL.utf8/LC_MESSAGES/messages.mo trunk/locale/nl_NL.utf8/LC_MESSAGES/messages.po trunk/locale/pl_PL.utf8/LC_MESSAGES/messages.mo trunk/locale/pl_PL.utf8/LC_MESSAGES/messages.po trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.mo trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.po trunk/locale/pt_PT.utf8/LC_MESSAGES/messages.mo trunk/locale/pt_PT.utf8/LC_MESSAGES/messages.po trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.mo trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.po trunk/locale/ru_RU.utf8/LC_MESSAGES/messages.mo trunk/locale/ru_RU.utf8/LC_MESSAGES/messages.po trunk/locale/sq_AL.utf8/LC_MESSAGES/messages.mo trunk/locale/sq_AL.utf8/LC_MESSAGES/messages.po trunk/locale/sv_SE.utf8/LC_MESSAGES/messages.mo trunk/locale/sv_SE.utf8/LC_MESSAGES/messages.po trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.mo trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.po trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.mo trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.po trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.mo trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.po trunk/reportwriter/WriteForm.inc trunk/reportwriter/WriteReport.inc trunk/reportwriter/admin/RCFunctions.inc trunk/sql/mysql/weberp-demo.sql trunk/sql/mysql/weberp-new.sql Modified: trunk/AccountSections.php =================================================================== --- trunk/AccountSections.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/AccountSections.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -74,7 +74,7 @@ $Errors[$i] = 'SectionName'; $i++; } - if (strlen($_POST['SectionName'])==0) { + if (mb_strlen($_POST['SectionName'])==0) { $InputError = 1; prnMsg( _('The account section name must contain at least one character') ,'error'); $Errors[$i] = 'SectionName'; Modified: trunk/AddCustomerContacts.php =================================================================== --- trunk/AddCustomerContacts.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/AddCustomerContacts.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -39,13 +39,13 @@ if (isset($_POST['Con_ID']) and !is_long((integer)$_POST['Con_ID'])) { $InputError = 1; prnMsg( _('The Contact ID must be an integer.'), 'error'); - } elseif (strlen($_POST['ContactName']) >40) { + } elseif (mb_strlen($_POST['ContactName']) >40) { $InputError = 1; prnMsg( _('The contact name must be forty characters or less long'), 'error'); } elseif( trim($_POST['ContactName']) == '' ) { $InputError = 1; prnMsg( _('The contact name may not be empty'), 'error'); - }elseif (!IsEmailAddress($_POST['ContactEmail']) AND strlen($_POST['ContactEmail'])>0){ + }elseif (!IsEmailAddress($_POST['ContactEmail']) AND mb_strlen($_POST['ContactEmail'])>0){ $InputError = 1; prnMsg( _('The contact email address is not a valid email address'), 'error'); } Modified: trunk/AddCustomerNotes.php =================================================================== --- trunk/AddCustomerNotes.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/AddCustomerNotes.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -30,7 +30,7 @@ if (!is_long((integer)$_POST['priority'])) { $InputError = 1; prnMsg( _('The contact priority must be an integer.'), 'error'); - } elseif (strlen($_POST['note']) >200) { + } elseif (mb_strlen($_POST['note']) >200) { $InputError = 1; prnMsg( _("The contact's notes must be two hundred characters or less long"), 'error'); } elseif( trim($_POST['note']) == '' ) { Modified: trunk/AddCustomerTypeNotes.php =================================================================== --- trunk/AddCustomerTypeNotes.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/AddCustomerTypeNotes.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -28,7 +28,7 @@ if (!is_long((integer)$_POST['priority'])) { $InputError = 1; prnMsg(_('The Contact priority must be an integer.'), 'error'); - } elseif (strlen($_POST['note']) >200) { + } elseif (mb_strlen($_POST['note']) >200) { $InputError = 1; prnMsg(_("The contact's notes must be two hundred characters or less long"), 'error'); } elseif( trim($_POST['note']) == '' ) { Modified: trunk/AgedDebtors.php =================================================================== --- trunk/AgedDebtors.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/AgedDebtors.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -6,9 +6,9 @@ if (isset($_POST['PrintPDF']) and isset($_POST['FromCriteria']) - and strlen($_POST['FromCriteria'])>=1 + and mb_strlen($_POST['FromCriteria'])>=1 and isset($_POST['ToCriteria']) - and strlen($_POST['ToCriteria'])>=1) { + and mb_strlen($_POST['ToCriteria'])>=1) { include('includes/PDFStarter.php'); $pdf->addInfo('Title',_('Aged Customer Balance Listing')); Modified: trunk/AgedSuppliers.php =================================================================== --- trunk/AgedSuppliers.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/AgedSuppliers.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -6,9 +6,9 @@ If (isset($_POST['PrintPDF']) AND isset($_POST['FromCriteria']) - AND strlen($_POST['FromCriteria'])>=1 + AND mb_strlen($_POST['FromCriteria'])>=1 AND isset($_POST['ToCriteria']) - AND strlen($_POST['ToCriteria'])>=1){ + AND mb_strlen($_POST['ToCriteria'])>=1){ include('includes/PDFStarter.php'); Modified: trunk/Areas.php =================================================================== --- trunk/Areas.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/Areas.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -35,7 +35,7 @@ $result = DB_query($sql, $db); $myrow = DB_fetch_row($result); // mod to handle 3 char area codes - if (strlen($_POST['AreaCode']) > 3) { + if (mb_strlen($_POST['AreaCode']) > 3) { $InputError = 1; prnMsg(_('The area code must be three characters or less long'),'error'); $Errors[$i] = 'AreaCode'; @@ -45,7 +45,7 @@ prnMsg(_('The area code entered already exists'),'error'); $Errors[$i] = 'AreaCode'; $i++; - } elseif (strlen($_POST['AreaDescription']) >25) { + } elseif (mb_strlen($_POST['AreaDescription']) >25) { $InputError = 1; prnMsg(_('The area description must be twenty five characters or less long'),'error'); $Errors[$i] = 'AreaDescription'; Modified: trunk/BOMInquiry.php =================================================================== --- trunk/BOMInquiry.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/BOMInquiry.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -41,7 +41,7 @@ if ($_POST['Keywords']=='' AND $_POST['StockCode']=='') { prnMsg( _('At least one stock description keyword or an extract of a stock code must be entered for the search'), 'info' ); } else { - if (strlen($_POST['Keywords'])>0) { + if (mb_strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; @@ -61,7 +61,7 @@ stockmaster.mbflag ORDER BY stockmaster.stockid"; - } elseif (strlen($_POST['StockCode'])>0){ + } elseif (mb_strlen($_POST['StockCode'])>0){ $sql = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units, Modified: trunk/BOMListing.php =================================================================== --- trunk/BOMListing.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/BOMListing.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -6,9 +6,9 @@ If (isset($_POST['PrintPDF']) AND isset($_POST['FromCriteria']) - AND strlen($_POST['FromCriteria'])>=1 + AND mb_strlen($_POST['FromCriteria'])>=1 AND isset($_POST['ToCriteria']) - AND strlen($_POST['ToCriteria'])>=1){ + AND mb_strlen($_POST['ToCriteria'])>=1){ include('includes/PDFStarter.php'); $pdf->addInfo('Title',_('Bill Of Material Listing')); Modified: trunk/BOMs.php =================================================================== --- trunk/BOMs.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/BOMs.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -745,7 +745,7 @@ if ($_POST['Keywords']=='' AND $_POST['StockCode']=='') { prnMsg( _('At least one stock description keyword or an extract of a stock code must be entered for the search'), 'info' ); } else { - if (strlen($_POST['Keywords'])>0) { + if (mb_strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; @@ -765,7 +765,7 @@ stockmaster.mbflag ORDER BY stockmaster.stockid"; - } elseif (strlen($_POST['StockCode'])>0){ + } elseif (mb_strlen($_POST['StockCode'])>0){ $sql = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units, Modified: trunk/BankAccounts.php =================================================================== --- trunk/BankAccounts.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/BankAccounts.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -45,7 +45,7 @@ $Errors[$i] = 'AccountCode'; $i++; } - if (strlen($_POST['BankAccountName']) >50) { + if (mb_strlen($_POST['BankAccountName']) >50) { $InputError = 1; prnMsg(_('The bank account name must be fifty characters or less long'),'error'); $Errors[$i] = 'AccountName'; @@ -63,13 +63,13 @@ $Errors[$i] = 'AccountNumber'; $i++; } - if (strlen($_POST['BankAccountNumber']) >50) { + if (mb_strlen($_POST['BankAccountNumber']) >50) { $InputError = 1; prnMsg(_('The bank account number must be fifty characters or less long'),'error'); $Errors[$i] = 'AccountNumber'; $i++; } - if (strlen($_POST['BankAddress']) >50) { + if (mb_strlen($_POST['BankAddress']) >50) { $InputError = 1; prnMsg(_('The bank address must be fifty characters or less long'),'error'); $Errors[$i] = 'BankAddress'; Modified: trunk/CompanyPreferences.php =================================================================== --- trunk/CompanyPreferences.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/CompanyPreferences.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -25,67 +25,67 @@ //first off validate inputs sensible - if (strlen($_POST['CoyName']) > 40 OR strlen($_POST['CoyName'])==0) { + if (mb_strlen($_POST['CoyName']) > 40 OR mb_strlen($_POST['CoyName'])==0) { $InputError = 1; prnMsg(_('The company name must be entered and be fifty characters or less long'), 'error'); $Errors[$i] = 'CoyName'; $i++; } - if (strlen($_POST['RegOffice1']) >40) { + if (mb_strlen($_POST['RegOffice1']) >40) { $InputError = 1; prnMsg(_('The Line 1 of the address must be forty characters or less long'),'error'); $Errors[$i] = 'RegOffice1'; $i++; } - if (strlen($_POST['RegOffice2']) >40) { + if (mb_strlen($_POST['RegOffice2']) >40) { $InputError = 1; prnMsg(_('The Line 2 of the address must be forty characters or less long'),'error'); $Errors[$i] = 'RegOffice2'; $i++; } - if (strlen($_POST['RegOffice3']) >40) { + if (mb_strlen($_POST['RegOffice3']) >40) { $InputError = 1; prnMsg(_('The Line 3 of the address must be forty characters or less long'),'error'); $Errors[$i] = 'RegOffice3'; $i++; } - if (strlen($_POST['RegOffice4']) >40) { + if (mb_strlen($_POST['RegOffice4']) >40) { $InputError = 1; prnMsg(_('The Line 4 of the address must be forty characters or less long'),'error'); $Errors[$i] = 'RegOffice4'; $i++; } - if (strlen($_POST['RegOffice5']) >20) { + if (mb_strlen($_POST['RegOffice5']) >20) { $InputError = 1; prnMsg(_('The Line 5 of the address must be twenty characters or less long'),'error'); $Errors[$i] = 'RegOffice5'; $i++; } - if (strlen($_POST['RegOffice6']) >15) { + if (mb_strlen($_POST['RegOffice6']) >15) { $InputError = 1; prnMsg(_('The Line 6 of the address must be fifteen characters or less long'),'error'); $Errors[$i] = 'RegOffice6'; $i++; } - if (strlen($_POST['Telephone']) >25) { + if (mb_strlen($_POST['Telephone']) >25) { $InputError = 1; prnMsg(_('The telephone number must be 25 characters or less long'),'error'); $Errors[$i] = 'Telephone'; $i++; } - if (strlen($_POST['Fax']) >25) { + if (mb_strlen($_POST['Fax']) >25) { $InputError = 1; prnMsg(_('The fax number must be 25 characters or less long'),'error'); $Errors[$i] = 'Fax'; $i++; } - if (strlen($_POST['Email']) >55) { + if (mb_strlen($_POST['Email']) >55) { $InputError = 1; prnMsg(_('The email address must be 55 characters or less long'),'error'); $Errors[$i] = 'Email'; $i++; } - if (strlen($_POST['Email'])>0 and !IsEmailAddress($_POST['Email'])) { + if (mb_strlen($_POST['Email'])>0 and !IsEmailAddress($_POST['Email'])) { $InputError = 1; prnMsg(_('The email address is not correctly formed'),'error'); $Errors[$i] = 'Email'; Modified: trunk/ConfirmDispatch_Invoice.php =================================================================== --- trunk/ConfirmDispatch_Invoice.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/ConfirmDispatch_Invoice.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -391,7 +391,7 @@ } } echo '</tr>'; - if (strlen($LnItm->Narrative)>1){ + if (mb_strlen($LnItm->Narrative)>1){ $narrative=str_replace('\r\n','<br />', $LnItm->Narrative); echo $RowStarter . '<td colspan=12>' . stripslashes($narrative) . '</td></tr>'; } @@ -804,7 +804,7 @@ if ($HyphenOccursAt == false){ $AssetNumber = intval(substr($OrderLine->StockID,6)); } else { - $AssetNumber = intval(substr($OrderLine->StockID,6,strlen($OrderLine->StockID)-$HyphenOccursAt-1)); + $AssetNumber = intval(substr($OrderLine->StockID,6,mb_strlen($OrderLine->StockID)-$HyphenOccursAt-1)); } prnMsg (_('The asset number beind disposed of is:') . ' ' . $AssetNumber, 'info'); } else { Modified: trunk/ContractBOM.php =================================================================== --- trunk/ContractBOM.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/ContractBOM.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -166,7 +166,7 @@ /* take the form entries and enter the data from the form into the PurchOrder class variable */ foreach ($_POST as $ItemCode => $Quantity) { if (substr($ItemCode, 0, 3)=='Qty') { - $ItemCode=substr($ItemCode, 3, strlen($ItemCode)-3); + $ItemCode=substr($ItemCode, 3, mb_strlen($ItemCode)-3); $AlreadyOnThisBOM = 0; if (count($_SESSION['Contract'.$identifier]->ContractBOM)!=0){ Modified: trunk/Contracts.php =================================================================== --- trunk/Contracts.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/Contracts.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -73,7 +73,7 @@ /*User hit the button to enter line items - then meta refresh to Contract_Items.php*/ $InputError = false; - if(strlen($_SESSION['Contract'.$identifier]->ContractRef)<2){ + if(mb_strlen($_SESSION['Contract'.$identifier]->ContractRef)<2){ prnMsg(_('The contract reference must be entered (and be longer than 2 characters) before the requirements of the contract can be setup'),'warn'); $InputError = true; } @@ -107,7 +107,7 @@ $filename = $_SESSION['part_pics_dir'] . '/' . $_SESSION['Contract'.$identifier]->ContractRef . '.jpg'; //But check for the worst - if (strtoupper(substr(trim($_FILES['Drawing']['name']),strlen($_FILES['Drawing']['name'])-3))!='JPG'){ + if (strtoupper(substr(trim($_FILES['Drawing']['name']),mb_strlen($_FILES['Drawing']['name'])-3))!='JPG'){ prnMsg(_('Only jpg files are supported - a file extension of .jpg is expected'),'warn'); $UploadTheFile ='No'; } elseif ( $_FILES['Drawing']['size'] > ($_SESSION['MaxImageSize']*1024)) { //File Size Check @@ -220,7 +220,7 @@ //First update the session['Contract'.$identifier] variable with all inputs from the form $InputError = False; //assume no errors on input then test for errors - if (strlen($_POST['ContractRef']) < 2){ + if (mb_strlen($_POST['ContractRef']) < 2){ prnMsg(_('The contract reference is expected to be more than 2 characters long. Please alter the contract reference before proceeding.'),'error'); $InputError = true; } @@ -235,7 +235,7 @@ prnMsg(_('The contract reference cannot be the same as a previously created stock item. Please modify the contract reference before continuing'),'error'); $InputError=true; } - if (strlen($_POST['ContractDescription'])<10){ + if (mb_strlen($_POST['ContractDescription'])<10){ prnMsg(_('The contract description is expected to be more than 10 characters long. Please alter the contract description in full before proceeding.'),'error'); $InputError = true; } @@ -609,7 +609,7 @@ if (($_POST['CustKeywords']=='') AND ($_POST['CustCode']=='') AND ($_POST['CustPhone']=='')) { prnMsg(_('At least one Customer Branch Name keyword OR an extract of a Customer Branch Code or Branch Phone Number must be entered for the search'), 'warn'); } else { - if (strlen($_POST['CustKeywords'])>0) { + if (mb_strlen($_POST['CustKeywords'])>0) { //insert wildcard characters in spaces $_POST['CustKeywords'] = strtoupper(trim($_POST['CustKeywords'])); $SearchString = '%' . str_replace(' ', '%', $_POST['CustKeywords']) . '%'; @@ -628,7 +628,7 @@ AND custbranch.disabletrans=0 ORDER BY custbranch.debtorno, custbranch.branchcode"; - } elseif (strlen($_POST['CustCode'])>0){ + } elseif (mb_strlen($_POST['CustCode'])>0){ $_POST['CustCode'] = strtoupper(trim($_POST['CustCode'])); @@ -646,7 +646,7 @@ AND custbranch.disabletrans=0 ORDER BY custbranch.debtorno"; - } elseif (strlen($_POST['CustPhone'])>0){ + } elseif (mb_strlen($_POST['CustPhone'])>0){ $SQL = "SELECT custbranch.brname, custbranch.contactname, custbranch.phoneno, Modified: trunk/CounterSales.php =================================================================== --- trunk/CounterSales.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/CounterSales.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -221,7 +221,7 @@ } else if ($_POST['Keywords']=='' AND $_POST['StockCode']=='') { $msg='<div class="page_help_text">' . _('Stock Category has been used in search') . '.</div>'; } - if (isset($_POST['Keywords']) AND strlen($_POST['Keywords'])>0) { + if (isset($_POST['Keywords']) AND mb_strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces $_POST['Keywords'] = strtoupper($_POST['Keywords']); $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; @@ -254,7 +254,7 @@ ORDER BY stockmaster.stockid"; } - } else if (strlen($_POST['StockCode'])>0){ + } else if (mb_strlen($_POST['StockCode'])>0){ $_POST['StockCode'] = strtoupper($_POST['StockCode']); $SearchString = '%' . $_POST['StockCode'] . '%'; Modified: trunk/CreditStatus.php =================================================================== --- trunk/CreditStatus.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/CreditStatus.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -47,11 +47,11 @@ $Errors[$i] = 'ReasonCode'; $i++; } - if (strlen($_POST['ReasonDescription']) > 30) { + if (mb_strlen($_POST['ReasonDescription']) > 30) { $InputError = 1; prnMsg(_('The credit status description must be thirty characters or less long'),'error'); } - if (strlen($_POST['ReasonDescription']) == 0) { + if (mb_strlen($_POST['ReasonDescription']) == 0) { $InputError = 1; prnMsg(_('The credit status description must be entered'),'error'); $Errors[$i] = 'ReasonDescription'; Modified: trunk/Currencies.php =================================================================== --- trunk/Currencies.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/Currencies.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -50,7 +50,7 @@ $Errors[$i] = 'Abbreviation'; $i++; } - if (strlen($_POST['Abbreviation']) > 3) { + if (mb_strlen($_POST['Abbreviation']) > 3) { $InputError = 1; prnMsg(_('The currency abbreviation must be 3 characters or less long and for automated currency updates to work correctly be one of the ISO4217 currency codes'),'error'); $Errors[$i] = 'Abbreviation'; @@ -78,19 +78,19 @@ $Errors[$i] = 'DecimalPlaces'; $i++; } - if (strlen($_POST['CurrencyName']) > 20) { + if (mb_strlen($_POST['CurrencyName']) > 20) { $InputError = 1; prnMsg(_('The currency name must be 20 characters or less long'),'error'); $Errors[$i] = 'CurrencyName'; $i++; } - if (strlen($_POST['Country']) > 50) { + if (mb_strlen($_POST['Country']) > 50) { $InputError = 1; prnMsg(_('The currency country must be 50 characters or less long'),'error'); $Errors[$i] = 'Country'; $i++; } - if (strlen($_POST['HundredsName']) > 15) { + if (mb_strlen($_POST['HundredsName']) > 15) { $InputError = 1; prnMsg(_('The hundredths name must be 15 characters or less long'),'error'); $Errors[$i] = 'HundredsName'; Modified: trunk/CustEDISetup.php =================================================================== --- trunk/CustEDISetup.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/CustEDISetup.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -30,13 +30,13 @@ $InputError = 1; prnMsg(_('The customers EDI reference code cannot contain any of the following characters') .' - \' & + \" ' . _('or a space'),'warn'); } - if (strlen($_POST['EDIReference'])<4 AND ($_POST['EDIInvoices']==1 OR $_POST['EDIOrders']==1)){ + if (mb_strlen($_POST['EDIReference'])<4 AND ($_POST['EDIInvoices']==1 OR $_POST['EDIOrders']==1)){ $InputError = 1; prnMsg(_('The customers EDI reference code must be set when EDI Invoices or EDI orders are activated'),'warn'); $Errors[$i] = 'EDIReference'; $i++; } - if (strlen($_POST['EDIAddress'])<4 AND $_POST['EDIInvoices']==1){ + if (mb_strlen($_POST['EDIAddress'])<4 AND $_POST['EDIInvoices']==1){ $InputError = 1; prnMsg(_('The customers EDI email address or FTP server address must be entered if EDI Invoices are to be sent'),'warn'); $Errors[$i] = 'EDIAddress'; Modified: trunk/CustLoginSetup.php =================================================================== --- trunk/CustLoginSetup.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/CustLoginSetup.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -37,13 +37,13 @@ ie the page has called itself with some user input */ //first off validate inputs sensible - if (strlen($_POST['UserID'])<3){ + if (mb_strlen($_POST['UserID'])<3){ $InputError = 1; prnMsg(_('The user ID entered must be at least 4 characters long'),'error'); } elseif (ContainsIllegalCharacters($_POST['UserID']) OR strstr($_POST['UserID'],' ')) { $InputError = 1; prnMsg(_('User names cannot contain any of the following characters') . " - ' & + \" \\ " . _('or a space'),'error'); - } elseif (strlen($_POST['Password'])<5){ + } elseif (mb_strlen($_POST['Password'])<5){ if (!$SelectedUser){ $InputError = 1; prnMsg(_('The password entered must be at least 5 characters long'),'error'); @@ -51,12 +51,12 @@ } elseif (strstr($_POST['Password'],$_POST['UserID'])!= False){ $InputError = 1; prnMsg(_('The password cannot contain the user id'),'error'); - } elseif ((strlen($_POST['Cust'])>0) AND (strlen($_POST['BranchCode'])==0)) { + } elseif ((mb_strlen($_POST['Cust'])>0) AND (mb_strlen($_POST['BranchCode'])==0)) { $InputError = 1; prnMsg(_('If you enter a Customer Code you must also enter a Branch Code valid for this Customer'),'error'); } - if ((strlen($_POST['BranchCode'])>0) AND ($InputError !=1)) { + if ((mb_strlen($_POST['BranchCode'])>0) AND ($InputError !=1)) { // check that the entered branch is valid for the customer code $sql = "SELECT defaultlocation FROM custbranch Modified: trunk/CustomerBranches.php =================================================================== --- trunk/CustomerBranches.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/CustomerBranches.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -52,7 +52,7 @@ $Errors[$i] = 'BranchCode'; $i++; } - if (strlen($_POST['BranchCode'])==0) { + if (mb_strlen($_POST['BranchCode'])==0) { $InputError = 1; prnMsg(_('The Branch code must be at least one character long'),'error'); $Errors[$i] = 'BranchCode'; Modified: trunk/CustomerReceipt.php =================================================================== --- trunk/CustomerReceipt.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/CustomerReceipt.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -542,7 +542,7 @@ if ($_POST['Keywords']=="" AND $_POST['CustCode']=="" AND $_POST['CustInvNo']=="") { $msg=_('At least one Customer Name keyword OR an extract of a Customer Code must be entered for the search'); } else { - if (strlen($_POST['Keywords'])>0) { + if (mb_strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; @@ -552,13 +552,13 @@ WHERE debtorsmaster.name " . LIKE . " '". $SearchString . "' AND debtorsmaster.currcode= '" . $_SESSION['ReceiptBatch']->Currency . "'"; - } elseif (strlen($_POST['CustCode'])>0){ + } elseif (mb_strlen($_POST['CustCode'])>0){ $SQL = "SELECT debtorsmaster.debtorno, debtorsmaster.name FROM debtorsmaster WHERE debtorsmaster.debtorno " . LIKE . " '%" . $_POST['CustCode'] . "%' AND debtorsmaster.currcode= '" . $_SESSION['ReceiptBatch']->Currency . "'"; - } elseif (strlen($_POST['CustInvNo'])>0){ + } elseif (mb_strlen($_POST['CustInvNo'])>0){ $SQL = "SELECT debtortrans.debtorno, debtorsmaster.name FROM debtorsmaster LEFT JOIN debtortrans Modified: trunk/CustomerTypes.php =================================================================== --- trunk/CustomerTypes.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/CustomerTypes.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -32,14 +32,14 @@ //first off validate inputs sensible $i=1; - if (strlen($_POST['typename']) >100) { + if (mb_strlen($_POST['typename']) >100) { $InputError = 1; prnMsg(_('The customer type name description must be 100 characters or less long'),'error'); $Errors[$i] = 'CustomerType'; $i++; } - if (strlen($_POST['typename'])==0) { + if (mb_strlen($_POST['typename'])==0) { $InputError = 1; echo '<br />'; prnMsg(_('The customer type name description must contain at least one character'),'error'); Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/Customers.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -39,12 +39,12 @@ prnMsg( _('The customer number already exists in the database'),'error'); $Errors[$i] = 'DebtorNo'; $i++; - }elseif (strlen($_POST['CustName']) > 40 OR strlen($_POST['CustName'])==0) { + }elseif (mb_strlen($_POST['CustName']) > 40 OR mb_strlen($_POST['CustName'])==0) { $InputError = 1; prnMsg( _('The customer name must be entered and be forty characters or less long'),'error'); $Errors[$i] = 'CustName'; $i++; - } elseif ($_SESSION['AutoDebtorNo']==0 AND strlen($_POST['DebtorNo']) ==0) { + } elseif ($_SESSION['AutoDebtorNo']==0 AND mb_strlen($_POST['DebtorNo']) ==0) { $InputError = 1; prnMsg( _('The debtor code cannot be empty'),'error'); $Errors[$i] = 'DebtorNo'; @@ -54,56 +54,56 @@ prnMsg( _('The customer code cannot contain any of the following characters') . " . - ' & + \" " . _('or a space'),'error'); $Errors[$i] = 'DebtorNo'; $i++; - } elseif (strlen($_POST['Address1']) >40) { + } elseif (mb_strlen($_POST['Address1']) >40) { $InputError = 1; prnMsg( _('The Line 1 of the address must be forty characters or less long'),'error'); $Errors[$i] = 'Address1'; $i++; - } elseif (strlen($_POST['Address2']) >40) { + } elseif (mb_strlen($_POST['Address2']) >40) { $InputError = 1; prnMsg( _('The Line 2 of the address must be forty characters or less long'),'error'); $Errors[$i] = 'Address2'; $i++; - } elseif (strlen($_POST['Address3']) >40) { + } elseif (mb_strlen($_POST['Address3']) >40) { $InputError = 1; prnMsg( _('The Line 3 of the address must be forty characters or less long'),'error'); $Errors[$i] = 'Address3'; $i++; - } elseif (strlen($_POST['Address4']) >50) { + } elseif (mb_strlen($_POST['Address4']) >50) { $InputError = 1; prnMsg( _('The Line 4 of the address must be fifty characters or less long'),'error'); $Errors[$i] = 'Address4'; $i++; - } elseif (strlen($_POST['Address5']) >20) { + } elseif (mb_strlen($_POST['Address5']) >20) { $InputError = 1; prnMsg( _('The Line 5 of the address must be twenty characters or less long'),'error'); $Errors[$i] = 'Address5'; $i++; - } elseif (strlen($_POST['Address6']) >15) { + } elseif (mb_strlen($_POST['Address6']) >15) { $InputError = 1; prnMsg( _('The Line 6 of the address must be fifteen characters or less long'),'error'); $Errors[$i] = 'Address6'; $i++; } - elseif (strlen($_POST['Phone']) >25) { + elseif (mb_strlen($_POST['Phone']) >25) { $InputError = 1; prnMsg(_('The telephone number must be 25 characters or less long'),'error'); $Errors[$i] = 'Telephone'; $i++; } - elseif (strlen($_POST['Fax']) >25) { + elseif (mb_strlen($_POST['Fax']) >25) { $InputError = 1; prnMsg(_('The fax number must be 25 characters or less long'),'error'); $Errors[$i] = 'Fax'; $i++; } - elseif (strlen($_POST['Email']) >55) { + elseif (mb_strlen($_POST['Email']) >55) { $InputError = 1; prnMsg(_('The email address must be 55 characters or less long'),'error'); $Errors[$i] = 'Email'; $i++; } - elseif (strlen($_POST['Email'])>0 and !IsEmailAddress($_POST['Email'])) { + elseif (mb_strlen($_POST['Email'])>0 and !IsEmailAddress($_POST['Email'])) { $InputError = 1; prnMsg(_('The email address is not correctly formed'),'error'); $Errors[$i] = 'Email'; Modified: trunk/DailySalesInquiry.php =================================================================== --- trunk/DailySalesInquiry.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/DailySalesInquiry.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -64,7 +64,7 @@ $Date_Array = explode('.',$EndDateSQL); } -if (strlen($Date_Array[2])>4) { +if (mb_strlen($Date_Array[2])>4) { $Date_Array[2]= substr($Date_Array[2],0,2); } Modified: trunk/DebtorsAtPeriodEnd.php =================================================================== --- trunk/DebtorsAtPeriodEnd.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/DebtorsAtPeriodEnd.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -6,9 +6,9 @@ if (isset($_POST['PrintPDF']) AND isset($_POST['FromCriteria']) - AND strlen($_POST['FromCriteria'])>=1 + AND mb_strlen($_POST['FromCriteria'])>=1 AND isset($_POST['ToCriteria']) - AND strlen($_POST['ToCriteria'])>=1){ + AND mb_strlen($_POST['ToCriteria'])>=1){ include('includes/PDFStarter.php'); $pdf->addInfo('Title',_('Customer Balance Listing')); Modified: trunk/DeliveryDetails.php =================================================================== --- trunk/DeliveryDetails.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/DeliveryDetails.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -53,11 +53,11 @@ or isset($_POST['MakeRecurringOrder'])) { $InputErrors =0; - if (strlen($_POST['DeliverTo'])<=1){ + if (mb_strlen($_POST['DeliverTo'])<=1){ $InputErrors =1; prnMsg(_('You must enter the person or company to whom delivery should be made'),'error'); } - if (strlen($_POST['BrAdd1'])<=1){ + if (mb_strlen($_POST['BrAdd1'])<=1){ $InputErrors =1; prnMsg(_('You should enter the street address in the box provided') . '. ' . _('Orders cannot be accepted without a valid street address'),'error'); } @@ -77,13 +77,13 @@ prnMsg(_('You must select the type of packlist to print'),'error'); } -/* If (strlen($_POST['BrAdd3'])==0 OR !isset($_POST['BrAdd3'])){ +/* If (mb_strlen($_POST['BrAdd3'])==0 OR !isset($_POST['BrAdd3'])){ $InputErrors =1; echo "<br />A region or city must be entered.<br />"; } Maybe appropriate in some installations but not here - If (strlen($_POST['BrAdd2'])<=1){ + If (mb_strlen($_POST['BrAdd2'])<=1){ $InputErrors =1; echo "<br />You should enter the suburb in the box provided. Orders cannot be accepted without a valid suburb being entered.<br />"; } @@ -793,7 +793,7 @@ } -if (isset($_SESSION['Items'.$identifier]->SpecialInstructions) and strlen($_SESSION['Items'.$identifier]->SpecialInstructions)>0) { +if (isset($_SESSION['Items'.$identifier]->SpecialInstructions) and mb_strlen($_SESSION['Items'.$identifier]->SpecialInstructions)>0) { prnMsg($_SESSION['Items'.$identifier]->SpecialInstructions,'info'); } echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/inventory.png" title="' . _('Delivery') . '" alt="" />' . ' ' . _('Delivery Details'); Modified: trunk/EDIProcessOrders.php =================================================================== --- trunk/EDIProcessOrders.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/EDIProcessOrders.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -322,10 +322,10 @@ break; case 'ALI': $ALI = explode('+',substr($LineText,4)); - if (strlen($ALI[0])>1){ + if (mb_strlen($ALI[0])>1){ $EmailText .= "\n" . _('Goods of origin') . ' ' . $ALI[0]; } - if (strlen($ALI[1])>1){ + if (mb_strlen($ALI[1])>1){ $EmailText .= "\n" . _('Duty regime code') . ' ' . $ALI[1]; } switch ($ALI[2]){ @@ -353,7 +353,7 @@ $FTX = explode('+',substr($LineText,4)); /*agreed coded text is not catered for ... yet only free form text */ - if (strlen($FTX[3])>5){ + if (mb_strlen($FTX[3])>5){ $FTX_C108=explode(':',$FTX[3]); $Order->Comments .= $FTX_C108[0] . " " . $FTX_C108[1] . ' ' . $FTX_C108[2] . ' ' . $FTX_C108[3] . ' ' . $FTX_C108[4]; $EmailText .= "\n" . $FTX_C108[0] . ' ' . $FTX_C108[1] . ' ' . $FTX_C108[2] . ' ' . $FTX_C108[3] . ' ' . $FTX_C108[4] . ' '; @@ -428,7 +428,7 @@ } break; } - if (strlen($NAD_C080[0])>0){ + if (mb_strlen($NAD_C080[0])>0){ $Order->CustomerName = $NAD_C080[0]; } break; @@ -445,10 +445,10 @@ /*Delivery Party - get the address and name etc */ /*Snag here - how do I figure out what branch to charge */ - if (strlen($NAD_C080[0])>0){ + if (mb_strlen($NAD_C080[0])>0){ $Order->DeliverTo = $NAD_C080[0]; } - if (strlen($NAD_C059[0])>0){ + if (mb_strlen($NAD_C059[0])>0){ $Order->DelAdd1 = $NAD_C059[0]; $Order->DelAdd2 = $NAD_C059[1]; $Order->DelAdd3 = $NAD_C059[2]; @@ -514,7 +514,7 @@ } /*end case Seg Tag*/ } /*end while get next line of message */ /*Thats the end of the message or had to abort */ - if (strlen($EmailText)>10){ + if (mb_strlen($EmailText)>10){ /*Now send the email off to the appropriate person */ $mail = new htmlMimeMail(); $mail->setText($EmailText); Modified: trunk/EmailConfirmation.php =================================================================== --- trunk/EmailConfirmation.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/EmailConfirmation.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -135,7 +135,7 @@ $myrow['deliverto'] . "</td></tr>"; $MailMessage = $MailMessage . "<tr><td colspan='4'> <b>" . $myrow['deladd1'] . "</td></tr>"; -If(strlen(trim($myrow['deladd2']))) +If(mb_strlen(trim($myrow['deladd2']))) { $MailMessage = $MailMessage . "<tr><td> <b>" . $myrow['deladd2'] . "</td></tr>"; $MailMessage = $MailMessage . "<tr><td> <b>" . $myrow['deladd3'] . Modified: trunk/Factors.php =================================================================== --- trunk/Factors.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/Factors.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -33,11 +33,11 @@ if (isset($_POST['Submit']) OR isset($_POST['Update'])) { - if (strlen($_POST['FactorName']) > 40 or strlen($_POST['FactorName']) == 0 or $_POST['FactorName'] == '') { + if (mb_strlen($_POST['FactorName']) > 40 or mb_strlen($_POST['FactorName']) == 0 or $_POST['FactorName'] == '') { $InputError = 1; prnMsg(_('The factoring company name must be entered and be forty characters or less long'),'error'); } - if (strlen($_POST['Email'])>0 AND !IsEmailAddress($_POST['Email'])){ + if (mb_strlen($_POST['Email'])>0 AND !IsEmailAddress($_POST['Email'])){ prnMsg(_('The email address entered does not appear to be a valid email address format'),'error'); $InputError = 1; } Modified: trunk/FixedAssetCategories.php =================================================================== --- trunk/FixedAssetCategories.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/FixedAssetCategories.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -29,13 +29,13 @@ $_POST['CategoryID'] = strtoupper($_POST['CategoryID']); - if (strlen($_POST['CategoryID']) > 6) { + if (mb_strlen($_POST['CategoryID']) > 6) { $InputError = 1; prnMsg(_('The Fixed Asset Category code must be six characters or less long'),'error'); - } elseif (strlen($_POST['CategoryID'])==0) { + } elseif (mb_strlen($_POST['CategoryID'])==0) { $InputError = 1; prnMsg(_('The Fixed Asset Category code must be at least 1 character but less than six characters long'),'error'); - } elseif (strlen($_POST['CategoryDescription']) >20) { + } elseif (mb_strlen($_POST['CategoryDescription']) >20) { $InputError = 1; prnMsg(_('The Fixed Asset Category description must be twenty characters or less long'),'error'); } Modified: trunk/FixedAssetItems.php =================================================================== --- trunk/FixedAssetItems.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/FixedAssetItems.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -30,7 +30,7 @@ $filename = $_SESSION['part_pics_dir'] . '/ASSET_' . $AssetID . '.jpg'; //But check for the worst - if (strtoupper(substr(trim($_FILES['ItemPicture']['name']),strlen($_FILES['ItemPicture']['name'])-3))!='JPG'){ + if (strtoupper(substr(trim($_FILES['ItemPicture']['name']),mb_strlen($_FILES['ItemPicture']['name'])-3))!='JPG'){ prnMsg(_('Only jpg files are supported - a file extension of .jpg is expected'),'warn'); $UploadTheFile ='No'; } elseif ( $_FILES['ItemPicture']['size'] > ($_SESSION['MaxImageSize']*1024)) { //File Size Check @@ -72,20 +72,20 @@ $i=1; - if (!isset($_POST['Description']) or strlen($_POST['Description']) > 50 OR strlen($_POST['Description'])==0) { + if (!isset($_POST['Description']) or mb_strlen($_POST['Description']) > 50 OR mb_strlen($_POST['Description'])==0) { $InputError = 1; prnMsg (_('The asset description must be entered and be fifty characters or less long. It cannot be a zero length string either, a description is required'),'error'); $Errors[$i] = 'Description'; $i++; } - if (strlen($_POST['LongDescription'])==0) { + if (mb_strlen($_POST['LongDescription'])==0) { $InputError = 1; prnMsg (_('The asset long description cannot be a zero length string, a long description is required'),'error'); $Errors[$i] = 'LongDescription'; $i++; } - if (strlen($_POST['BarCode']) >20) { + if (mb_strlen($_POST['BarCode']) >20) { $InputError = 1; prnMsg(_('The barcode must be 20 characters or less long'),'error'); $Errors[$i] = 'BarCode'; @@ -272,7 +272,7 @@ prnMsg( _('Validation failed, no updates or deletes took place'), 'error'); } -} elseif (isset($_POST['delete']) AND strlen($_POST['delete']) >1 ) { +} elseif (isset($_POST['delete']) AND mb_strlen($_POST['delete']) >1 ) { //the button to delete a selected record was clicked instead of the submit button $CancelDelete = 0; Modified: trunk/FixedAssetLocations.php =================================================================== --- trunk/FixedAssetLocations.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/FixedAssetLocations.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -10,11 +10,11 @@ if (isset($_POST['submit']) and !isset($_POST['delete'])) { $InputError=0; - if (!isset($_POST['LocationID']) or strlen($_POST['LocationID'])<1) { + if (!isset($_POST['LocationID']) or mb_strlen($_POST['LocationID'])<1) { prnMsg(_('You must enter at least one character in the location ID'),'error'); $InputError=1; } - if (!isset($_POST['LocationDescription']) or strlen($_POST['LocationDescription'])<1) { + if (!isset($_POST['LocationDescription']) or mb_strlen($_POST['LocationDescription'])<1) { prnMsg(_('You must enter at least one character in the location description'),'error'); $InputError=1; } @@ -44,7 +44,7 @@ if (isset($_POST['update']) and !isset($_POST['delete'])) { $InputError=0; - if (!isset($_POST['LocationDescription']) or strlen($_POST['LocationDescription'])<1) { + if (!isset($_POST['LocationDescription']) or mb_strlen($_POST['LocationDescription'])<1) { prnMsg(_('You must enter at least one character in the location description'),'error'); $InputError=1; } Modified: trunk/FormDesigner.php =================================================================== --- trunk/FormDesigner.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/FormDesigner.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -79,7 +79,7 @@ $FormDesign = simplexml_load_file($PathPrefix.'companies/'.$_SESSION['DatabaseName'].'/FormDesigns/'.$_POST['FormName']); $FormDesign['name']=$_POST['formname']; if (substr($_POST['PaperSize'],-8)=='Portrait') { - $_POST['PaperSize']=substr($_POST['PaperSize'],0,strlen($_POST['PaperSize'])-9); + $_POST['PaperSize']=substr($_POST['PaperSize'],0,mb_strlen($_POST['PaperSize'])-9); } $FormDesign->PaperSize=$_POST['PaperSize']; $FormDesign->LineHeight=$_POST['LineHeight']; @@ -165,7 +165,7 @@ echo '<th width=33%>'._('Paper Size').'<select name="PaperSize">'; foreach ($Papers as $Paper) { if (substr($Paper,-8)=='Portrait') { - $PaperValue=substr($Paper,0,strlen($Paper)-9); + $PaperValue=substr($Paper,0,mb_strlen($Paper)-9); } else { $PaperValue=$Paper; } Modified: trunk/FreightCosts.php =================================================================== --- trunk/FreightCosts.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/FreightCosts.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -79,7 +79,7 @@ $InputError = 0; //first off validate inputs sensible - if (strlen($_POST['Destination'])<2){ + if (mb_strlen($_POST['Destination'])<2){ $InputError=1; prnMsg(_('The entry for the destination must be at least two characters long') . '. ' . _('These entries are matched against the town names entered for customer delivery addresses'),'warn'); } Modified: trunk/GLAccountReport.php =================================================================== --- trunk/GLAccountReport.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/GLAccountReport.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -220,7 +220,7 @@ /* $pdfcode = $pdf->output(); - $len = strlen($pdfcode); + $len = mb_strlen($pdfcode); if ($len<=20){ $title = _('Print GL Accounts Report Error'); Modified: trunk/GLAccounts.php =================================================================== --- trunk/GLAccounts.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/GLAccounts.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -28,7 +28,7 @@ if (!is_long((integer)$_POST['AccountCode'])) { $InputError = 1; prnMsg(_('The account code must be an integer'),'warn'); - } elseif (strlen($_POST['AccountName']) >50) { + } elseif (mb_strlen($_POST['AccountName']) >50) { $InputError = 1; prnMsg( _('The account name must be fifty characters or less long'),'warn'); } Modified: trunk/GLTransInquiry.php =================================================================== --- trunk/GLTransInquiry.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/GLTransInquiry.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -116,7 +116,7 @@ } else { $URL = $rootpath . '/GLAccountInquiry.php?Account=' . $TransRow['account']; - if( strlen($TransRow['narrative'])==0 ) { + if( mb_strlen($TransRow['narrative'])==0 ) { $TransRow['narrative'] = ' '; } if ( $TransRow['posted']==0 ) { Modified: trunk/GetStockImage.php =================================================================== --- trunk/GetStockImage.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/GetStockImage.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -22,26 +22,26 @@ // Color decode function function DecodeBgColor( $colorstr ) { if ( $colorstr[0] == '#' ) { - $colorstr = substr($colorstr,1,strlen($colorstr)); + $colorstr = substr($colorstr,1,mb_strlen($colorstr)); } $red = 0; - if(strlen($colorstr) > 1) { + if(mb_strlen($colorstr) > 1) { $red = hexdec(substr($colorstr,0,2)); - $colorstr = substr($colorstr,2,strlen($colorstr)); + $colorstr = substr($colorstr,2,mb_strlen($colorstr)); } $green = 0; - if(strlen($colorstr) > 1) { + if(mb_strlen($colorstr) > 1) { $green = hexdec(substr($colorstr,0,2)); - $colorstr = substr($colorstr,2,strlen($colorstr)); + $colorstr = substr($colorstr,2,mb_strlen($colorstr)); } $blue = 0; - if(strlen($colorstr) > 1) { + if(mb_strlen($colorstr) > 1) { $blue = hexdec(substr($colorstr,0,2)); - $colorstr = substr($colorstr,2,strlen($colorstr)); + $colorstr = substr($colorstr,2,mb_strlen($colorstr)); } - if(strlen($colorstr) > 1) { + if(mb_strlen($colorstr) > 1) { $alpha = hexdec(substr($colorstr,0,2)); - $colorstr = substr($colorstr,2,strlen($colorstr)); + $colorstr = substr($colorstr,2,mb_strlen($colorstr)); } if ( isset($alpha) ) return array('red' => $red, 'green' => $green, 'blue' => $blue, 'alpha' => $alpha ); @@ -120,7 +120,7 @@ if( $i === false ) $type = 'png'; else { - $type = strtolower(substr($stockid,$i+1,strlen($stockid))); + $type = strtolower(substr($stockid,$i+1,mb_strlen($stockid))); $stockid = substr($stockid,0,$i); if($blanktext && !isset($text)) $text = ''; @@ -224,12 +224,12 @@ if(!isset($text)) $text = $stockid; - if(strlen($text) > 0 ) { + if(mb_strlen($text) > 0 ) { $fw = imagefontwidth($fontsize); $fh = imagefontheight($fontsize); $fy = (imagesy($im) - ($fh)) / 2; $fyh = $fy + $fh - 1; - $textwidth = $fw * strlen($text); + $textwidth = $fw * mb_strlen($text); $px = (imagesx($im) - $textwidth) / 2; if (!$notextbg) imagefilledrectangle($im,$px,$fy,imagesx($im)-($px+1),$fyh, $ixtextbgcolor ); @@ -323,12 +323,12 @@ // 0,0,0,0); if(!isset($text)) $text = $stockid; - if(strlen($text) > 0 ) { + if(mb_strlen($text) > 0 ) { $fw = imagefontwidth($fontsize); $fh = imagefontheight($fontsize); $fy = imagesy($im) - ($fh); $fyh = imagesy($im) - 1; - $textwidth = $fw * strlen($text); + $textwidth = $fw * mb_strlen($text); $px = (imagesx($im) - $textwidth) / 2; if (!$notextbg) imagefilledrectangle($im,$px,$fy,imagesx($im)-($px+1),$fyh, $ixtextbgcolor ); Modified: trunk/InventoryPlanning.php =================================================================== --- trunk/InventoryPlanning.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/InventoryPlanning.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -7,9 +7,9 @@ if (isset($_POST['PrintPDF']) and isset($_POST['FromCriteria']) - and strlen($_POST['FromCriteria'])>=1 + and mb_strlen($_POST['FromCriteria'])>=1 and isset($_POST['ToCriteria']) - and strlen($_POST['ToCriteria'])>=1) { + and mb_strlen($_POST['ToCriteria'])>=1) { include ('includes/class.pdf.php'); Modified: trunk/InventoryValuation.php =================================================================== --- trunk/InventoryValuation.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/InventoryValuation.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -6,9 +6,9 @@ if (isset($_POST['PrintPDF']) AND isset($_POST['FromCriteria']) - AND strlen($_POST['FromCriteria'])>=1 + AND mb_strlen($_POST['FromCriteria'])>=1 AND isset($_POST['ToCriteria']) - AND strlen($_POST['ToCriteria'])>=1){ + AND mb_strlen($_POST['ToCriteria'])>=1){ include('includes/PDFStarter.php'); Modified: trunk/MRPDemandTypes.php =================================================================== --- trunk/MRPDemandTypes.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/MRPDemandTypes.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -32,11 +32,11 @@ prnMsg(_('The Demand Type is reserved for the system'),'error'); } - if (strlen($_POST['MRPDemandType']) < 1) { + if (mb_strlen($_POST['MRPDemandType']) < 1) { $InputError = 1; prnMsg(_('The Demand Type code must be at least 1 character long'),'error'); } - if (strlen($_POST['Description'])<3) { + if (mb_strlen($_POST['Description'])<3) { $InputError = 1; prnMsg(_('The Demand Type description must be at least 3 characters long'),'error'); } Modified: trunk/MRPDemands.php =================================================================== --- trunk/MRPDemands.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/MRPDemands.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -58,7 +58,7 @@ if ($_POST['Keywords']=='' AND $_POST['StockCode']=='') { $msg=_('At least one stock description keyword or an extract of a stock code must be entered for the search'); } else { - if (strlen($_POST['Keywords'])>0) { + if (mb_strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; @@ -68,7 +68,7 @@ WHERE stockmaster.description " . LIKE . " '" . $SearchString ."' ORDER BY stockmaster.stockid"; - } elseif (strlen($_POST['StockCode'])>0){ + } elseif (mb_strlen($_POST['StockCode'])>0){ $sql = "SELECT stockmaster.stockid, stockmaster.description FROM stockmaster Modified: trunk/MRPReport.php =================================================================== --- trunk/MRPReport.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/MRPReport.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -422,7 +422,7 @@ // Details for Demand/Supply Sections $i = 0; - while ((isset($Supplies[$i]) and strlen($Supplies[$i]['part'])) > 1 or (isset($Requirements[$i]) and strlen($Requirements[$i]['part']) > 1)){ + while ((isset($Supplies[$i]) and mb_strlen($Supplies[$i]['part'])) > 1 or (isset($Requirements[$i]) and mb_strlen($Requirements[$i]['part']) > 1)){ $YPos -=$line_height; $FontSize=7; @@ -436,7 +436,7 @@ // 1) X position 2) Y position 3) Width // 4) Height 5) Text To Display 6) Alignment 7) Border 8) Fill - True to use SetFillColor // and False to set for transparent - if (isset($Requirements[$i]['part']) and strlen($Requirements[$i]['part']) > 1) { + if (isset($Requirements[$i]['part']) and mb_strlen($Requirements[$i]['part']) > 1) { $FormatedReqDueDate = ConvertSQLDate($Requirements[$i]['daterequired']); $pdf->addTextWrap($Left_Margin,$YPos,55,$FontSize,$Requirements[$i]['mrpdemandtype'],''); $pdf->addTextWrap(80,$YPos,90,$FontSize,$Requirements[$i]['whererequired'],''); @@ -445,7 +445,7 @@ $myrow['decimalplaces']),'right'); $pdf->addTextWrap(240,$YPos,50,$FontSize,$FormatedReqDueDate,'right'); } - if (strlen($Supplies[$i]['part']) > 1) { + if (mb_strlen($Supplies[$i]['part']) > 1) { $suptype = $Supplies[$i]['ordertype']; // If ordertype is not QOH,PO,or WO, it is an MRP generated planned order and the // ordertype is actually the demandtype that caused the planned order Modified: trunk/Numbers/Words/lang.bg.php =================================================================== --- trunk/Numbers/Words/lang.bg.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/Numbers/Words/lang.bg.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -310,9 +310,9 @@ { if (is_string($num)) { $ret = array(); - $strlen = strlen($num); - $first = substr($num, 0, $strlen%3); - preg_match_all('/\d{3}/', substr($num, $strlen%3, $strlen), $m); + $mb_strlen = mb_strlen($num); + $first = substr($num, 0, $mb_strlen%3); + preg_match_all('/\d{3}/', substr($num, $mb_strlen%3, $mb_strlen), $m); $ret =& $m[0]; if ($first) array_unshift($ret, $first); return $ret; @@ -452,7 +452,7 @@ } // if the absolute value is greater than 9.99*10^302, return infinity - if (strlen($num)>306) { + if (mb_strlen($num)>306) { return $ret_minus . $this->_infinity; } Modified: trunk/Numbers/Words/lang.cs.php =================================================================== --- trunk/Numbers/Words/lang.cs.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/Numbers/Words/lang.cs.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -178,8 +178,8 @@ $num = trim($num); $num = preg_replace('/^0+/','',$num); - if (strlen($num) > 3) { - $maxp = strlen($num)-1; + if (mb_strlen($num) > 3) { + $maxp = mb_strlen($num)-1; $cur... [truncated message content] |
From: <dai...@us...> - 2011-07-02 22:51:52
|
Revision: 4617 http://web-erp.svn.sourceforge.net/web-erp/?rev=4617&view=rev Author: daintree Date: 2011-07-02 22:51:40 +0000 (Sat, 02 Jul 2011) Log Message: ----------- mb_strlen Modified Paths: -------------- trunk/AccountSections.php trunk/AddCustomerContacts.php trunk/AddCustomerNotes.php trunk/AddCustomerTypeNotes.php trunk/AgedDebtors.php trunk/AgedSuppliers.php trunk/Areas.php trunk/BOMInquiry.php trunk/BOMListing.php trunk/BOMs.php trunk/BankAccounts.php trunk/CompanyPreferences.php trunk/ConfirmDispatch_Invoice.php trunk/ContractBOM.php trunk/Contracts.php trunk/CounterSales.php trunk/CreditStatus.php trunk/Currencies.php trunk/CustEDISetup.php trunk/CustLoginSetup.php trunk/CustomerBranches.php trunk/CustomerReceipt.php trunk/CustomerTypes.php trunk/Customers.php trunk/DailySalesInquiry.php trunk/DebtorsAtPeriodEnd.php trunk/DeliveryDetails.php trunk/EDIProcessOrders.php trunk/EmailConfirmation.php trunk/Factors.php trunk/FixedAssetCategories.php trunk/FixedAssetItems.php trunk/FixedAssetLocations.php trunk/FormDesigner.php trunk/FreightCosts.php trunk/GLAccountReport.php trunk/GLAccounts.php trunk/GLTransInquiry.php trunk/GetStockImage.php trunk/InventoryPlanning.php trunk/InventoryValuation.php trunk/MRPDemandTypes.php trunk/MRPDemands.php trunk/MRPReport.php trunk/Numbers/Words/lang.bg.php trunk/Numbers/Words/lang.cs.php trunk/Numbers/Words/lang.de.php trunk/Numbers/Words/lang.dk.php trunk/Numbers/Words/lang.en_100.php trunk/Numbers/Words/lang.en_GB.php trunk/Numbers/Words/lang.en_US.php trunk/Numbers/Words/lang.es.php trunk/Numbers/Words/lang.es_AR.php trunk/Numbers/Words/lang.et.php trunk/Numbers/Words/lang.fr.php trunk/Numbers/Words/lang.fr_BE.php trunk/Numbers/Words/lang.he.php trunk/Numbers/Words/lang.hu_HU.php trunk/Numbers/Words/lang.id.php trunk/Numbers/Words/lang.it_IT.php trunk/Numbers/Words/lang.lt.php trunk/Numbers/Words/lang.nl.php trunk/Numbers/Words/lang.pl.php trunk/Numbers/Words/lang.pt_BR.php trunk/Numbers/Words/lang.ru.php trunk/Numbers/Words/lang.sv.php trunk/Numbers/Words.php trunk/OutstandingGRNs.php trunk/PDFDeliveryDifferences.php trunk/PDFPriceList.php trunk/PDFPrintLabel.php trunk/PDFQuotation.php trunk/PDFQuotationPortrait.php trunk/PDFRemittanceAdvice.php trunk/PDFStockCheckComparison.php trunk/PDFStockLocTransfer.php trunk/PDFTopItems.php trunk/POReport.php trunk/PO_Header.php trunk/PO_Items.php trunk/PO_PDFPurchOrder.php trunk/PageSecurity.php trunk/PaymentTerms.php trunk/PcExpenses.php trunk/PcTabs.php trunk/PcTypeTabs.php trunk/Prices.php trunk/Prices_Customer.php trunk/PrintCheque.php trunk/PrintCustStatements.php trunk/PrintCustTrans.php trunk/PrintCustTransPortrait.php trunk/PurchData.php trunk/ReorderLevel.php trunk/SalesAnalReptCols.php trunk/SalesAnalRepts.php trunk/SalesCategories.php trunk/SalesInquiry.php trunk/SalesPeople.php trunk/SalesTypes.php trunk/SecurityTokens.php trunk/SelectCompletedOrder.php trunk/SelectCreditItems.php trunk/SelectCustomer.php trunk/SelectGLAccount.php trunk/SelectOrderItems.php trunk/SelectSalesOrder.php trunk/SelectSupplier.php trunk/Shipments.php trunk/Shippers.php trunk/SpecialOrder.php trunk/StockAdjustments.php trunk/StockCategories.php trunk/StockCheck.php trunk/StockCounts.php trunk/StockSerialItemResearch.php trunk/StockTransfers.php trunk/Stocks.php trunk/SuppLoginSetup.php trunk/SuppPaymentRun.php trunk/SupplierBalsAtPeriodEnd.php trunk/SupplierContacts.php trunk/SupplierCredit.php trunk/SupplierInvoice.php trunk/SupplierTenders.php trunk/SupplierTypes.php trunk/Suppliers.php trunk/SystemParameters.php trunk/TaxGroups.php trunk/UpgradeDatabase.php trunk/WOSerialNos.php trunk/WWW_Access.php trunk/WWW_Users.php trunk/WorkCentres.php trunk/WorkOrderEntry.php trunk/WorkOrderIssue.php trunk/WorkOrderReceive.php trunk/Z_CreateCompanyTemplateFile.php trunk/Z_DataExport.php trunk/Z_ImportChartOfAccounts.php trunk/Z_ImportFixedAssets.php trunk/Z_ImportStocks.php trunk/Z_MakeNewCompany.php trunk/Z_Upgrade_3.04-3.05.php trunk/Z_Upgrade_3.05-3.06.php trunk/Z_Upgrade_3.07-3.08.php trunk/Z_Upgrade_3.08-3.09.php trunk/Z_Upgrade_3.09-3.10.php trunk/Z_Upgrade_3.10-3.11.php trunk/Z_Upgrade_3.11-4.00.php trunk/Z_poAddLanguage.php trunk/Z_poEditLangModule.php trunk/Z_poEditLangRemaining.php trunk/api/api_customers.php trunk/api/api_debtortransactions.php trunk/api/api_glaccounts.php trunk/api/api_glsections.php trunk/api/api_locations.php trunk/api/api_login.php trunk/api/api_purchdata.php trunk/api/api_salesorders.php trunk/api/api_stock.php trunk/api/api_stockcategories.php trunk/api/api_suppliers.php trunk/api/api_workorders.php trunk/includes/Add_SerialItems.php trunk/includes/Add_SerialItemsOut.php trunk/includes/DateFunctions.inc trunk/includes/MiscFunctions.php trunk/includes/PDFOrderPageHeader.inc trunk/includes/PDFOrderPageHeader_generic.inc trunk/includes/PDFPickingListHeader.inc trunk/includes/PDFSalesOrder_generic.inc trunk/includes/PO_PDFOrderPageHeader.inc trunk/includes/RFC822.php trunk/includes/class.pdf.php trunk/includes/mimePart.php trunk/includes/php-gettext/gettext.inc trunk/includes/php-gettext/streams.php trunk/includes/phplot/phplot.php trunk/includes/smtp.php trunk/includes/tcpdf/barcodes.php trunk/includes/tcpdf/config/tcpdf_config.php trunk/includes/tcpdf/config/tcpdf_config_alt.php trunk/includes/tcpdf/tcpdf.php trunk/install/save.php trunk/install/timezone.php trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.mo trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po trunk/locale/de_DE.utf8/LC_MESSAGES/messages.mo trunk/locale/de_DE.utf8/LC_MESSAGES/messages.po trunk/locale/el_GR.utf8/LC_MESSAGES/messages.mo trunk/locale/el_GR.utf8/LC_MESSAGES/messages.po trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot trunk/locale/en_US.utf8/LC_MESSAGES/messages.mo trunk/locale/en_US.utf8/LC_MESSAGES/messages.po trunk/locale/es_ES.utf8/LC_MESSAGES/messages.mo trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po trunk/locale/et_EE.utf8/LC_MESSAGES/messages.mo trunk/locale/et_EE.utf8/LC_MESSAGES/messages.po trunk/locale/fa_IR.utf8/LC_MESSAGES/messages.mo trunk/locale/fa_IR.utf8/LC_MESSAGES/messages.po trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.mo trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.mo trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.po trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.mo trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.po trunk/locale/hu_HU.utf8/LC_MESSAGES/messages.mo trunk/locale/hu_HU.utf8/LC_MESSAGES/messages.po trunk/locale/id_ID.utf8/LC_MESSAGES/messages.mo trunk/locale/id_ID.utf8/LC_MESSAGES/messages.po trunk/locale/it_IT.utf8/LC_MESSAGES/messages.mo trunk/locale/it_IT.utf8/LC_MESSAGES/messages.po trunk/locale/ja_JP.utf8/LC_MESSAGES/messages.mo trunk/locale/ja_JP.utf8/LC_MESSAGES/messages.po trunk/locale/lv_LV.utf8/LC_MESSAGES/messages.mo trunk/locale/lv_LV.utf8/LC_MESSAGES/messages.po trunk/locale/nl_NL.utf8/LC_MESSAGES/messages.mo trunk/locale/nl_NL.utf8/LC_MESSAGES/messages.po trunk/locale/pl_PL.utf8/LC_MESSAGES/messages.mo trunk/locale/pl_PL.utf8/LC_MESSAGES/messages.po trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.mo trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.po trunk/locale/pt_PT.utf8/LC_MESSAGES/messages.mo trunk/locale/pt_PT.utf8/LC_MESSAGES/messages.po trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.mo trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.po trunk/locale/ru_RU.utf8/LC_MESSAGES/messages.mo trunk/locale/ru_RU.utf8/LC_MESSAGES/messages.po trunk/locale/sq_AL.utf8/LC_MESSAGES/messages.mo trunk/locale/sq_AL.utf8/LC_MESSAGES/messages.po trunk/locale/sv_SE.utf8/LC_MESSAGES/messages.mo trunk/locale/sv_SE.utf8/LC_MESSAGES/messages.po trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.mo trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.po trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.mo trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.po trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.mo trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.po trunk/reportwriter/WriteForm.inc trunk/reportwriter/WriteReport.inc trunk/reportwriter/admin/RCFunctions.inc trunk/sql/mysql/weberp-demo.sql trunk/sql/mysql/weberp-new.sql Modified: trunk/AccountSections.php =================================================================== --- trunk/AccountSections.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/AccountSections.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -74,7 +74,7 @@ $Errors[$i] = 'SectionName'; $i++; } - if (strlen($_POST['SectionName'])==0) { + if (mb_strlen($_POST['SectionName'])==0) { $InputError = 1; prnMsg( _('The account section name must contain at least one character') ,'error'); $Errors[$i] = 'SectionName'; Modified: trunk/AddCustomerContacts.php =================================================================== --- trunk/AddCustomerContacts.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/AddCustomerContacts.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -39,13 +39,13 @@ if (isset($_POST['Con_ID']) and !is_long((integer)$_POST['Con_ID'])) { $InputError = 1; prnMsg( _('The Contact ID must be an integer.'), 'error'); - } elseif (strlen($_POST['ContactName']) >40) { + } elseif (mb_strlen($_POST['ContactName']) >40) { $InputError = 1; prnMsg( _('The contact name must be forty characters or less long'), 'error'); } elseif( trim($_POST['ContactName']) == '' ) { $InputError = 1; prnMsg( _('The contact name may not be empty'), 'error'); - }elseif (!IsEmailAddress($_POST['ContactEmail']) AND strlen($_POST['ContactEmail'])>0){ + }elseif (!IsEmailAddress($_POST['ContactEmail']) AND mb_strlen($_POST['ContactEmail'])>0){ $InputError = 1; prnMsg( _('The contact email address is not a valid email address'), 'error'); } Modified: trunk/AddCustomerNotes.php =================================================================== --- trunk/AddCustomerNotes.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/AddCustomerNotes.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -30,7 +30,7 @@ if (!is_long((integer)$_POST['priority'])) { $InputError = 1; prnMsg( _('The contact priority must be an integer.'), 'error'); - } elseif (strlen($_POST['note']) >200) { + } elseif (mb_strlen($_POST['note']) >200) { $InputError = 1; prnMsg( _("The contact's notes must be two hundred characters or less long"), 'error'); } elseif( trim($_POST['note']) == '' ) { Modified: trunk/AddCustomerTypeNotes.php =================================================================== --- trunk/AddCustomerTypeNotes.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/AddCustomerTypeNotes.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -28,7 +28,7 @@ if (!is_long((integer)$_POST['priority'])) { $InputError = 1; prnMsg(_('The Contact priority must be an integer.'), 'error'); - } elseif (strlen($_POST['note']) >200) { + } elseif (mb_strlen($_POST['note']) >200) { $InputError = 1; prnMsg(_("The contact's notes must be two hundred characters or less long"), 'error'); } elseif( trim($_POST['note']) == '' ) { Modified: trunk/AgedDebtors.php =================================================================== --- trunk/AgedDebtors.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/AgedDebtors.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -6,9 +6,9 @@ if (isset($_POST['PrintPDF']) and isset($_POST['FromCriteria']) - and strlen($_POST['FromCriteria'])>=1 + and mb_strlen($_POST['FromCriteria'])>=1 and isset($_POST['ToCriteria']) - and strlen($_POST['ToCriteria'])>=1) { + and mb_strlen($_POST['ToCriteria'])>=1) { include('includes/PDFStarter.php'); $pdf->addInfo('Title',_('Aged Customer Balance Listing')); Modified: trunk/AgedSuppliers.php =================================================================== --- trunk/AgedSuppliers.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/AgedSuppliers.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -6,9 +6,9 @@ If (isset($_POST['PrintPDF']) AND isset($_POST['FromCriteria']) - AND strlen($_POST['FromCriteria'])>=1 + AND mb_strlen($_POST['FromCriteria'])>=1 AND isset($_POST['ToCriteria']) - AND strlen($_POST['ToCriteria'])>=1){ + AND mb_strlen($_POST['ToCriteria'])>=1){ include('includes/PDFStarter.php'); Modified: trunk/Areas.php =================================================================== --- trunk/Areas.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/Areas.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -35,7 +35,7 @@ $result = DB_query($sql, $db); $myrow = DB_fetch_row($result); // mod to handle 3 char area codes - if (strlen($_POST['AreaCode']) > 3) { + if (mb_strlen($_POST['AreaCode']) > 3) { $InputError = 1; prnMsg(_('The area code must be three characters or less long'),'error'); $Errors[$i] = 'AreaCode'; @@ -45,7 +45,7 @@ prnMsg(_('The area code entered already exists'),'error'); $Errors[$i] = 'AreaCode'; $i++; - } elseif (strlen($_POST['AreaDescription']) >25) { + } elseif (mb_strlen($_POST['AreaDescription']) >25) { $InputError = 1; prnMsg(_('The area description must be twenty five characters or less long'),'error'); $Errors[$i] = 'AreaDescription'; Modified: trunk/BOMInquiry.php =================================================================== --- trunk/BOMInquiry.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/BOMInquiry.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -41,7 +41,7 @@ if ($_POST['Keywords']=='' AND $_POST['StockCode']=='') { prnMsg( _('At least one stock description keyword or an extract of a stock code must be entered for the search'), 'info' ); } else { - if (strlen($_POST['Keywords'])>0) { + if (mb_strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; @@ -61,7 +61,7 @@ stockmaster.mbflag ORDER BY stockmaster.stockid"; - } elseif (strlen($_POST['StockCode'])>0){ + } elseif (mb_strlen($_POST['StockCode'])>0){ $sql = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units, Modified: trunk/BOMListing.php =================================================================== --- trunk/BOMListing.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/BOMListing.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -6,9 +6,9 @@ If (isset($_POST['PrintPDF']) AND isset($_POST['FromCriteria']) - AND strlen($_POST['FromCriteria'])>=1 + AND mb_strlen($_POST['FromCriteria'])>=1 AND isset($_POST['ToCriteria']) - AND strlen($_POST['ToCriteria'])>=1){ + AND mb_strlen($_POST['ToCriteria'])>=1){ include('includes/PDFStarter.php'); $pdf->addInfo('Title',_('Bill Of Material Listing')); Modified: trunk/BOMs.php =================================================================== --- trunk/BOMs.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/BOMs.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -745,7 +745,7 @@ if ($_POST['Keywords']=='' AND $_POST['StockCode']=='') { prnMsg( _('At least one stock description keyword or an extract of a stock code must be entered for the search'), 'info' ); } else { - if (strlen($_POST['Keywords'])>0) { + if (mb_strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; @@ -765,7 +765,7 @@ stockmaster.mbflag ORDER BY stockmaster.stockid"; - } elseif (strlen($_POST['StockCode'])>0){ + } elseif (mb_strlen($_POST['StockCode'])>0){ $sql = "SELECT stockmaster.stockid, stockmaster.description, stockmaster.units, Modified: trunk/BankAccounts.php =================================================================== --- trunk/BankAccounts.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/BankAccounts.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -45,7 +45,7 @@ $Errors[$i] = 'AccountCode'; $i++; } - if (strlen($_POST['BankAccountName']) >50) { + if (mb_strlen($_POST['BankAccountName']) >50) { $InputError = 1; prnMsg(_('The bank account name must be fifty characters or less long'),'error'); $Errors[$i] = 'AccountName'; @@ -63,13 +63,13 @@ $Errors[$i] = 'AccountNumber'; $i++; } - if (strlen($_POST['BankAccountNumber']) >50) { + if (mb_strlen($_POST['BankAccountNumber']) >50) { $InputError = 1; prnMsg(_('The bank account number must be fifty characters or less long'),'error'); $Errors[$i] = 'AccountNumber'; $i++; } - if (strlen($_POST['BankAddress']) >50) { + if (mb_strlen($_POST['BankAddress']) >50) { $InputError = 1; prnMsg(_('The bank address must be fifty characters or less long'),'error'); $Errors[$i] = 'BankAddress'; Modified: trunk/CompanyPreferences.php =================================================================== --- trunk/CompanyPreferences.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/CompanyPreferences.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -25,67 +25,67 @@ //first off validate inputs sensible - if (strlen($_POST['CoyName']) > 40 OR strlen($_POST['CoyName'])==0) { + if (mb_strlen($_POST['CoyName']) > 40 OR mb_strlen($_POST['CoyName'])==0) { $InputError = 1; prnMsg(_('The company name must be entered and be fifty characters or less long'), 'error'); $Errors[$i] = 'CoyName'; $i++; } - if (strlen($_POST['RegOffice1']) >40) { + if (mb_strlen($_POST['RegOffice1']) >40) { $InputError = 1; prnMsg(_('The Line 1 of the address must be forty characters or less long'),'error'); $Errors[$i] = 'RegOffice1'; $i++; } - if (strlen($_POST['RegOffice2']) >40) { + if (mb_strlen($_POST['RegOffice2']) >40) { $InputError = 1; prnMsg(_('The Line 2 of the address must be forty characters or less long'),'error'); $Errors[$i] = 'RegOffice2'; $i++; } - if (strlen($_POST['RegOffice3']) >40) { + if (mb_strlen($_POST['RegOffice3']) >40) { $InputError = 1; prnMsg(_('The Line 3 of the address must be forty characters or less long'),'error'); $Errors[$i] = 'RegOffice3'; $i++; } - if (strlen($_POST['RegOffice4']) >40) { + if (mb_strlen($_POST['RegOffice4']) >40) { $InputError = 1; prnMsg(_('The Line 4 of the address must be forty characters or less long'),'error'); $Errors[$i] = 'RegOffice4'; $i++; } - if (strlen($_POST['RegOffice5']) >20) { + if (mb_strlen($_POST['RegOffice5']) >20) { $InputError = 1; prnMsg(_('The Line 5 of the address must be twenty characters or less long'),'error'); $Errors[$i] = 'RegOffice5'; $i++; } - if (strlen($_POST['RegOffice6']) >15) { + if (mb_strlen($_POST['RegOffice6']) >15) { $InputError = 1; prnMsg(_('The Line 6 of the address must be fifteen characters or less long'),'error'); $Errors[$i] = 'RegOffice6'; $i++; } - if (strlen($_POST['Telephone']) >25) { + if (mb_strlen($_POST['Telephone']) >25) { $InputError = 1; prnMsg(_('The telephone number must be 25 characters or less long'),'error'); $Errors[$i] = 'Telephone'; $i++; } - if (strlen($_POST['Fax']) >25) { + if (mb_strlen($_POST['Fax']) >25) { $InputError = 1; prnMsg(_('The fax number must be 25 characters or less long'),'error'); $Errors[$i] = 'Fax'; $i++; } - if (strlen($_POST['Email']) >55) { + if (mb_strlen($_POST['Email']) >55) { $InputError = 1; prnMsg(_('The email address must be 55 characters or less long'),'error'); $Errors[$i] = 'Email'; $i++; } - if (strlen($_POST['Email'])>0 and !IsEmailAddress($_POST['Email'])) { + if (mb_strlen($_POST['Email'])>0 and !IsEmailAddress($_POST['Email'])) { $InputError = 1; prnMsg(_('The email address is not correctly formed'),'error'); $Errors[$i] = 'Email'; Modified: trunk/ConfirmDispatch_Invoice.php =================================================================== --- trunk/ConfirmDispatch_Invoice.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/ConfirmDispatch_Invoice.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -391,7 +391,7 @@ } } echo '</tr>'; - if (strlen($LnItm->Narrative)>1){ + if (mb_strlen($LnItm->Narrative)>1){ $narrative=str_replace('\r\n','<br />', $LnItm->Narrative); echo $RowStarter . '<td colspan=12>' . stripslashes($narrative) . '</td></tr>'; } @@ -804,7 +804,7 @@ if ($HyphenOccursAt == false){ $AssetNumber = intval(substr($OrderLine->StockID,6)); } else { - $AssetNumber = intval(substr($OrderLine->StockID,6,strlen($OrderLine->StockID)-$HyphenOccursAt-1)); + $AssetNumber = intval(substr($OrderLine->StockID,6,mb_strlen($OrderLine->StockID)-$HyphenOccursAt-1)); } prnMsg (_('The asset number beind disposed of is:') . ' ' . $AssetNumber, 'info'); } else { Modified: trunk/ContractBOM.php =================================================================== --- trunk/ContractBOM.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/ContractBOM.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -166,7 +166,7 @@ /* take the form entries and enter the data from the form into the PurchOrder class variable */ foreach ($_POST as $ItemCode => $Quantity) { if (substr($ItemCode, 0, 3)=='Qty') { - $ItemCode=substr($ItemCode, 3, strlen($ItemCode)-3); + $ItemCode=substr($ItemCode, 3, mb_strlen($ItemCode)-3); $AlreadyOnThisBOM = 0; if (count($_SESSION['Contract'.$identifier]->ContractBOM)!=0){ Modified: trunk/Contracts.php =================================================================== --- trunk/Contracts.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/Contracts.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -73,7 +73,7 @@ /*User hit the button to enter line items - then meta refresh to Contract_Items.php*/ $InputError = false; - if(strlen($_SESSION['Contract'.$identifier]->ContractRef)<2){ + if(mb_strlen($_SESSION['Contract'.$identifier]->ContractRef)<2){ prnMsg(_('The contract reference must be entered (and be longer than 2 characters) before the requirements of the contract can be setup'),'warn'); $InputError = true; } @@ -107,7 +107,7 @@ $filename = $_SESSION['part_pics_dir'] . '/' . $_SESSION['Contract'.$identifier]->ContractRef . '.jpg'; //But check for the worst - if (strtoupper(substr(trim($_FILES['Drawing']['name']),strlen($_FILES['Drawing']['name'])-3))!='JPG'){ + if (strtoupper(substr(trim($_FILES['Drawing']['name']),mb_strlen($_FILES['Drawing']['name'])-3))!='JPG'){ prnMsg(_('Only jpg files are supported - a file extension of .jpg is expected'),'warn'); $UploadTheFile ='No'; } elseif ( $_FILES['Drawing']['size'] > ($_SESSION['MaxImageSize']*1024)) { //File Size Check @@ -220,7 +220,7 @@ //First update the session['Contract'.$identifier] variable with all inputs from the form $InputError = False; //assume no errors on input then test for errors - if (strlen($_POST['ContractRef']) < 2){ + if (mb_strlen($_POST['ContractRef']) < 2){ prnMsg(_('The contract reference is expected to be more than 2 characters long. Please alter the contract reference before proceeding.'),'error'); $InputError = true; } @@ -235,7 +235,7 @@ prnMsg(_('The contract reference cannot be the same as a previously created stock item. Please modify the contract reference before continuing'),'error'); $InputError=true; } - if (strlen($_POST['ContractDescription'])<10){ + if (mb_strlen($_POST['ContractDescription'])<10){ prnMsg(_('The contract description is expected to be more than 10 characters long. Please alter the contract description in full before proceeding.'),'error'); $InputError = true; } @@ -609,7 +609,7 @@ if (($_POST['CustKeywords']=='') AND ($_POST['CustCode']=='') AND ($_POST['CustPhone']=='')) { prnMsg(_('At least one Customer Branch Name keyword OR an extract of a Customer Branch Code or Branch Phone Number must be entered for the search'), 'warn'); } else { - if (strlen($_POST['CustKeywords'])>0) { + if (mb_strlen($_POST['CustKeywords'])>0) { //insert wildcard characters in spaces $_POST['CustKeywords'] = strtoupper(trim($_POST['CustKeywords'])); $SearchString = '%' . str_replace(' ', '%', $_POST['CustKeywords']) . '%'; @@ -628,7 +628,7 @@ AND custbranch.disabletrans=0 ORDER BY custbranch.debtorno, custbranch.branchcode"; - } elseif (strlen($_POST['CustCode'])>0){ + } elseif (mb_strlen($_POST['CustCode'])>0){ $_POST['CustCode'] = strtoupper(trim($_POST['CustCode'])); @@ -646,7 +646,7 @@ AND custbranch.disabletrans=0 ORDER BY custbranch.debtorno"; - } elseif (strlen($_POST['CustPhone'])>0){ + } elseif (mb_strlen($_POST['CustPhone'])>0){ $SQL = "SELECT custbranch.brname, custbranch.contactname, custbranch.phoneno, Modified: trunk/CounterSales.php =================================================================== --- trunk/CounterSales.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/CounterSales.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -221,7 +221,7 @@ } else if ($_POST['Keywords']=='' AND $_POST['StockCode']=='') { $msg='<div class="page_help_text">' . _('Stock Category has been used in search') . '.</div>'; } - if (isset($_POST['Keywords']) AND strlen($_POST['Keywords'])>0) { + if (isset($_POST['Keywords']) AND mb_strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces $_POST['Keywords'] = strtoupper($_POST['Keywords']); $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; @@ -254,7 +254,7 @@ ORDER BY stockmaster.stockid"; } - } else if (strlen($_POST['StockCode'])>0){ + } else if (mb_strlen($_POST['StockCode'])>0){ $_POST['StockCode'] = strtoupper($_POST['StockCode']); $SearchString = '%' . $_POST['StockCode'] . '%'; Modified: trunk/CreditStatus.php =================================================================== --- trunk/CreditStatus.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/CreditStatus.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -47,11 +47,11 @@ $Errors[$i] = 'ReasonCode'; $i++; } - if (strlen($_POST['ReasonDescription']) > 30) { + if (mb_strlen($_POST['ReasonDescription']) > 30) { $InputError = 1; prnMsg(_('The credit status description must be thirty characters or less long'),'error'); } - if (strlen($_POST['ReasonDescription']) == 0) { + if (mb_strlen($_POST['ReasonDescription']) == 0) { $InputError = 1; prnMsg(_('The credit status description must be entered'),'error'); $Errors[$i] = 'ReasonDescription'; Modified: trunk/Currencies.php =================================================================== --- trunk/Currencies.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/Currencies.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -50,7 +50,7 @@ $Errors[$i] = 'Abbreviation'; $i++; } - if (strlen($_POST['Abbreviation']) > 3) { + if (mb_strlen($_POST['Abbreviation']) > 3) { $InputError = 1; prnMsg(_('The currency abbreviation must be 3 characters or less long and for automated currency updates to work correctly be one of the ISO4217 currency codes'),'error'); $Errors[$i] = 'Abbreviation'; @@ -78,19 +78,19 @@ $Errors[$i] = 'DecimalPlaces'; $i++; } - if (strlen($_POST['CurrencyName']) > 20) { + if (mb_strlen($_POST['CurrencyName']) > 20) { $InputError = 1; prnMsg(_('The currency name must be 20 characters or less long'),'error'); $Errors[$i] = 'CurrencyName'; $i++; } - if (strlen($_POST['Country']) > 50) { + if (mb_strlen($_POST['Country']) > 50) { $InputError = 1; prnMsg(_('The currency country must be 50 characters or less long'),'error'); $Errors[$i] = 'Country'; $i++; } - if (strlen($_POST['HundredsName']) > 15) { + if (mb_strlen($_POST['HundredsName']) > 15) { $InputError = 1; prnMsg(_('The hundredths name must be 15 characters or less long'),'error'); $Errors[$i] = 'HundredsName'; Modified: trunk/CustEDISetup.php =================================================================== --- trunk/CustEDISetup.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/CustEDISetup.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -30,13 +30,13 @@ $InputError = 1; prnMsg(_('The customers EDI reference code cannot contain any of the following characters') .' - \' & + \" ' . _('or a space'),'warn'); } - if (strlen($_POST['EDIReference'])<4 AND ($_POST['EDIInvoices']==1 OR $_POST['EDIOrders']==1)){ + if (mb_strlen($_POST['EDIReference'])<4 AND ($_POST['EDIInvoices']==1 OR $_POST['EDIOrders']==1)){ $InputError = 1; prnMsg(_('The customers EDI reference code must be set when EDI Invoices or EDI orders are activated'),'warn'); $Errors[$i] = 'EDIReference'; $i++; } - if (strlen($_POST['EDIAddress'])<4 AND $_POST['EDIInvoices']==1){ + if (mb_strlen($_POST['EDIAddress'])<4 AND $_POST['EDIInvoices']==1){ $InputError = 1; prnMsg(_('The customers EDI email address or FTP server address must be entered if EDI Invoices are to be sent'),'warn'); $Errors[$i] = 'EDIAddress'; Modified: trunk/CustLoginSetup.php =================================================================== --- trunk/CustLoginSetup.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/CustLoginSetup.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -37,13 +37,13 @@ ie the page has called itself with some user input */ //first off validate inputs sensible - if (strlen($_POST['UserID'])<3){ + if (mb_strlen($_POST['UserID'])<3){ $InputError = 1; prnMsg(_('The user ID entered must be at least 4 characters long'),'error'); } elseif (ContainsIllegalCharacters($_POST['UserID']) OR strstr($_POST['UserID'],' ')) { $InputError = 1; prnMsg(_('User names cannot contain any of the following characters') . " - ' & + \" \\ " . _('or a space'),'error'); - } elseif (strlen($_POST['Password'])<5){ + } elseif (mb_strlen($_POST['Password'])<5){ if (!$SelectedUser){ $InputError = 1; prnMsg(_('The password entered must be at least 5 characters long'),'error'); @@ -51,12 +51,12 @@ } elseif (strstr($_POST['Password'],$_POST['UserID'])!= False){ $InputError = 1; prnMsg(_('The password cannot contain the user id'),'error'); - } elseif ((strlen($_POST['Cust'])>0) AND (strlen($_POST['BranchCode'])==0)) { + } elseif ((mb_strlen($_POST['Cust'])>0) AND (mb_strlen($_POST['BranchCode'])==0)) { $InputError = 1; prnMsg(_('If you enter a Customer Code you must also enter a Branch Code valid for this Customer'),'error'); } - if ((strlen($_POST['BranchCode'])>0) AND ($InputError !=1)) { + if ((mb_strlen($_POST['BranchCode'])>0) AND ($InputError !=1)) { // check that the entered branch is valid for the customer code $sql = "SELECT defaultlocation FROM custbranch Modified: trunk/CustomerBranches.php =================================================================== --- trunk/CustomerBranches.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/CustomerBranches.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -52,7 +52,7 @@ $Errors[$i] = 'BranchCode'; $i++; } - if (strlen($_POST['BranchCode'])==0) { + if (mb_strlen($_POST['BranchCode'])==0) { $InputError = 1; prnMsg(_('The Branch code must be at least one character long'),'error'); $Errors[$i] = 'BranchCode'; Modified: trunk/CustomerReceipt.php =================================================================== --- trunk/CustomerReceipt.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/CustomerReceipt.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -542,7 +542,7 @@ if ($_POST['Keywords']=="" AND $_POST['CustCode']=="" AND $_POST['CustInvNo']=="") { $msg=_('At least one Customer Name keyword OR an extract of a Customer Code must be entered for the search'); } else { - if (strlen($_POST['Keywords'])>0) { + if (mb_strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; @@ -552,13 +552,13 @@ WHERE debtorsmaster.name " . LIKE . " '". $SearchString . "' AND debtorsmaster.currcode= '" . $_SESSION['ReceiptBatch']->Currency . "'"; - } elseif (strlen($_POST['CustCode'])>0){ + } elseif (mb_strlen($_POST['CustCode'])>0){ $SQL = "SELECT debtorsmaster.debtorno, debtorsmaster.name FROM debtorsmaster WHERE debtorsmaster.debtorno " . LIKE . " '%" . $_POST['CustCode'] . "%' AND debtorsmaster.currcode= '" . $_SESSION['ReceiptBatch']->Currency . "'"; - } elseif (strlen($_POST['CustInvNo'])>0){ + } elseif (mb_strlen($_POST['CustInvNo'])>0){ $SQL = "SELECT debtortrans.debtorno, debtorsmaster.name FROM debtorsmaster LEFT JOIN debtortrans Modified: trunk/CustomerTypes.php =================================================================== --- trunk/CustomerTypes.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/CustomerTypes.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -32,14 +32,14 @@ //first off validate inputs sensible $i=1; - if (strlen($_POST['typename']) >100) { + if (mb_strlen($_POST['typename']) >100) { $InputError = 1; prnMsg(_('The customer type name description must be 100 characters or less long'),'error'); $Errors[$i] = 'CustomerType'; $i++; } - if (strlen($_POST['typename'])==0) { + if (mb_strlen($_POST['typename'])==0) { $InputError = 1; echo '<br />'; prnMsg(_('The customer type name description must contain at least one character'),'error'); Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/Customers.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -39,12 +39,12 @@ prnMsg( _('The customer number already exists in the database'),'error'); $Errors[$i] = 'DebtorNo'; $i++; - }elseif (strlen($_POST['CustName']) > 40 OR strlen($_POST['CustName'])==0) { + }elseif (mb_strlen($_POST['CustName']) > 40 OR mb_strlen($_POST['CustName'])==0) { $InputError = 1; prnMsg( _('The customer name must be entered and be forty characters or less long'),'error'); $Errors[$i] = 'CustName'; $i++; - } elseif ($_SESSION['AutoDebtorNo']==0 AND strlen($_POST['DebtorNo']) ==0) { + } elseif ($_SESSION['AutoDebtorNo']==0 AND mb_strlen($_POST['DebtorNo']) ==0) { $InputError = 1; prnMsg( _('The debtor code cannot be empty'),'error'); $Errors[$i] = 'DebtorNo'; @@ -54,56 +54,56 @@ prnMsg( _('The customer code cannot contain any of the following characters') . " . - ' & + \" " . _('or a space'),'error'); $Errors[$i] = 'DebtorNo'; $i++; - } elseif (strlen($_POST['Address1']) >40) { + } elseif (mb_strlen($_POST['Address1']) >40) { $InputError = 1; prnMsg( _('The Line 1 of the address must be forty characters or less long'),'error'); $Errors[$i] = 'Address1'; $i++; - } elseif (strlen($_POST['Address2']) >40) { + } elseif (mb_strlen($_POST['Address2']) >40) { $InputError = 1; prnMsg( _('The Line 2 of the address must be forty characters or less long'),'error'); $Errors[$i] = 'Address2'; $i++; - } elseif (strlen($_POST['Address3']) >40) { + } elseif (mb_strlen($_POST['Address3']) >40) { $InputError = 1; prnMsg( _('The Line 3 of the address must be forty characters or less long'),'error'); $Errors[$i] = 'Address3'; $i++; - } elseif (strlen($_POST['Address4']) >50) { + } elseif (mb_strlen($_POST['Address4']) >50) { $InputError = 1; prnMsg( _('The Line 4 of the address must be fifty characters or less long'),'error'); $Errors[$i] = 'Address4'; $i++; - } elseif (strlen($_POST['Address5']) >20) { + } elseif (mb_strlen($_POST['Address5']) >20) { $InputError = 1; prnMsg( _('The Line 5 of the address must be twenty characters or less long'),'error'); $Errors[$i] = 'Address5'; $i++; - } elseif (strlen($_POST['Address6']) >15) { + } elseif (mb_strlen($_POST['Address6']) >15) { $InputError = 1; prnMsg( _('The Line 6 of the address must be fifteen characters or less long'),'error'); $Errors[$i] = 'Address6'; $i++; } - elseif (strlen($_POST['Phone']) >25) { + elseif (mb_strlen($_POST['Phone']) >25) { $InputError = 1; prnMsg(_('The telephone number must be 25 characters or less long'),'error'); $Errors[$i] = 'Telephone'; $i++; } - elseif (strlen($_POST['Fax']) >25) { + elseif (mb_strlen($_POST['Fax']) >25) { $InputError = 1; prnMsg(_('The fax number must be 25 characters or less long'),'error'); $Errors[$i] = 'Fax'; $i++; } - elseif (strlen($_POST['Email']) >55) { + elseif (mb_strlen($_POST['Email']) >55) { $InputError = 1; prnMsg(_('The email address must be 55 characters or less long'),'error'); $Errors[$i] = 'Email'; $i++; } - elseif (strlen($_POST['Email'])>0 and !IsEmailAddress($_POST['Email'])) { + elseif (mb_strlen($_POST['Email'])>0 and !IsEmailAddress($_POST['Email'])) { $InputError = 1; prnMsg(_('The email address is not correctly formed'),'error'); $Errors[$i] = 'Email'; Modified: trunk/DailySalesInquiry.php =================================================================== --- trunk/DailySalesInquiry.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/DailySalesInquiry.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -64,7 +64,7 @@ $Date_Array = explode('.',$EndDateSQL); } -if (strlen($Date_Array[2])>4) { +if (mb_strlen($Date_Array[2])>4) { $Date_Array[2]= substr($Date_Array[2],0,2); } Modified: trunk/DebtorsAtPeriodEnd.php =================================================================== --- trunk/DebtorsAtPeriodEnd.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/DebtorsAtPeriodEnd.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -6,9 +6,9 @@ if (isset($_POST['PrintPDF']) AND isset($_POST['FromCriteria']) - AND strlen($_POST['FromCriteria'])>=1 + AND mb_strlen($_POST['FromCriteria'])>=1 AND isset($_POST['ToCriteria']) - AND strlen($_POST['ToCriteria'])>=1){ + AND mb_strlen($_POST['ToCriteria'])>=1){ include('includes/PDFStarter.php'); $pdf->addInfo('Title',_('Customer Balance Listing')); Modified: trunk/DeliveryDetails.php =================================================================== --- trunk/DeliveryDetails.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/DeliveryDetails.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -53,11 +53,11 @@ or isset($_POST['MakeRecurringOrder'])) { $InputErrors =0; - if (strlen($_POST['DeliverTo'])<=1){ + if (mb_strlen($_POST['DeliverTo'])<=1){ $InputErrors =1; prnMsg(_('You must enter the person or company to whom delivery should be made'),'error'); } - if (strlen($_POST['BrAdd1'])<=1){ + if (mb_strlen($_POST['BrAdd1'])<=1){ $InputErrors =1; prnMsg(_('You should enter the street address in the box provided') . '. ' . _('Orders cannot be accepted without a valid street address'),'error'); } @@ -77,13 +77,13 @@ prnMsg(_('You must select the type of packlist to print'),'error'); } -/* If (strlen($_POST['BrAdd3'])==0 OR !isset($_POST['BrAdd3'])){ +/* If (mb_strlen($_POST['BrAdd3'])==0 OR !isset($_POST['BrAdd3'])){ $InputErrors =1; echo "<br />A region or city must be entered.<br />"; } Maybe appropriate in some installations but not here - If (strlen($_POST['BrAdd2'])<=1){ + If (mb_strlen($_POST['BrAdd2'])<=1){ $InputErrors =1; echo "<br />You should enter the suburb in the box provided. Orders cannot be accepted without a valid suburb being entered.<br />"; } @@ -793,7 +793,7 @@ } -if (isset($_SESSION['Items'.$identifier]->SpecialInstructions) and strlen($_SESSION['Items'.$identifier]->SpecialInstructions)>0) { +if (isset($_SESSION['Items'.$identifier]->SpecialInstructions) and mb_strlen($_SESSION['Items'.$identifier]->SpecialInstructions)>0) { prnMsg($_SESSION['Items'.$identifier]->SpecialInstructions,'info'); } echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/inventory.png" title="' . _('Delivery') . '" alt="" />' . ' ' . _('Delivery Details'); Modified: trunk/EDIProcessOrders.php =================================================================== --- trunk/EDIProcessOrders.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/EDIProcessOrders.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -322,10 +322,10 @@ break; case 'ALI': $ALI = explode('+',substr($LineText,4)); - if (strlen($ALI[0])>1){ + if (mb_strlen($ALI[0])>1){ $EmailText .= "\n" . _('Goods of origin') . ' ' . $ALI[0]; } - if (strlen($ALI[1])>1){ + if (mb_strlen($ALI[1])>1){ $EmailText .= "\n" . _('Duty regime code') . ' ' . $ALI[1]; } switch ($ALI[2]){ @@ -353,7 +353,7 @@ $FTX = explode('+',substr($LineText,4)); /*agreed coded text is not catered for ... yet only free form text */ - if (strlen($FTX[3])>5){ + if (mb_strlen($FTX[3])>5){ $FTX_C108=explode(':',$FTX[3]); $Order->Comments .= $FTX_C108[0] . " " . $FTX_C108[1] . ' ' . $FTX_C108[2] . ' ' . $FTX_C108[3] . ' ' . $FTX_C108[4]; $EmailText .= "\n" . $FTX_C108[0] . ' ' . $FTX_C108[1] . ' ' . $FTX_C108[2] . ' ' . $FTX_C108[3] . ' ' . $FTX_C108[4] . ' '; @@ -428,7 +428,7 @@ } break; } - if (strlen($NAD_C080[0])>0){ + if (mb_strlen($NAD_C080[0])>0){ $Order->CustomerName = $NAD_C080[0]; } break; @@ -445,10 +445,10 @@ /*Delivery Party - get the address and name etc */ /*Snag here - how do I figure out what branch to charge */ - if (strlen($NAD_C080[0])>0){ + if (mb_strlen($NAD_C080[0])>0){ $Order->DeliverTo = $NAD_C080[0]; } - if (strlen($NAD_C059[0])>0){ + if (mb_strlen($NAD_C059[0])>0){ $Order->DelAdd1 = $NAD_C059[0]; $Order->DelAdd2 = $NAD_C059[1]; $Order->DelAdd3 = $NAD_C059[2]; @@ -514,7 +514,7 @@ } /*end case Seg Tag*/ } /*end while get next line of message */ /*Thats the end of the message or had to abort */ - if (strlen($EmailText)>10){ + if (mb_strlen($EmailText)>10){ /*Now send the email off to the appropriate person */ $mail = new htmlMimeMail(); $mail->setText($EmailText); Modified: trunk/EmailConfirmation.php =================================================================== --- trunk/EmailConfirmation.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/EmailConfirmation.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -135,7 +135,7 @@ $myrow['deliverto'] . "</td></tr>"; $MailMessage = $MailMessage . "<tr><td colspan='4'> <b>" . $myrow['deladd1'] . "</td></tr>"; -If(strlen(trim($myrow['deladd2']))) +If(mb_strlen(trim($myrow['deladd2']))) { $MailMessage = $MailMessage . "<tr><td> <b>" . $myrow['deladd2'] . "</td></tr>"; $MailMessage = $MailMessage . "<tr><td> <b>" . $myrow['deladd3'] . Modified: trunk/Factors.php =================================================================== --- trunk/Factors.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/Factors.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -33,11 +33,11 @@ if (isset($_POST['Submit']) OR isset($_POST['Update'])) { - if (strlen($_POST['FactorName']) > 40 or strlen($_POST['FactorName']) == 0 or $_POST['FactorName'] == '') { + if (mb_strlen($_POST['FactorName']) > 40 or mb_strlen($_POST['FactorName']) == 0 or $_POST['FactorName'] == '') { $InputError = 1; prnMsg(_('The factoring company name must be entered and be forty characters or less long'),'error'); } - if (strlen($_POST['Email'])>0 AND !IsEmailAddress($_POST['Email'])){ + if (mb_strlen($_POST['Email'])>0 AND !IsEmailAddress($_POST['Email'])){ prnMsg(_('The email address entered does not appear to be a valid email address format'),'error'); $InputError = 1; } Modified: trunk/FixedAssetCategories.php =================================================================== --- trunk/FixedAssetCategories.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/FixedAssetCategories.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -29,13 +29,13 @@ $_POST['CategoryID'] = strtoupper($_POST['CategoryID']); - if (strlen($_POST['CategoryID']) > 6) { + if (mb_strlen($_POST['CategoryID']) > 6) { $InputError = 1; prnMsg(_('The Fixed Asset Category code must be six characters or less long'),'error'); - } elseif (strlen($_POST['CategoryID'])==0) { + } elseif (mb_strlen($_POST['CategoryID'])==0) { $InputError = 1; prnMsg(_('The Fixed Asset Category code must be at least 1 character but less than six characters long'),'error'); - } elseif (strlen($_POST['CategoryDescription']) >20) { + } elseif (mb_strlen($_POST['CategoryDescription']) >20) { $InputError = 1; prnMsg(_('The Fixed Asset Category description must be twenty characters or less long'),'error'); } Modified: trunk/FixedAssetItems.php =================================================================== --- trunk/FixedAssetItems.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/FixedAssetItems.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -30,7 +30,7 @@ $filename = $_SESSION['part_pics_dir'] . '/ASSET_' . $AssetID . '.jpg'; //But check for the worst - if (strtoupper(substr(trim($_FILES['ItemPicture']['name']),strlen($_FILES['ItemPicture']['name'])-3))!='JPG'){ + if (strtoupper(substr(trim($_FILES['ItemPicture']['name']),mb_strlen($_FILES['ItemPicture']['name'])-3))!='JPG'){ prnMsg(_('Only jpg files are supported - a file extension of .jpg is expected'),'warn'); $UploadTheFile ='No'; } elseif ( $_FILES['ItemPicture']['size'] > ($_SESSION['MaxImageSize']*1024)) { //File Size Check @@ -72,20 +72,20 @@ $i=1; - if (!isset($_POST['Description']) or strlen($_POST['Description']) > 50 OR strlen($_POST['Description'])==0) { + if (!isset($_POST['Description']) or mb_strlen($_POST['Description']) > 50 OR mb_strlen($_POST['Description'])==0) { $InputError = 1; prnMsg (_('The asset description must be entered and be fifty characters or less long. It cannot be a zero length string either, a description is required'),'error'); $Errors[$i] = 'Description'; $i++; } - if (strlen($_POST['LongDescription'])==0) { + if (mb_strlen($_POST['LongDescription'])==0) { $InputError = 1; prnMsg (_('The asset long description cannot be a zero length string, a long description is required'),'error'); $Errors[$i] = 'LongDescription'; $i++; } - if (strlen($_POST['BarCode']) >20) { + if (mb_strlen($_POST['BarCode']) >20) { $InputError = 1; prnMsg(_('The barcode must be 20 characters or less long'),'error'); $Errors[$i] = 'BarCode'; @@ -272,7 +272,7 @@ prnMsg( _('Validation failed, no updates or deletes took place'), 'error'); } -} elseif (isset($_POST['delete']) AND strlen($_POST['delete']) >1 ) { +} elseif (isset($_POST['delete']) AND mb_strlen($_POST['delete']) >1 ) { //the button to delete a selected record was clicked instead of the submit button $CancelDelete = 0; Modified: trunk/FixedAssetLocations.php =================================================================== --- trunk/FixedAssetLocations.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/FixedAssetLocations.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -10,11 +10,11 @@ if (isset($_POST['submit']) and !isset($_POST['delete'])) { $InputError=0; - if (!isset($_POST['LocationID']) or strlen($_POST['LocationID'])<1) { + if (!isset($_POST['LocationID']) or mb_strlen($_POST['LocationID'])<1) { prnMsg(_('You must enter at least one character in the location ID'),'error'); $InputError=1; } - if (!isset($_POST['LocationDescription']) or strlen($_POST['LocationDescription'])<1) { + if (!isset($_POST['LocationDescription']) or mb_strlen($_POST['LocationDescription'])<1) { prnMsg(_('You must enter at least one character in the location description'),'error'); $InputError=1; } @@ -44,7 +44,7 @@ if (isset($_POST['update']) and !isset($_POST['delete'])) { $InputError=0; - if (!isset($_POST['LocationDescription']) or strlen($_POST['LocationDescription'])<1) { + if (!isset($_POST['LocationDescription']) or mb_strlen($_POST['LocationDescription'])<1) { prnMsg(_('You must enter at least one character in the location description'),'error'); $InputError=1; } Modified: trunk/FormDesigner.php =================================================================== --- trunk/FormDesigner.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/FormDesigner.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -79,7 +79,7 @@ $FormDesign = simplexml_load_file($PathPrefix.'companies/'.$_SESSION['DatabaseName'].'/FormDesigns/'.$_POST['FormName']); $FormDesign['name']=$_POST['formname']; if (substr($_POST['PaperSize'],-8)=='Portrait') { - $_POST['PaperSize']=substr($_POST['PaperSize'],0,strlen($_POST['PaperSize'])-9); + $_POST['PaperSize']=substr($_POST['PaperSize'],0,mb_strlen($_POST['PaperSize'])-9); } $FormDesign->PaperSize=$_POST['PaperSize']; $FormDesign->LineHeight=$_POST['LineHeight']; @@ -165,7 +165,7 @@ echo '<th width=33%>'._('Paper Size').'<select name="PaperSize">'; foreach ($Papers as $Paper) { if (substr($Paper,-8)=='Portrait') { - $PaperValue=substr($Paper,0,strlen($Paper)-9); + $PaperValue=substr($Paper,0,mb_strlen($Paper)-9); } else { $PaperValue=$Paper; } Modified: trunk/FreightCosts.php =================================================================== --- trunk/FreightCosts.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/FreightCosts.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -79,7 +79,7 @@ $InputError = 0; //first off validate inputs sensible - if (strlen($_POST['Destination'])<2){ + if (mb_strlen($_POST['Destination'])<2){ $InputError=1; prnMsg(_('The entry for the destination must be at least two characters long') . '. ' . _('These entries are matched against the town names entered for customer delivery addresses'),'warn'); } Modified: trunk/GLAccountReport.php =================================================================== --- trunk/GLAccountReport.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/GLAccountReport.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -220,7 +220,7 @@ /* $pdfcode = $pdf->output(); - $len = strlen($pdfcode); + $len = mb_strlen($pdfcode); if ($len<=20){ $title = _('Print GL Accounts Report Error'); Modified: trunk/GLAccounts.php =================================================================== --- trunk/GLAccounts.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/GLAccounts.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -28,7 +28,7 @@ if (!is_long((integer)$_POST['AccountCode'])) { $InputError = 1; prnMsg(_('The account code must be an integer'),'warn'); - } elseif (strlen($_POST['AccountName']) >50) { + } elseif (mb_strlen($_POST['AccountName']) >50) { $InputError = 1; prnMsg( _('The account name must be fifty characters or less long'),'warn'); } Modified: trunk/GLTransInquiry.php =================================================================== --- trunk/GLTransInquiry.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/GLTransInquiry.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -116,7 +116,7 @@ } else { $URL = $rootpath . '/GLAccountInquiry.php?Account=' . $TransRow['account']; - if( strlen($TransRow['narrative'])==0 ) { + if( mb_strlen($TransRow['narrative'])==0 ) { $TransRow['narrative'] = ' '; } if ( $TransRow['posted']==0 ) { Modified: trunk/GetStockImage.php =================================================================== --- trunk/GetStockImage.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/GetStockImage.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -22,26 +22,26 @@ // Color decode function function DecodeBgColor( $colorstr ) { if ( $colorstr[0] == '#' ) { - $colorstr = substr($colorstr,1,strlen($colorstr)); + $colorstr = substr($colorstr,1,mb_strlen($colorstr)); } $red = 0; - if(strlen($colorstr) > 1) { + if(mb_strlen($colorstr) > 1) { $red = hexdec(substr($colorstr,0,2)); - $colorstr = substr($colorstr,2,strlen($colorstr)); + $colorstr = substr($colorstr,2,mb_strlen($colorstr)); } $green = 0; - if(strlen($colorstr) > 1) { + if(mb_strlen($colorstr) > 1) { $green = hexdec(substr($colorstr,0,2)); - $colorstr = substr($colorstr,2,strlen($colorstr)); + $colorstr = substr($colorstr,2,mb_strlen($colorstr)); } $blue = 0; - if(strlen($colorstr) > 1) { + if(mb_strlen($colorstr) > 1) { $blue = hexdec(substr($colorstr,0,2)); - $colorstr = substr($colorstr,2,strlen($colorstr)); + $colorstr = substr($colorstr,2,mb_strlen($colorstr)); } - if(strlen($colorstr) > 1) { + if(mb_strlen($colorstr) > 1) { $alpha = hexdec(substr($colorstr,0,2)); - $colorstr = substr($colorstr,2,strlen($colorstr)); + $colorstr = substr($colorstr,2,mb_strlen($colorstr)); } if ( isset($alpha) ) return array('red' => $red, 'green' => $green, 'blue' => $blue, 'alpha' => $alpha ); @@ -120,7 +120,7 @@ if( $i === false ) $type = 'png'; else { - $type = strtolower(substr($stockid,$i+1,strlen($stockid))); + $type = strtolower(substr($stockid,$i+1,mb_strlen($stockid))); $stockid = substr($stockid,0,$i); if($blanktext && !isset($text)) $text = ''; @@ -224,12 +224,12 @@ if(!isset($text)) $text = $stockid; - if(strlen($text) > 0 ) { + if(mb_strlen($text) > 0 ) { $fw = imagefontwidth($fontsize); $fh = imagefontheight($fontsize); $fy = (imagesy($im) - ($fh)) / 2; $fyh = $fy + $fh - 1; - $textwidth = $fw * strlen($text); + $textwidth = $fw * mb_strlen($text); $px = (imagesx($im) - $textwidth) / 2; if (!$notextbg) imagefilledrectangle($im,$px,$fy,imagesx($im)-($px+1),$fyh, $ixtextbgcolor ); @@ -323,12 +323,12 @@ // 0,0,0,0); if(!isset($text)) $text = $stockid; - if(strlen($text) > 0 ) { + if(mb_strlen($text) > 0 ) { $fw = imagefontwidth($fontsize); $fh = imagefontheight($fontsize); $fy = imagesy($im) - ($fh); $fyh = imagesy($im) - 1; - $textwidth = $fw * strlen($text); + $textwidth = $fw * mb_strlen($text); $px = (imagesx($im) - $textwidth) / 2; if (!$notextbg) imagefilledrectangle($im,$px,$fy,imagesx($im)-($px+1),$fyh, $ixtextbgcolor ); Modified: trunk/InventoryPlanning.php =================================================================== --- trunk/InventoryPlanning.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/InventoryPlanning.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -7,9 +7,9 @@ if (isset($_POST['PrintPDF']) and isset($_POST['FromCriteria']) - and strlen($_POST['FromCriteria'])>=1 + and mb_strlen($_POST['FromCriteria'])>=1 and isset($_POST['ToCriteria']) - and strlen($_POST['ToCriteria'])>=1) { + and mb_strlen($_POST['ToCriteria'])>=1) { include ('includes/class.pdf.php'); Modified: trunk/InventoryValuation.php =================================================================== --- trunk/InventoryValuation.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/InventoryValuation.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -6,9 +6,9 @@ if (isset($_POST['PrintPDF']) AND isset($_POST['FromCriteria']) - AND strlen($_POST['FromCriteria'])>=1 + AND mb_strlen($_POST['FromCriteria'])>=1 AND isset($_POST['ToCriteria']) - AND strlen($_POST['ToCriteria'])>=1){ + AND mb_strlen($_POST['ToCriteria'])>=1){ include('includes/PDFStarter.php'); Modified: trunk/MRPDemandTypes.php =================================================================== --- trunk/MRPDemandTypes.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/MRPDemandTypes.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -32,11 +32,11 @@ prnMsg(_('The Demand Type is reserved for the system'),'error'); } - if (strlen($_POST['MRPDemandType']) < 1) { + if (mb_strlen($_POST['MRPDemandType']) < 1) { $InputError = 1; prnMsg(_('The Demand Type code must be at least 1 character long'),'error'); } - if (strlen($_POST['Description'])<3) { + if (mb_strlen($_POST['Description'])<3) { $InputError = 1; prnMsg(_('The Demand Type description must be at least 3 characters long'),'error'); } Modified: trunk/MRPDemands.php =================================================================== --- trunk/MRPDemands.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/MRPDemands.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -58,7 +58,7 @@ if ($_POST['Keywords']=='' AND $_POST['StockCode']=='') { $msg=_('At least one stock description keyword or an extract of a stock code must be entered for the search'); } else { - if (strlen($_POST['Keywords'])>0) { + if (mb_strlen($_POST['Keywords'])>0) { //insert wildcard characters in spaces $SearchString = '%' . str_replace(' ', '%', $_POST['Keywords']) . '%'; @@ -68,7 +68,7 @@ WHERE stockmaster.description " . LIKE . " '" . $SearchString ."' ORDER BY stockmaster.stockid"; - } elseif (strlen($_POST['StockCode'])>0){ + } elseif (mb_strlen($_POST['StockCode'])>0){ $sql = "SELECT stockmaster.stockid, stockmaster.description FROM stockmaster Modified: trunk/MRPReport.php =================================================================== --- trunk/MRPReport.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/MRPReport.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -422,7 +422,7 @@ // Details for Demand/Supply Sections $i = 0; - while ((isset($Supplies[$i]) and strlen($Supplies[$i]['part'])) > 1 or (isset($Requirements[$i]) and strlen($Requirements[$i]['part']) > 1)){ + while ((isset($Supplies[$i]) and mb_strlen($Supplies[$i]['part'])) > 1 or (isset($Requirements[$i]) and mb_strlen($Requirements[$i]['part']) > 1)){ $YPos -=$line_height; $FontSize=7; @@ -436,7 +436,7 @@ // 1) X position 2) Y position 3) Width // 4) Height 5) Text To Display 6) Alignment 7) Border 8) Fill - True to use SetFillColor // and False to set for transparent - if (isset($Requirements[$i]['part']) and strlen($Requirements[$i]['part']) > 1) { + if (isset($Requirements[$i]['part']) and mb_strlen($Requirements[$i]['part']) > 1) { $FormatedReqDueDate = ConvertSQLDate($Requirements[$i]['daterequired']); $pdf->addTextWrap($Left_Margin,$YPos,55,$FontSize,$Requirements[$i]['mrpdemandtype'],''); $pdf->addTextWrap(80,$YPos,90,$FontSize,$Requirements[$i]['whererequired'],''); @@ -445,7 +445,7 @@ $myrow['decimalplaces']),'right'); $pdf->addTextWrap(240,$YPos,50,$FontSize,$FormatedReqDueDate,'right'); } - if (strlen($Supplies[$i]['part']) > 1) { + if (mb_strlen($Supplies[$i]['part']) > 1) { $suptype = $Supplies[$i]['ordertype']; // If ordertype is not QOH,PO,or WO, it is an MRP generated planned order and the // ordertype is actually the demandtype that caused the planned order Modified: trunk/Numbers/Words/lang.bg.php =================================================================== --- trunk/Numbers/Words/lang.bg.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/Numbers/Words/lang.bg.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -310,9 +310,9 @@ { if (is_string($num)) { $ret = array(); - $strlen = strlen($num); - $first = substr($num, 0, $strlen%3); - preg_match_all('/\d{3}/', substr($num, $strlen%3, $strlen), $m); + $mb_strlen = mb_strlen($num); + $first = substr($num, 0, $mb_strlen%3); + preg_match_all('/\d{3}/', substr($num, $mb_strlen%3, $mb_strlen), $m); $ret =& $m[0]; if ($first) array_unshift($ret, $first); return $ret; @@ -452,7 +452,7 @@ } // if the absolute value is greater than 9.99*10^302, return infinity - if (strlen($num)>306) { + if (mb_strlen($num)>306) { return $ret_minus . $this->_infinity; } Modified: trunk/Numbers/Words/lang.cs.php =================================================================== --- trunk/Numbers/Words/lang.cs.php 2011-07-02 22:41:11 UTC (rev 4616) +++ trunk/Numbers/Words/lang.cs.php 2011-07-02 22:51:40 UTC (rev 4617) @@ -178,8 +178,8 @@ $num = trim($num); $num = preg_replace('/^0+/','',$num); - if (strlen($num) > 3) { - $maxp = strlen($num)-1; + if (mb_strlen($num) > 3) { + $maxp = mb_strlen($num)-1; $cur... [truncated message content] |
From: <dai...@us...> - 2011-07-02 23:05:10
|
Revision: 4618 http://web-erp.svn.sourceforge.net/web-erp/?rev=4618&view=rev Author: daintree Date: 2011-07-02 23:04:59 +0000 (Sat, 02 Jul 2011) Log Message: ----------- <br> replaced with <br /> Modified Paths: -------------- trunk/Areas.php trunk/BankMatching.php trunk/CustomerBranches.php trunk/CustomerReceipt.php trunk/DailyBankTransactions.php trunk/DailySalesInquiry.php trunk/EDIMessageFormat.php trunk/EDIProcessOrders.php trunk/EmailConfirmation.php trunk/EmailCustTrans.php trunk/FixedAssetLocations.php trunk/FixedAssetRegister.php trunk/FixedAssetTransfer.php trunk/FormDesigner.php trunk/GLAccountCSV.php trunk/GLAccountInquiry.php trunk/GLAccountReport.php trunk/GLAccounts.php trunk/GLBalanceSheet.php trunk/GLTagProfit_Loss.php trunk/GLTrialBalance.php trunk/GeocodeSetup.php trunk/GetStockImage.php trunk/GoodsReceivedControlled.php trunk/InventoryPlanningPrefSupplier.php trunk/Labels.php trunk/Locations.php trunk/MRPCalendar.php trunk/MRPDemandTypes.php trunk/MRPPlannedPurchaseOrders.php trunk/MailInventoryValuation.php trunk/Numbers/Words/lang.cs.php trunk/Numbers/Words/lang.lt.php trunk/OrderDetails.php trunk/PDFChequeListing.php trunk/PDFCustTransListing.php trunk/PDFCustomerList.php trunk/PDFDIFOT.php trunk/PDFDeliveryDifferences.php trunk/PDFGrn.php trunk/PDFPeriodStockTransListing.php trunk/PDFPriceList.php trunk/PDFPrintLabel.php trunk/PDFQuotation.php trunk/PDFQuotationPortrait.php trunk/PDFRemittanceAdvice.php trunk/PDFStockCheckComparison.php trunk/PDFStockLocTransfer.php trunk/PDFStockTransfer.php trunk/PDFSuppTransListing.php trunk/POReport.php trunk/PO_AuthorisationLevels.php trunk/PO_AuthoriseMyOrders.php trunk/PO_Chk_ShiptRef_JobRef.php trunk/PO_OrderDetails.php trunk/PO_SelectOSPurchOrder.php trunk/PO_SelectPurchOrder.php trunk/PaymentAllocations.php trunk/PaymentTerms.php trunk/PcExpenses.php trunk/PcTabs.php trunk/PricesByCost.php trunk/Prices_Customer.php trunk/PrintCustOrder.php trunk/PrintCustStatements.php trunk/PrintCustTrans.php trunk/RecurringSalesOrders.php trunk/ReorderLevel.php trunk/ReorderLevelLocation.php trunk/SMTPServer.php trunk/SalesAnalReptCols.php trunk/SalesByTypePeriodInquiry.php trunk/SalesCategoryPeriodInquiry.php trunk/SalesGraph.php trunk/SalesPeople.php trunk/SalesTopItemsInquiry.php trunk/SalesTypes.php trunk/SelectAsset.php trunk/SelectCreditItems.php trunk/SelectGLAccount.php trunk/SelectSalesOrder.php trunk/Shipments.php trunk/Shippers.php trunk/Shipt_Select.php trunk/StockAdjustments.php trunk/StockCostUpdate.php trunk/StockCounts.php trunk/StockDispatch.php trunk/StockLocMovements.php trunk/StockLocTransferReceive.php trunk/StockSerialItemResearch.php trunk/StockTransferControlled.php trunk/StockUsageGraph.php trunk/SuppContractChgs.php trunk/SuppFixedAssetChgs.php trunk/SuppLoginSetup.php trunk/SuppPaymentRun.php trunk/SuppPriceList.php trunk/SupplierContacts.php trunk/SupplierInvoice.php trunk/TaxAuthorities.php trunk/TaxAuthorityRates.php trunk/TaxCategories.php trunk/TaxProvinces.php trunk/WhereUsedInquiry.php trunk/WorkCentres.php trunk/WorkOrderCosting.php trunk/WorkOrderReceive.php trunk/WorkOrderStatus.php trunk/Z_BottomUpCosts.php trunk/Z_ChangeCustomerCode.php trunk/Z_ChangeStockCategory.php trunk/Z_CheckAllocs.php trunk/Z_DeleteInvoice.php trunk/Z_ImportChartOfAccounts.php trunk/Z_ImportGLAccountGroups.php trunk/Z_ImportGLAccountSections.php trunk/Z_ImportPartCodes.php trunk/Z_MakeNewCompany.php trunk/Z_ReverseSuppPaymentRun.php trunk/Z_UpdateChartDetailsBFwd.php trunk/Z_Upgrade3.10.php trunk/Z_Upgrade_3.10-3.11.php trunk/Z_Upgrade_3.11-4.00.php trunk/Z_index.php trunk/Z_poAddLanguage.php trunk/Z_poEditLangHeader.php trunk/Z_poEditLangModule.php trunk/Z_poEditLangRemaining.php trunk/Z_poRebuildDefault.php trunk/doc/Manual/ManualAPIFunctions.php trunk/geocode.php trunk/includes/DefineLabelClass.php trunk/includes/InputSerialItems.php trunk/includes/InputSerialItemsKeyed.php trunk/includes/InputSerialItemsSequential.php trunk/includes/OutputSerialItems.php trunk/includes/tcpdf/2dbarcodes.php trunk/includes/tcpdf/barcodes.php trunk/includes/tcpdf/tcpdf.php trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.mo trunk/locale/cs_CZ.utf8/LC_MESSAGES/messages.po trunk/locale/de_DE.utf8/LC_MESSAGES/messages.mo trunk/locale/de_DE.utf8/LC_MESSAGES/messages.po trunk/locale/de_DE.utf8/Manual/ManualARInquiries.html trunk/locale/de_DE.utf8/Manual/ManualARReports.html trunk/locale/de_DE.utf8/Manual/ManualARTransactions.html trunk/locale/de_DE.utf8/Manual/ManualAccountsPayable.html trunk/locale/de_DE.utf8/Manual/ManualAccountsReceivable.html trunk/locale/de_DE.utf8/Manual/ManualContents.php trunk/locale/de_DE.utf8/Manual/ManualContributors.html trunk/locale/de_DE.utf8/Manual/ManualCreatingNewSystem.html trunk/locale/de_DE.utf8/Manual/ManualCreditStatus.html trunk/locale/de_DE.utf8/Manual/ManualDevelopmentStructure.html trunk/locale/de_DE.utf8/Manual/ManualGeneralLedger.html trunk/locale/de_DE.utf8/Manual/ManualGettingStarted.html trunk/locale/de_DE.utf8/Manual/ManualHeader.html trunk/locale/de_DE.utf8/Manual/ManualIntroduction.html trunk/locale/de_DE.utf8/Manual/ManualInventory.html trunk/locale/de_DE.utf8/Manual/ManualManufacturing.html trunk/locale/de_DE.utf8/Manual/ManualMultilanguage.html trunk/locale/de_DE.utf8/Manual/ManualNewScripts.html trunk/locale/de_DE.utf8/Manual/ManualPaymentTerms.html trunk/locale/de_DE.utf8/Manual/ManualPrices.html trunk/locale/de_DE.utf8/Manual/ManualReportBuilder.html trunk/locale/de_DE.utf8/Manual/ManualRequirements.html trunk/locale/de_DE.utf8/Manual/ManualSalesAnalysis.html trunk/locale/de_DE.utf8/Manual/ManualSalesOrders.html trunk/locale/de_DE.utf8/Manual/ManualSalesPeople.html trunk/locale/de_DE.utf8/Manual/ManualSalesTypes.html trunk/locale/de_DE.utf8/Manual/ManualSecuritySchema.html trunk/locale/de_DE.utf8/Manual/ManualSecuritySchemaorig.html trunk/locale/de_DE.utf8/Manual/ManualShipments.html trunk/locale/de_DE.utf8/Manual/ManualSpecialUtilities.html trunk/locale/de_DE.utf8/Manual/ManualSystemConventions.html trunk/locale/de_DE.utf8/Manual/ManualTax.html trunk/locale/el_GR.utf8/LC_MESSAGES/messages.mo trunk/locale/el_GR.utf8/LC_MESSAGES/messages.po trunk/locale/en_GB.utf8/LC_MESSAGES/messages.pot trunk/locale/en_US.utf8/LC_MESSAGES/messages.po trunk/locale/es_ES.utf8/LC_MESSAGES/messages.po trunk/locale/et_EE.utf8/LC_MESSAGES/messages.po trunk/locale/fa_IR.utf8/LC_MESSAGES/messages.mo trunk/locale/fa_IR.utf8/LC_MESSAGES/messages.po trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.mo trunk/locale/fr_FR.utf8/LC_MESSAGES/messages.po trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.mo trunk/locale/hi_IN.utf8/LC_MESSAGES/messages.po trunk/locale/hr_HR.utf8/LC_MESSAGES/messages.po trunk/locale/hu_HU.utf8/LC_MESSAGES/messages.mo trunk/locale/hu_HU.utf8/LC_MESSAGES/messages.po trunk/locale/id_ID.utf8/LC_MESSAGES/messages.mo trunk/locale/id_ID.utf8/LC_MESSAGES/messages.po trunk/locale/it_IT.utf8/LC_MESSAGES/messages.mo trunk/locale/it_IT.utf8/LC_MESSAGES/messages.po trunk/locale/ja_JP.utf8/LC_MESSAGES/messages.po trunk/locale/lv_LV.utf8/LC_MESSAGES/messages.po trunk/locale/nl_NL.utf8/LC_MESSAGES/messages.mo trunk/locale/nl_NL.utf8/LC_MESSAGES/messages.po trunk/locale/pl_PL.utf8/LC_MESSAGES/messages.mo trunk/locale/pl_PL.utf8/LC_MESSAGES/messages.po trunk/locale/pt_BR.utf8/LC_MESSAGES/messages.po trunk/locale/pt_PT.utf8/LC_MESSAGES/messages.mo trunk/locale/pt_PT.utf8/LC_MESSAGES/messages.po trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.mo trunk/locale/ro_RO.utf8/LC_MESSAGES/messages.po trunk/locale/ru_RU.utf8/LC_MESSAGES/messages.mo trunk/locale/ru_RU.utf8/LC_MESSAGES/messages.po trunk/locale/sq_AL.utf8/LC_MESSAGES/messages.mo trunk/locale/sq_AL.utf8/LC_MESSAGES/messages.po trunk/locale/sv_SE.utf8/LC_MESSAGES/messages.mo trunk/locale/sv_SE.utf8/LC_MESSAGES/messages.po trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.mo trunk/locale/sw_KE.utf8/LC_MESSAGES/messages.po trunk/locale/tr_TR.utf8/LC_MESSAGES/messages-P-Y.po trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.mo trunk/locale/tr_TR.utf8/LC_MESSAGES/messages.po trunk/locale/vi_VN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_CN.utf8/LC_MESSAGES/messages.po trunk/locale/zh_CN.utf8/Manual/ManualAPIFunctions.php trunk/locale/zh_CN.utf8/Manual/ManualContents.php trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.mo trunk/locale/zh_HK.utf8/LC_MESSAGES/messages.po trunk/locale/zh_HK.utf8/Manual/ManualAPIFunctions.php trunk/locale/zh_HK.utf8/Manual/ManualContents.php trunk/reportwriter/FormMaker.php trunk/reportwriter/WriteReport.inc trunk/reportwriter/admin/RCFunctions.inc trunk/reportwriter/admin/forms/ReportsCritSetup.html trunk/reportwriter/admin/forms/ReportsImport.html trunk/reportwriter/admin/forms/TplFrmCBlk.html trunk/reportwriter/admin/forms/TplFrmCDta.html trunk/reportwriter/admin/forms/TplFrmData.html trunk/reportwriter/admin/forms/TplFrmLine.html trunk/reportwriter/admin/forms/TplFrmPgNum.html trunk/reportwriter/admin/forms/TplFrmRect.html trunk/reportwriter/admin/forms/TplFrmTBlk.html trunk/reportwriter/admin/forms/TplFrmTbl.html trunk/reportwriter/admin/forms/TplFrmText.html trunk/reportwriter/admin/forms/TplFrmTtl.html trunk/reportwriter/forms/TplFrmLine.html trunk/reportwriter/languages/en_US/reports.php trunk/sql/mysql/upgrade2.9-2.9a.sql trunk/sql/mysql/weberp-demo.sql Modified: trunk/Areas.php =================================================================== --- trunk/Areas.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/Areas.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -113,7 +113,7 @@ if ($myrow[0]>0) { $CancelDelete = 1; prnMsg( _('Cannot delete this area because customer branches have been created using this area'),'warn'); - echo '<br>' . _('There are') . ' ' . $myrow[0] . ' ' . _('branches using this area code'); + echo '<br />' . _('There are') . ' ' . $myrow[0] . ' ' . _('branches using this area code'); } else { $sql= "SELECT COUNT(*) FROM salesanalysis WHERE salesanalysis.area ='$SelectedArea'"; @@ -122,7 +122,7 @@ if ($myrow[0]>0) { $CancelDelete = 1; prnMsg( _('Cannot delete this area because sales analysis records exist that use this area'),'warn'); - echo '<br>' . _('There are') . ' ' . $myrow[0] . ' ' . _('sales analysis records referring this area code'); + echo '<br />' . _('There are') . ' ' . $myrow[0] . ' ' . _('sales analysis records referring this area code'); } } @@ -178,7 +178,7 @@ if (!isset($_GET['delete'])) { - echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '"><br>'; + echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '"><br />'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; if (isset($SelectedArea)) { Modified: trunk/BankMatching.php =================================================================== --- trunk/BankMatching.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/BankMatching.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -75,7 +75,7 @@ $_POST['ShowTransactions'] = True; } -echo '<div class="page_help_text">' . _('Use this screen to match webERP Receipts and Payments to your Bank Statement. Check your bank statement and click the check-box when you find the matching transaction.') . '</div><br>'; +echo '<div class="page_help_text">' . _('Use this screen to match webERP Receipts and Payments to your Bank Statement. Check your bank statement and click the check-box when you find the matching transaction.') . '</div><br />'; echo '<form action="'. $_SERVER['PHP_SELF'] . '" method=post>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; @@ -136,7 +136,7 @@ echo '</select></td></tr>'; -echo '</table><br><div class="centre"><input tabindex="6" type=submit name="ShowTransactions" value="' . _('Show selected') . ' ' . $TypeName . '">'; +echo '</table><br /><div class="centre"><input tabindex="6" type=submit name="ShowTransactions" value="' . _('Show selected') . ' ' . $TypeName . '">'; echo '<p><a href="' . $rootpath . '/BankReconciliation.php">' . _('Show reconciliation') . '</a></div>'; echo '<hr />'; Modified: trunk/CustomerBranches.php =================================================================== --- trunk/CustomerBranches.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/CustomerBranches.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -534,7 +534,7 @@ if (isset($SelectedBranch)) { echo '<div class="centre"><a href=' . $_SERVER['PHP_SELF'] . '?DebtorNo=' . $DebtorNo. '>' . _('Show all branches defined for'). ' '. $DebtorNo . '</a></div>'; } - echo '<br><table class="selection">'; + echo '<br /><table class="selection">'; echo '<tr><th colspan=2><div class="centre"><b>'._('Change Branch').'</b></th></tr>'; echo '<tr><td>'._('Branch Code').':</td><td>'; Modified: trunk/CustomerReceipt.php =================================================================== --- trunk/CustomerReceipt.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/CustomerReceipt.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -571,7 +571,7 @@ if (DB_error_no($db) !=0) { prnMsg(_('The searched customer records requested cannot be retrieved because') . ' - ' . DB_error_msg($db),'error'); if ($debug==1){ - prnMsg(_('SQL used to retrieve the customer details was') . '<br>' . $sql,'error'); + prnMsg(_('SQL used to retrieve the customer details was') . '<br />' . $sql,'error'); } } elseif (DB_num_rows($CustomerSearchResult)==1){ $myrow=DB_fetch_array($CustomerSearchResult); @@ -723,7 +723,7 @@ echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('Enter Receipt') . '" alt="">' . ' ' . _('Enter Customer Receipt') . '</p>'; echo '<div class="page_help_text">' . _('To enter a payment TO a customer (ie. to pay out a credit note), enter a negative payment amount.') . '</div>'; } -echo '<br><table class=selection><tr><td>' . _('Bank Account') . ':</td> +echo '<br /><table class=selection><tr><td>' . _('Bank Account') . ':</td> <td><select tabindex=1 name="BankAccount" onChange="ReloadForm(form1.BatchInput)">'; if (DB_num_rows($AccountsResults)==0){ @@ -895,7 +895,7 @@ echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/customer.png" title="' . _('Customer') . '" alt="">' . ' ' . $_SESSION['CustomerRecord']['name'] . ' - (' . _('All amounts stated in') . ' ' . $_SESSION['CustomerRecord']['currency'] . ')' . _('Terms') . ': ' . $_SESSION['CustomerRecord']['terms'] . '<br/>' . _('Credit Limit') . ': ' . number_format($_SESSION['CustomerRecord']['creditlimit'],0) . ' ' . _('Credit Status') . ': ' . $_SESSION['CustomerRecord']['reasondescription']; if ($_SESSION['CustomerRecord']['dissallowinvoices']!=0){ - echo '<br><font color=red size=4><b>' . _('ACCOUNT ON HOLD') . '</font></b><br/>'; + echo '<br /><font color=red size=4><b>' . _('ACCOUNT ON HOLD') . '</font></b><br/>'; } echo '<table width="90%" class=selection> @@ -914,7 +914,7 @@ <td class=number>' . number_format(($_SESSION['CustomerRecord']['overdue1']-$_SESSION['CustomerRecord']['overdue2']) ,2) . '</td> <td class=number>' . number_format($_SESSION['CustomerRecord']['overdue2'],2) . '</td> </tr> - </table><br>'; + </table><br />'; echo '<table class="selection">'; @@ -1009,7 +1009,7 @@ echo '<td>' . _('Narrative') . ':</td>'; echo '<td><textarea name="Narrative" cols=40 rows=1></textarea></td>'; echo '</table>'; - echo '<br><div class="centre"><input tabindex=14 type="submit" name="Process" value="' . _('Accept') . '">'; + echo '<br /><div class="centre"><input tabindex=14 type="submit" name="Process" value="' . _('Accept') . '">'; echo '<input tabindex=14 type="submit" name="Cancel" value="' . _('Cancel') . '"></div>'; } elseif (isset($_SESSION['ReceiptBatch']) AND !isset($_POST['GLEntry'])){ @@ -1028,7 +1028,7 @@ echo '<td>' . _('Customer invoice number') . ':</td>'; echo '<td><input tabindex=11 type="text" name="CustInvNo" size=8 maxlength=8></td>'; echo '</tr></table>'; - echo '<div class="centre"><br>'; + echo '<div class="centre"><br />'; echo '<input tabindex=11 type=submit name="Search" value="' . _('Search Now') . '">'; echo '<br/><br/><input tabindex=12 type=submit name="GLEntry" value="' . _('Enter A GL Receipt') . '"><br /></div>'; Modified: trunk/DailyBankTransactions.php =================================================================== --- trunk/DailyBankTransactions.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/DailyBankTransactions.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -58,7 +58,7 @@ </tr>'; echo '</table>'; - echo '<br><div class="centre"><input type="submit" name="Show" value="' . _('Show transactions'). '"></div>'; + echo '<br /><div class="centre"><input type="submit" name="Show" value="' . _('Show transactions'). '"></div>'; echo '</form>'; } else { $SQL = "SELECT bankaccountname, @@ -133,7 +133,7 @@ echo '<form action="' . $_SERVER['PHP_SELF'] . '" method=post>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<br><div class="centre"><input type="submit" name="Return" value="' . _('Select Another Date'). '"></div>'; + echo '<br /><div class="centre"><input type="submit" name="Return" value="' . _('Select Another Date'). '"></div>'; echo '</form>'; } include('includes/footer.inc'); Modified: trunk/DailySalesInquiry.php =================================================================== --- trunk/DailySalesInquiry.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/DailySalesInquiry.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -8,7 +8,7 @@ include('includes/DefineCartClass.php'); echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('Daily Sales') . '" alt="" />' . ' ' . _('Daily Sales') . '</p>'; -echo '<div class="page_help_text">' . _('Select the month to show daily sales for') . '</div><br>'; +echo '<div class="page_help_text">' . _('Select the month to show daily sales for') . '</div><br />'; echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; Modified: trunk/EDIMessageFormat.php =================================================================== --- trunk/EDIMessageFormat.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/EDIMessageFormat.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -162,7 +162,7 @@ echo '</table><p>'; if (DB_num_rows($result)==0){ echo '<div class="centre"><input tabindex=1 type=submit name="NewEDIInvMsg" value="' . - _('Create New EDI Invoice Message From Default Template') . '"></div><br>'; + _('Create New EDI Invoice Message From Default Template') . '"></div><br />'; } } //end of ifs SelectedLine is not set @@ -240,7 +240,7 @@ echo '<td>'; echo '<input tabindex=4 type="Text" name="LineText" size=50 maxlength=50 VALUE='.$_POST['LineText'] .'>'; echo '</td></tr>'; -echo '</table><br>'; +echo '</table><br />'; if (isset($_GET['SelectedMessageLine'])) { echo '<div class="centre"><input tabindex=5 type="submit" name="update" value="'. _('Update Information'). '"></div>'; } else { Modified: trunk/EDIProcessOrders.php =================================================================== --- trunk/EDIProcessOrders.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/EDIProcessOrders.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -58,7 +58,7 @@ while (false !== ($OrderFile=readdir($dirhandle))){ /*there are files in the incoming orders dir */ $TryNextFile = False; - echo "<br>$OrderFile"; + echo "<br />$OrderFile"; /*Counter that keeps track of the array pointer for the 1st seg in the current seg group */ $FirstSegInGrp =0; @@ -79,7 +79,7 @@ while ($LineText = fgets($fp) AND $TryNextFile != True){ /* get each line of the order file */ $LineText = StripTrailingComma($LineText); - echo "<br>".$LineText; + echo "<br />".$LineText; if ($SegTag != substr($LineText,0,3)){ $SegCounter=1; @@ -87,7 +87,7 @@ } else { $SegCounter++; if ($SegCounter > $Seg[$SegID]['MaxOccur']){ - $EmailText = $EmailText . "\n" . _('The EANCOM Standard only allows for') . ' ' . $Seg[$SegID]['MaxOccur'] . ' ' ._('occurrences of the segment') . ' ' . $Seg[$SegID]['SegTag'] . ' ' . _('this is the') . ' ' . $SegCounter . ' ' . _('occurrence') . '<br>' . _('The segment line read as follows') . ':<br>' . $LineText; + $EmailText = $EmailText . "\n" . _('The EANCOM Standard only allows for') . ' ' . $Seg[$SegID]['MaxOccur'] . ' ' ._('occurrences of the segment') . ' ' . $Seg[$SegID]['SegTag'] . ' ' . _('this is the') . ' ' . $SegCounter . ' ' . _('occurrence') . '<br />' . _('The segment line read as follows') . ':<br />' . $LineText; } } @@ -114,12 +114,12 @@ if ($SegTag != $Seg[$SegID]['SegTag']){ - $EmailText .= "\n" . _('ERROR') . ': ' . _('Unable to identify segment tag') . ' ' . $SegTag . ' ' . _('from the message line') . '<br>' . $LineText . '<br><font color=RED><b>' . _('This message processing has been aborted and separate advice will be required from the customer to obtain details of the order') . '<b></font>'; + $EmailText .= "\n" . _('ERROR') . ': ' . _('Unable to identify segment tag') . ' ' . $SegTag . ' ' . _('from the message line') . '<br />' . $LineText . '<br /><font color=RED><b>' . _('This message processing has been aborted and separate advice will be required from the customer to obtain details of the order') . '<b></font>'; $TryNextFile = True; } - echo '<br>' . _('The segment tag') . ' ' . $SegTag . ' ' . _('is being processed'); + echo '<br />' . _('The segment tag') . ' ' . $SegTag . ' ' . _('is being processed'); switch ($SegTag){ case 'UNH': $UNH_elements = explode ('+',substr($LineText,4)); @@ -181,13 +181,13 @@ } /*end switch for type of order */ if (isset($BGM_elements[1])){ - echo '<br>echo BGM_elements[1] ' .$BGM_elements[1]; + echo '<br />echo BGM_elements[1] ' .$BGM_elements[1]; $BGM_C106 = explode(':',$BGM_elements[1]); $Order->CustRef = $BGM_C106[0]; $EmailText .= "\n" . _('Customers order ref') . ': ' . $BGM_C106[0]; } if (isset($BGM_elements[2])){ - echo "<br>echo BGM_elements[2] " .$BGM_elements[2]; + echo "<br />echo BGM_elements[2] " .$BGM_elements[2]; $BGM_1225 = explode(':',$BGM_elements[2]); $MsgFunction = $BGM_1225[0]; @@ -222,7 +222,7 @@ if (isset($BGM_1225[1])){ $ResponseCode = $BGM_1225[1]; - echo '<br>' . _('Response Code') . ': ' . $ResponseCode; + echo '<br />' . _('Response Code') . ': ' . $ResponseCode; switch ($ResponseCode) { case 'AC': $EmailText .= "\n" . _('Please acknowledge to customer with detail and changes made to the order'); Modified: trunk/EmailConfirmation.php =================================================================== --- trunk/EmailConfirmation.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/EmailConfirmation.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -9,12 +9,12 @@ If (!isset($_GET['TransNo']) OR $_GET['TransNo']==""){ $title = _('Select Order To Print'); include('includes/header.inc'); - echo '<div class="centre"><br><br><br>'; + echo '<div class="centre"><br /><br /><br />'; prnMsg( _('Select an Order Number to Print before calling this page') , 'error'); - echo '<br><br><br><table class="table_index"><tr><td class="menu_group_item"> + echo '<br /><br /><br /><table class="table_index"><tr><td class="menu_group_item"> <li><a href="'. $rootpath . '/SelectSalesOrder.php?'. SID .'">' . _('Outstanding Sales Orders') . '</a></li> <li><a href="'. $rootpath . '/SelectCompletedOrder.php?'. SID .'">' . _('Completed Sales Orders') . '</a></li> - </td></tr></table></div><br><br><br>'; + </td></tr></table></div><br /><br /><br />'; include('includes/footer.inc'); exit(); } @@ -65,12 +65,12 @@ if (DB_num_rows($result)==0){ $title = _('Print Packing Slip Error'); include('includes/header.inc'); - echo '<div class="centre"><br><br><br>'; + echo '<div class="centre"><br /><br /><br />'; prnMsg( _('Unable to Locate Order Number') . ' : ' . $_GET['TransNo'] . ' ', 'error'); - echo '<br><br><br><table class="table_index"><tr><td class="menu_group_item"> + echo '<br /><br /><br /><table class="table_index"><tr><td class="menu_group_item"> <li><a href="'. $rootpath . '/SelectSalesOrder.php?'. SID .'">' . _('Outstanding Sales Orders') . '</a></li> <li><a href="'. $rootpath . '/SelectCompletedOrder.php?'. SID .'">' . _('Completed Sales Orders') . '</a></li> - </td></tr></table></div><br><br><br>'; + </td></tr></table></div><br /><br /><br />'; include('includes/footer.inc'); exit(); } elseif (DB_num_rows($result)==1){ /*There is only one order header returned - thats good! */ @@ -86,17 +86,17 @@ echo '<p>'; prnMsg( _('The packing slip for order number') . ' ' . $_GET['TransNo'] . ' ' . _('has previously been printed') . '. ' . _('It was printed on'). ' ' . ConvertSQLDate($myrow['datepackingslipprinted']) . - '<br>' . _('This check is there to ensure that duplicate packing slips are not produced and dispatched more than once to the customer'), 'warn' ); + '<br />' . _('This check is there to ensure that duplicate packing slips are not produced and dispatched more than once to the customer'), 'warn' ); echo '<p><a href="' . $rootpath . '/PrintCustOrder.php?' . SID . '&TransNo=' . $_GET['TransNo'] . '&Reprint=OK">' . _('Do a Re-Print') . ' (' . _('On Pre-Printed Stationery') . ') ' . _('Even Though Previously Printed') . '</a><p>' . '<a href="' . $rootpath. '/PrintCustOrder_generic.php?' . SID . '&TransNo=' . $_GET['TransNo'] . '&Reprint=OK">'. _('Do a Re-Print') . ' (' . _('Plain paper') . ' - ' . _('A4') . ' ' . _('landscape') . ') ' . _('Even Though Previously Printed'). '</a>'; - echo '<br><br><br>'; + echo '<br /><br /><br />'; echo _('Or select another Order Number to Print'); echo '<table class="table_index"><tr><td class="menu_group_item"> <li><a href="'. $rootpath . '/SelectSalesOrder.php?'. SID .'">' . _('Outstanding Sales Orders') . '</a></li> <li><a href="'. $rootpath . '/SelectCompletedOrder.php?'. SID .'">' . _('Completed Sales Orders') . '</a></li> - </td></tr></table></div><br><br><br>'; + </td></tr></table></div><br /><br /><br />'; include('includes/footer.inc'); exit; @@ -125,11 +125,11 @@ $_SESSION['CompanyRecord']['telephone'] . ' ' . _('Fax'). ': ' . $_SESSION['CompanyRecord']['fax'] . "</td></tr>"; $MailMessage = $MailMessage . "<tr><td colspan='4'> <b>" . - $_SESSION['CompanyRecord']['email'] . "<br><br><br></td></tr>"; + $_SESSION['CompanyRecord']['email'] . "<br /><br /><br /></td></tr>"; $MailMessage = $MailMessage . "<Table><tr><td align='center' colspan='4'> <h2> Order Acknowledgement</h2></td></tr>"; $MailMessage = $MailMessage . "<tr><td align='center' colspan='4'> <b>Order Number " . - $_GET['TransNo'] . "</b><br><br><br></td></tr>"; + $_GET['TransNo'] . "</b><br /><br /><br /></td></tr>"; $MailMessage = $MailMessage . "<tr><td colspan='4'> <b>Delivered To:</b></td></tr>"; $MailMessage = $MailMessage . "<tr><td colspan='4'> <b>" . $myrow['deliverto'] . "</td></tr>"; @@ -139,12 +139,12 @@ { $MailMessage = $MailMessage . "<tr><td> <b>" . $myrow['deladd2'] . "</td></tr>"; $MailMessage = $MailMessage . "<tr><td> <b>" . $myrow['deladd3'] . - ' ' . $myrow['deladd4'] . ' ' . $myrow['deladd5']. "<br><br><br></td></tr>"; + ' ' . $myrow['deladd4'] . ' ' . $myrow['deladd5']. "<br /><br /><br /></td></tr>"; } else { $MailMessage = $MailMessage . "<tr><td> <b>" . $myrow['deladd3'] . ' ' . - $myrow['deladd4'] . ' ' . $myrow['deladd5'] . "<br><br><br></td></tr>"; + $myrow['deladd4'] . ' ' . $myrow['deladd5'] . "<br /><br /><br /></td></tr>"; } $MailMessage = $MailMessage . "</table><table border='1' width='50%'><tr>"; if($_REQUEST['POLine'] == 1){ @@ -205,7 +205,7 @@ } /*end if there are order details to show on the order*/ $MailMessage = $MailMessage . "</Table></body></html>"; -// echo $MailMessage . "=mailMessage<br>"; +// echo $MailMessage . "=mailMessage<br />"; IF(mail( $MailTo, $MailSubject, $MailMessage, $headers )){ echo " The following E-Mail was sent to $MailTo:"; } @@ -225,7 +225,7 @@ <td align='center' colspan='4'> <h2> Order Acknowledgement</h2></td> </tr> <tr> - <td align='center' colspan='4'> <b>Order Number <?=$_GET['TransNo']?> </b><br><br><br></td> + <td align='center' colspan='4'> <b>Order Number <?=$_GET['TransNo']?> </b><br /><br /><br /></td> </tr> <tr> <td colspan='2' nowrap width="50%"> <b><?=$_SESSION['CompanyRecord']['coyname']?></b></td> @@ -251,10 +251,10 @@ </tr> <tr> <td colspan='2' nowrap width="50%"> - <b><?=$_SESSION['CompanyRecord']['email']?><br><br><br> + <b><?=$_SESSION['CompanyRecord']['email']?><br /><br /><br /> </td> <td nowrap width="50%"> - <b><?=$myrow['deladd3']?> <?=$myrow['deladd4'] ?> <?=$myrow['deladd5']?><br><br><br> + <b><?=$myrow['deladd3']?> <?=$myrow['deladd4'] ?> <?=$myrow['deladd5']?><br /><br /><br /> </td> </tr> </table> Modified: trunk/EmailCustTrans.php =================================================================== --- trunk/EmailCustTrans.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/EmailCustTrans.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -64,7 +64,7 @@ <td><input type="text" name="EmailAddr" maxlength=60 size=60 value="' . $EmailAddress . '"></td> </table>'; -echo '<br><div class="centre"><input type=submit name="DoIt" value="' . _('OK') . '">'; +echo '<br /><div class="centre"><input type=submit name="DoIt" value="' . _('OK') . '">'; echo '</div></form>'; include ('includes/footer.inc'); ?> \ No newline at end of file Modified: trunk/FixedAssetLocations.php =================================================================== --- trunk/FixedAssetLocations.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/FixedAssetLocations.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -102,7 +102,7 @@ echo '<td><a href="'.$_SERVER['PHP_SELF'] . '?' . SID.'SelectedLocation='.$myrow['locationid'].'">' . _('Edit') . '</td>'; } -echo '</table><br>'; +echo '</table><br />'; echo '<form name="LocationForm" method="post" action="' . $_SERVER['PHP_SELF'] . '?' . SID . '"><table class=selection>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<tr><th style="text-align:left">'._('Location ID').'</th>'; @@ -133,7 +133,7 @@ echo '</select>'; echo '</td></tr>'; -echo '</table><br>'; +echo '</table><br />'; //Batman: ParentLocationID checking the location ID Modified: trunk/FixedAssetRegister.php =================================================================== --- trunk/FixedAssetRegister.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/FixedAssetRegister.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -76,7 +76,7 @@ echo '<form name="RegisterForm" method="post" action="' . $_SERVER['PHP_SELF'] . '?' . SID . '"><table class=selection>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<div class="centre">' ._('From') . ':' . $_POST['FromDate'] . ' ' . _('to') . ' ' . $_POST['ToDate'] . '</div>'; - echo '<br><table width=80% cellspacing="1" class=selection><tr>'; + echo '<br /><table width=80% cellspacing="1" class=selection><tr>'; echo '<th>' . _('Asset ID') . '</th>'; echo '<th>' . _('Description') . '</th>'; echo '<th>' . _('Serial Number') . '</th>'; @@ -164,13 +164,13 @@ echo '<tr><td style="vertical-align:top">' . $myrow['assetid'] . '</td>'; echo '<td style="vertical-align:top">' . $myrow['longdescription'] . '</td>'; echo '<td style="vertical-align:top">' . $myrow['serialno'] . '</td>'; - echo '<td>' . $myrow['locationdescription'] . '<br>'; + echo '<td>' . $myrow['locationdescription'] . '<br />'; /* Not reworked yet * for ($i = 1;$i < sizeOf($Ancestors) - 1;$i++) { for ($j = 0;$j < $i;$j++) { echo ' '; } - echo '|_' . $Ancestors[$i] . '<br>'; + echo '|_' . $Ancestors[$i] . '<br />'; } */ echo '</td><td style="vertical-align:top">' . ConvertSQLDate($myrow['datepurchased']) . '</td>'; @@ -230,7 +230,7 @@ echo '<th style="text-align:right">' . number_format($TotalNBV, 2) . '</th>'; echo '<th style="text-align:right">' . number_format($TotalDisposals, 2) . '</th></tr>'; echo '</table>'; - echo '<br><div class="centre"><input type="Submit" name="pdf" value="' . _('Print as a pdf') . '"> '; + echo '<br /><div class="centre"><input type="Submit" name="pdf" value="' . _('Print as a pdf') . '"> '; echo '<input type="Submit" name="csv" value="' . _('Print as CSV') . '"></div></form>'; } } else { @@ -289,7 +289,7 @@ echo '<tr><th>' . _('To Date ') . "</th><td><input type='text' class='date' alt='" . $_SESSION['DefaultDateFormat'] . "' name='ToDate' maxlength=10 size=11 value='" . $_POST['ToDate'] . "'></td>"; echo '</tr>'; - echo '</table><br>'; + echo '</table><br />'; echo '<div class="centre"><input type="Submit" name="submit" value="' . _('Show Assets') . '"> '; echo '<input type="Submit" name="pdf" value="' . _('Print as a pdf') . '"> '; echo '<input type="Submit" name = "csv" value= "' . _('Print as CSV') . '"></div>'; Modified: trunk/FixedAssetTransfer.php =================================================================== --- trunk/FixedAssetTransfer.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/FixedAssetTransfer.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -67,9 +67,9 @@ echo '<input type="text" name="AssetID" size=15 maxlength=18>'; } - echo '</td></tr></table><br>'; + echo '</td></tr></table><br />'; - echo '<div class="centre"><input type=submit name="Search" value="'. _('Search Now') . '"></div></form><br>'; + echo '<div class="centre"><input type=submit name="Search" value="'. _('Search Now') . '"></div></form><br />'; } if (isset($_POST['Search'])) { Modified: trunk/FormDesigner.php =================================================================== --- trunk/FormDesigner.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/FormDesigner.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -154,7 +154,7 @@ $FormDesign = simplexml_load_file($PathPrefix.'companies/'.$_SESSION['DatabaseName'].'/FormDesigns/'.$_POST['FormName']); } echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/reports.png" title="' . _('Form Design') . '" alt="">' . ' ' . _('Form Design').'<br />'. $FormDesign['name'] . ''; -echo '<div class="page_help_text">' . _('Enter the changes that you want in the form layout below.') .'<br /> '. _('All measurements are in millimetres') . '.</div><br>'; +echo '<div class="page_help_text">' . _('Enter the changes that you want in the form layout below.') .'<br /> '. _('All measurements are in millimetres') . '.</div><br />'; $Papers=array('A4_Landscape', 'A4_Portrait', 'A5_Landscape', 'A5_Portrait', 'A3_Landscape', 'A3_Portrait', 'letter_Portrait', 'letter_Landscape', 'legal_Portrait', 'legal_Landscape'); // Possible paper sizes/orientations echo '<form method="post" id="Form" action="' . $_SERVER['PHP_SELF'] . '?' . SID . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; Modified: trunk/GLAccountCSV.php =================================================================== --- trunk/GLAccountCSV.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/GLAccountCSV.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -16,7 +16,7 @@ echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('General Ledger Account Inquiry') . '" alt="" />' . ' ' . _('General Ledger Account Report') . '</p>'; -echo '<div class="page_help_text">' . _('Use the keyboard Shift key to select multiple accounts and periods') . '</div><br>'; +echo '<div class="page_help_text">' . _('Use the keyboard Shift key to select multiple accounts and periods') . '</div><br />'; echo '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; @@ -258,7 +258,7 @@ } /*end for each SelectedAccount */ fclose($fp); - echo '<p><a href="' . $FileName . '">' . _('click here') . '</a> ' . _('to view the file') . '<br>'; + echo '<p><a href="' . $FileName . '">' . _('click here') . '</a> ' . _('to view the file') . '<br />'; } /* end of if CreateCSV button hit */ include('includes/footer.inc'); Modified: trunk/GLAccountInquiry.php =================================================================== --- trunk/GLAccountInquiry.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/GLAccountInquiry.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -23,7 +23,7 @@ echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('General Ledger Account Inquiry') . '" alt="" />' . ' ' . _('General Ledger Account Inquiry') . '</p>'; -echo '<div class="page_help_text">' . _('Use the keyboard Shift key to select multiple periods') . '</div><br>'; +echo '<div class="page_help_text">' . _('Use the keyboard Shift key to select multiple periods') . '</div><br />'; echo '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; @@ -145,7 +145,7 @@ $ErrMsg = _('The transactions for account') . ' ' . $SelectedAccount . ' ' . _('could not be retrieved because') ; $TransResult = DB_query($sql,$db,$ErrMsg); - echo '<br><table class=selection>'; + echo '<br /><table class=selection>'; echo '<tr><th colspan=8><b>' ._('Transactions for account').' '.$SelectedAccount. ' - '. $SelectedAccountName.'</b></th></tr>'; $TableHeader = '<tr> @@ -233,7 +233,7 @@ <td colspan=2></td> </tr>'; } - $IntegrityReport .= '<br>' . _('Period') . ': ' . $PeriodNo . _('Account movement per transaction') . ': ' . number_format($PeriodTotal,2) . ' ' . _('Movement per ChartDetails record') . ': ' . number_format($ChartDetailRow['actual'],2) . ' ' . _('Period difference') . ': ' . number_format($PeriodTotal -$ChartDetailRow['actual'],3); + $IntegrityReport .= '<br />' . _('Period') . ': ' . $PeriodNo . _('Account movement per transaction') . ': ' . number_format($PeriodTotal,2) . ' ' . _('Movement per ChartDetails record') . ': ' . number_format($ChartDetailRow['actual'],2) . ' ' . _('Period difference') . ': ' . number_format($PeriodTotal -$ChartDetailRow['actual'],3); if (ABS($PeriodTotal -$ChartDetailRow['actual'])>0.01){ $ShowIntegrityReport = True; Modified: trunk/GLAccountReport.php =================================================================== --- trunk/GLAccountReport.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/GLAccountReport.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -226,7 +226,7 @@ $title = _('Print GL Accounts Report Error'); include('includes/header.inc'); prnMsg (_('There were no accounts to print out'),'error'); - echo "<br><a href='$rootpath/index.php?" . SID . "'>" . _('Back to the menu') . '</a>'; + echo "<br /><a href='$rootpath/index.php?" . SID . "'>" . _('Back to the menu') . '</a>'; include('includes/footer.inc'); exit; } else { @@ -251,7 +251,7 @@ echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/transactions.png" title="' . _('General Ledger Account Inquiry') . '" alt="" />' . ' ' . _('General Ledger Account Report') . '</p>'; - echo '<div class="page_help_text">' . _('Use the keyboard Shift key to select multiple accounts and periods') . '</div><br>'; + echo '<div class="page_help_text">' . _('Use the keyboard Shift key to select multiple accounts and periods') . '</div><br />'; echo "<form method='POST' action=" . $_SERVER['PHP_SELF'] . '?' . SID . '>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; Modified: trunk/GLAccounts.php =================================================================== --- trunk/GLAccounts.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/GLAccounts.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -77,7 +77,7 @@ if ($myrow[0]>0) { $CancelDelete = 1; prnMsg(_('Cannot delete this account because chart details have been created using this account and at least one period has postings to it'),'warn'); - echo '<br>' . _('There are') . ' ' . $myrow[0] . ' ' . _('chart details that require this account code'); + echo '<br />' . _('There are') . ' ' . $myrow[0] . ' ' . _('chart details that require this account code'); } else { // PREVENT DELETES IF DEPENDENT RECORDS IN 'GLTrans' @@ -91,7 +91,7 @@ if ($myrow[0]>0) { $CancelDelete = 1; prnMsg( _('Cannot delete this account because transactions have been created using this account'),'warn'); - echo '<br>' . _('There are') . ' ' . $myrow[0] . ' ' . _('transactions that require this account code'); + echo '<br />' . _('There are') . ' ' . $myrow[0] . ' ' . _('transactions that require this account code'); } else { //PREVENT DELETES IF Company default accounts set up to this account @@ -255,7 +255,7 @@ echo '</select></td></tr></table>'; - echo '<br><div class="centre"><input type="Submit" name="submit" value="'. _('Enter Information') . '"></div>'; + echo '<br /><div class="centre"><input type="Submit" name="submit" value="'. _('Enter Information') . '"></div>'; echo '</form>'; @@ -281,7 +281,7 @@ $result = DB_query($sql,$db,$ErrMsg); - echo '<br><table class=selection>'; + echo '<br /><table class=selection>'; echo '<tr> <th>' . _('Account Code') . '</th> <th>' . _('Account Name') . '</th> Modified: trunk/GLBalanceSheet.php =================================================================== --- trunk/GLBalanceSheet.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/GLBalanceSheet.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -20,8 +20,8 @@ echo '<div class="centre"><p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" />' . ' ' . _('Balance Sheet') . '</p></div>'; echo '<div class="page_help_text">' - . _('Balance Sheet (or statement of financial position) is a summary of balances. Assets, liabilities and ownership equity are listed as of a specific date, such as the end of its financial year. Of the four basic financial statements, the balance sheet is the only statement which applies to a single point in time.') . '<br>' - . _('The balance sheet has three parts: assets, liabilities and ownership equity. The main categories of assets are listed first and are followed by the liabilities. The difference between the assets and the liabilities is known as equity or the net assets or the net worth or capital of the company and according to the accounting equation, net worth must equal assets minus liabilities.') . '<br>' + . _('Balance Sheet (or statement of financial position) is a summary of balances. Assets, liabilities and ownership equity are listed as of a specific date, such as the end of its financial year. Of the four basic financial statements, the balance sheet is the only statement which applies to a single point in time.') . '<br />' + . _('The balance sheet has three parts: assets, liabilities and ownership equity. The main categories of assets are listed first and are followed by the liabilities. The difference between the assets and the liabilities is known as equity or the net assets or the net worth or capital of the company and according to the accounting equation, net worth must equal assets minus liabilities.') . '<br />' . _('webERP is an "accrual" based system (not a "cash based" system). Accrual systems include items when they are invoiced to the customer, and when expenses are owed based on the supplier invoice date.') . '</div>'; echo '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">'; @@ -54,8 +54,8 @@ echo '</table>'; - echo '<br><div class="centre"><input type=submit Name="ShowBalanceSheet" Value="'._('Show on Screen (HTML)').'"></div>'; - echo '<br><div class="centre"><input type=submit Name="PrintPDF" Value="'._('Produce PDF Report').'"></div>'; + echo '<br /><div class="centre"><input type=submit Name="ShowBalanceSheet" Value="'._('Show on Screen (HTML)').'"></div>'; + echo '<br /><div class="centre"><input type=submit Name="PrintPDF" Value="'._('Produce PDF Report').'"></div>'; /*Now do the posting while the user is thinking about the period to select */ include ('includes/GLPostings.inc'); @@ -90,9 +90,9 @@ $title = _('Balance Sheet') . ' - ' . _('Problem Report') . '....'; include('includes/header.inc'); prnMsg( _('The accumulated profits brought forward could not be calculated by the SQL because') . ' - ' . DB_error_msg($db) ); - echo '<br><a href="' .$rootpath .'/index.php?' . SID . '">'. _('Back to the menu'). '</a>'; + echo '<br /><a href="' .$rootpath .'/index.php?' . SID . '">'. _('Back to the menu'). '</a>'; if ($debug==1){ - echo '<br>'. $SQL; + echo '<br />'. $SQL; } include('includes/footer.inc'); exit; @@ -128,9 +128,9 @@ $title = _('Balance Sheet') . ' - ' . _('Problem Report') . '....'; include('includes/header.inc'); prnMsg( _('No general ledger accounts were returned by the SQL because') . ' - ' . DB_error_msg($db) ); - echo '<br><a href="' .$rootpath .'/index.php?' . SID . '">'. _('Back to the menu'). '</a>'; + echo '<br /><a href="' .$rootpath .'/index.php?' . SID . '">'. _('Back to the menu'). '</a>'; if ($debug==1){ - echo '<br>'. $SQL; + echo '<br />'. $SQL; } include('includes/footer.inc'); exit; @@ -291,7 +291,7 @@ $title = _('Print Balance Sheet Error'); include('includes/header.inc'); prnMsg( _('There were no entries to print out for the selections specified') ); - echo '<br><a href="'. $rootpath.'/index.php?' . SID . '">'. _('Back to the menu'). '</a>'; + echo '<br /><a href="'. $rootpath.'/index.php?' . SID . '">'. _('Back to the menu'). '</a>'; include('includes/footer.inc'); exit; } else { @@ -658,7 +658,7 @@ </tr>'; echo '</table>'; - echo '<br><div class="centre"><input type=submit Name="SelectADifferentPeriod" Value="'._('Select A Different Balance Date').'"></div>'; + echo '<br /><div class="centre"><input type=submit Name="SelectADifferentPeriod" Value="'._('Select A Different Balance Date').'"></div>'; } echo '</form>'; Modified: trunk/GLTagProfit_Loss.php =================================================================== --- trunk/GLTagProfit_Loss.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/GLTagProfit_Loss.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -104,10 +104,10 @@ echo '<option selected VALUE="Detailed">'._('All Accounts') . '</option>'; echo '</select></td></tr>'; - echo '</table><br>'; + echo '</table><br />'; - echo "<div class='centre'><input type=submit Name='ShowPL' Value='"._('Show Statement of Income and Expenditure')."'><br>"; - echo "<br><input type=submit Name='PrintPDF' Value='"._('PrintPDF')."'></div>"; + echo "<div class='centre'><input type=submit Name='ShowPL' Value='"._('Show Statement of Income and Expenditure')."'><br />"; + echo "<br /><input type=submit Name='PrintPDF' Value='"._('PrintPDF')."'></div>"; /*Now do the posting while the user is thinking about the period to select */ @@ -172,9 +172,9 @@ $title = _('Income and Expenditure') . ' - ' . _('Problem Report') . '....'; include('includes/header.inc'); prnMsg( _('No general ledger accounts were returned by the SQL because') . ' - ' . DB_error_msg($db) ); - echo '<br><a href="' .$rootpath .'/index.php?' . SID . '">'. _('Back to the menu'). '</a>'; + echo '<br /><a href="' .$rootpath .'/index.php?' . SID . '">'. _('Back to the menu'). '</a>'; if ($debug == 1){ - echo '<br>'. $SQL; + echo '<br />'. $SQL; } include('includes/footer.inc'); exit; @@ -184,7 +184,7 @@ include('includes/header.inc'); echo '<p>'; prnMsg( _('There were no entries to print out for the selections specified'),'info'); - echo '<br><a href="'. $rootpath.'/index.php">'. _('Back to the menu'). '</a>'; + echo '<br /><a href="'. $rootpath.'/index.php">'. _('Back to the menu'). '</a>'; include('includes/footer.inc'); exit; } Modified: trunk/GLTrialBalance.php =================================================================== --- trunk/GLTrialBalance.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/GLTrialBalance.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -92,7 +92,7 @@ echo '<option value ="' . $myrow['periodno'] . '">' . MonthAndYearFromSQLDate($myrow['lastdate_in_period']) . '</option>'; } } - echo '</select></td></tr></table><br>'; + echo '</select></td></tr></table><br />'; echo '<div class="centre"><input type=submit Name="ShowTB" Value="' . _('Show Trial Balance') .'">'; echo '<input type=submit Name="PrintPDF" Value="'._('PrintPDF').'"></div>'; @@ -151,9 +151,9 @@ $title = _('Trial Balance') . ' - ' . _('Problem Report') . '....'; include('includes/header.inc'); prnMsg( _('No general ledger accounts were returned by the SQL because') . ' - ' . DB_error_msg($db) ); - echo '<br><a href="' .$rootpath .'/index.php?' . SID . '">'. _('Back to the menu'). '</a>'; + echo '<br /><a href="' .$rootpath .'/index.php?' . SID . '">'. _('Back to the menu'). '</a>'; if ($debug==1){ - echo '<br>'. $SQL; + echo '<br />'. $SQL; } include('includes/footer.inc'); exit; @@ -163,7 +163,7 @@ include('includes/header.inc'); echo '<p>'; prnMsg( _('There were no entries to print out for the selections specified') ); - echo '<br><a href="'. $rootpath.'/index.php?' . SID . '">'. _('Back to the menu'). '</a>'; + echo '<br /><a href="'. $rootpath.'/index.php?' . SID . '">'. _('Back to the menu'). '</a>'; include('includes/footer.inc'); exit; } @@ -710,7 +710,7 @@ number_format($CheckPeriodActual,2), number_format($CheckPeriodBudget,2)); - echo '</table><br>'; + echo '</table><br />'; echo '<div class="centre"><input type=submit Name="SelectADifferentPeriod" Value="' . _('Select A Different Period') . '"></div>'; } echo '</form>'; Modified: trunk/GeocodeSetup.php =================================================================== --- trunk/GeocodeSetup.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/GeocodeSetup.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -137,7 +137,7 @@ '<a href="http://code.google.com/apis/maps/signup.html" target="_blank"> http://code.google.com/apis/maps/signup.html</a></b>'; echo '<div class="centre"><p>'. _('Find the lat/long for your map center point at ') . '<a href="http://www.batchgeocode.com/lookup/" target="_blank">http://www.batchgeocode.com/lookup/</a></b>'; - echo '<p>'. _('Set the maps centre point using the Center Longitude and Center Latitude. Set the maps screen size using the height and width in pixels (px)').'</div><br>'; + echo '<p>'. _('Set the maps centre point using the Center Longitude and Center Latitude. Set the maps screen size using the height and width in pixels (px)').'</div><br />'; echo '<table border=1>'; echo '<tr> @@ -189,7 +189,7 @@ } //end of ifs and buts! if (isset($SelectedParam)) { - echo '<div class="centre"><br><a href="' . $_SERVER['PHP_SELF'] . '">' . _('Show Defined Geocode Param Codes') . '</a><br></div>'; + echo '<div class="centre"><br /><a href="' . $_SERVER['PHP_SELF'] . '">' . _('Show Defined Geocode Param Codes') . '</a><br /></div>'; } if (!isset($_GET['delete'])) { @@ -243,7 +243,7 @@ if (!isset($_POST['geocode_key'])) { $_POST['geocode_key'] = ''; } - echo '<br><tr> + echo '<br /><tr> <td>'. _('Geocode Key') .':</td> <td><input ' . (in_array('geocode_key',$Errors) ? 'class="inputerror"' : '' ) . ' tabindex=2 type="text" name="geocode_key" VALUE="'. $_POST['geocode_key'] .'" size=28 maxlength=300> @@ -264,13 +264,13 @@ <tr><td>'. _('Geocode Host') . '</td> <td><input tabindex=7 type="text" name="map_host" VALUE="'. $_POST['map_host'] .'" size=20 maxlength=300></td></tr> </table> - <div class="centre"><input tabindex=4 type="Submit" name="submit" value="' . _('Enter Information') . '"</div><br><br> + <div class="centre"><input tabindex=4 type="Submit" name="submit" value="' . _('Enter Information') . '"</div><br /><br /> </form>'; echo '<div class="page_help_text">' . _('When ready, click on the link below to run the GeoCode process. This will Geocode all Branches and Suppliers. This may take some time. Errors will be returned to the screen.') . '</p>'; -echo '<p>' . _('Suppliers and Customer Branches are geocoded when being entered/updated. You can rerun the geocode process from this screen at any time.') . '</p></div><br>'; +echo '<p>' . _('Suppliers and Customer Branches are geocoded when being entered/updated. You can rerun the geocode process from this screen at any time.') . '</p></div><br />'; -echo '<div class="centre"><a href="' . $rootpath . '/geocode.php">' . _('Run GeoCode process (may take a long time)') . '</a></p><br>'; -echo '<a href="' . $rootpath . '/geo_displaymap_customers.php">' . _('Display Map of Customer Branches') . '</a><br>'; +echo '<div class="centre"><a href="' . $rootpath . '/geocode.php">' . _('Run GeoCode process (may take a long time)') . '</a></p><br />'; +echo '<a href="' . $rootpath . '/geo_displaymap_customers.php">' . _('Display Map of Customer Branches') . '</a><br />'; echo '<a href="' . $rootpath . '/geo_displaymap_suppliers.php">' . _('Display Map of Suppliers') . '</a></div>'; } //end if record deleted no point displaying form to add record include('includes/footer.inc'); Modified: trunk/GetStockImage.php =================================================================== --- trunk/GetStockImage.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/GetStockImage.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -151,7 +151,7 @@ $title = _('Stock Image Retrieval ....'); include('includes/header.inc'); prnMsg( _('The Image could not be retrieved because it does not exist'), 'error'); - echo '<br><a href="' .$rootpath .'/index.php?' . SID . '">'. _('Back to the menu'). '</a>'; + echo '<br /><a href="' .$rootpath .'/index.php?' . SID . '">'. _('Back to the menu'). '</a>'; include('includes/footer.inc'); exit; } @@ -160,9 +160,9 @@ $title = _('Stock Image Retrieval ....'); include('includes/header.inc'); echo 'The image ' . $filename . ' using functype ' . $functype - . '<br> The tmpfilename = ' . $tmpfilename . '<br> The temppath = ' . $filepath . '<br>The stockid = ' . $stockid . '<br> filepath . stockid .jpg = ' . $filepath . $stockid .'.jpg<br> The result of file_exists($filepath . $stockid .jpg) =' . file_exists($filepath . $stockid .'.jpg') - . '<br>filepath = ' . $filepath - . '<br>rootpath = ' . $rootpath; + . '<br /> The tmpfilename = ' . $tmpfilename . '<br /> The temppath = ' . $filepath . '<br />The stockid = ' . $stockid . '<br /> filepath . stockid .jpg = ' . $filepath . $stockid .'.jpg<br /> The result of file_exists($filepath . $stockid .jpg) =' . file_exists($filepath . $stockid .'.jpg') + . '<br />filepath = ' . $filepath + . '<br />rootpath = ' . $rootpath; include('includes/footer.inc'); exit; */ Modified: trunk/GoodsReceivedControlled.php =================================================================== --- trunk/GoodsReceivedControlled.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/GoodsReceivedControlled.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -24,7 +24,7 @@ if (!isset($_SESSION['PO'.$identifier])) { /* This page can only be called with a purchase order number for receiving*/ echo '<div class="centre"><a href="' . $rootpath . '/PO_SelectOSPurchOrder.php">'. - _('Select a purchase order to receive'). '</a></div><br>'; + _('Select a purchase order to receive'). '</a></div><br />'; prnMsg( _('This page can only be opened if a purchase order and line item has been selected') . '. ' . _('Please do that first'),'error'); include('includes/footer.inc'); exit; @@ -59,9 +59,9 @@ ********************************************/ echo '<div class="centre">'; -echo '<br><a href="'.$rootpath.'/GoodsReceived.php?identifier=' .$identifier . '">'. _('Back To Purchase Order'). ' # '. $_SESSION['PO'.$identifier]->OrderNo . '</a>'; +echo '<br /><a href="'.$rootpath.'/GoodsReceived.php?identifier=' .$identifier . '">'. _('Back To Purchase Order'). ' # '. $_SESSION['PO'.$identifier]->OrderNo . '</a>'; -echo '<br><font size=2><b>'. _('Receive controlled item'). ' '. $LineItem->StockID . ' - ' . $LineItem->ItemDescription . +echo '<br /><font size=2><b>'. _('Receive controlled item'). ' '. $LineItem->StockID . ' - ' . $LineItem->ItemDescription . ' ' . _('on order') . ' ' . $_SESSION['PO'.$identifier]->OrderNo . ' ' . _('from') . ' ' . $_SESSION['PO'.$identifier]->SupplierName . '</b></font></div>'; /** vars needed by InputSerialItem : **/ @@ -72,7 +72,7 @@ $ShowExisting = false; include ('includes/InputSerialItems.php'); -//echo '<br><input type=submit name=\'AddBatches\' VALUE=\'Enter\'><br>'; +//echo '<br /><input type=submit name=\'AddBatches\' VALUE=\'Enter\'><br />'; /*TotalQuantity set inside this include file from the sum of the bundles of the item selected for dispatch */ Modified: trunk/InventoryPlanningPrefSupplier.php =================================================================== --- trunk/InventoryPlanningPrefSupplier.php 2011-07-02 22:51:40 UTC (rev 4617) +++ trunk/InventoryPlanningPrefSupplier.php 2011-07-02 23:04:59 UTC (rev 4618) @@ -208,9 +208,9 @@ $title = _('Inventory Planning') . ' - ' . _('Problem Report') . '....'; include('includes/header.inc'); prnMsg(_('The inventory quantities could not be retrieved by the SQL because') . ' - ' . DB_error_msg($db),'error'); - echo "<br><a href='" .$rootpath .'/index.php?' . SID . "'>" . _('Back to the menu') . '</a>'; + echo "<br /><a href='" .$rootpath .'/index.php?' . SID . "'>" . _('Back to the menu') . '</a>'; if ($debug==1){ - echo "<br>$SQL"; + echo "<br />$SQL"; } include('includes/footer.inc'); exit; @@ -276,9 +276,9 @@ $title = _('Inventory Planning') . ' - ' . _('Problem Report') . '....'; include('includes/header.inc'); prnMsg( _('The sales quantities could not be retrieved by the SQL because') . ' - ' . DB_error_msg($db),'error'); - echo "<br><a href='" .$rootpath .'/index.php?' . SID . "'>" . _('Back to the menu') . '</a>'; + echo "<br /><a href='" .$rootpath .'/index.php?' . SID . "'>" . _('Back to the menu') . '</a>'; if ($debug==1){ - echo "<br>$SQL"; + echo "<br />$SQL"; } include('includes/footer.... [truncated message content] |