#include <string.h>
#include <QMessageBox>
#include <QSqlError>
#include <QVariant>
#include "format.h"
#include "xsqlquery.h"
Macros | |
#define | COSTEXTRASCALE 2 |
#define | DEBUG false |
#define | MONEYSCALE 2 |
#define | PERCENTSCALE 2 |
#define | PURCHPRICEEXTRASCALE 2 |
#define | QTYPERSCALE 6 |
#define | QTYSCALE 2 |
#define | SALESPRICEEXTRASCALE 2 |
#define | UOMRATIOSCALE 6 |
#define | WEIGHTSCALE 2 |
Functions | |
int | decimalPlaces (QString pName) |
QString | formatCost (double value, int) |
QString | formatExtPrice (double value, int) |
QString | formatMoney (double value, int, int extraDecimals) |
QString | formatNumber (double value, int decimals) |
QString | formatPercent (double value) |
QString | formatPurchPrice (double value, int) |
QString | formatQty (double value) |
QString | formatQtyPer (double value) |
QString | formatSalesPrice (double value, int) |
QString | formatUOMRatio (double value) |
QString | formatWeight (double value) |
QColor | namedColor (QString pName) |
#define COSTEXTRASCALE 2 |
#define DEBUG false |
#define MONEYSCALE 2 |
#define PERCENTSCALE 2 |
#define PURCHPRICEEXTRASCALE 2 |
#define QTYPERSCALE 6 |
#define QTYSCALE 2 |
#define SALESPRICEEXTRASCALE 2 |
#define UOMRATIOSCALE 6 |
#define WEIGHTSCALE 2 |
int decimalPlaces | ( | QString | pName | ) |
QString formatCost | ( | double | value, |
int | |||
) |
QString formatExtPrice | ( | double | value, |
int | |||
) |
QString formatMoney | ( | double | value, |
int | , | ||
int | extraDecimals | ||
) |
QString formatNumber | ( | double | value, |
int | decimals | ||
) |
QString formatPercent | ( | double | value | ) |
QString formatPurchPrice | ( | double | value, |
int | |||
) |
QString formatQty | ( | double | value | ) |
QString formatQtyPer | ( | double | value | ) |
QString formatSalesPrice | ( | double | value, |
int | |||
) |
QString formatUOMRatio | ( | double | value | ) |
QString formatWeight | ( | double | value | ) |
QColor namedColor | ( | QString | pName | ) |
Generated on Fri Oct 7 2016 15:41:33 | xTuple ERP Programmer Reference, Version 4.6.0 | 1.8.10 |