我们使用Exact Online作为ERP系统按序列号运送物品。我似乎无法找到列名来检索序列号和相关发票的货件清单。
答案 0 :(得分:0)
要检索销售发票清单,请使用以下查询:
public class Bullet
{
//width = 6px, height = 8px
private BufferedImage bullet = null;
private BufferedImage img2 = null;
private double x, y;
private double angle;
//Creates an instance of timer since each bullet is supposed to only last 1.5 seconds
private Stopwatch timer = new Stopwatch();
public Bullet(int x, int y, double angle)
{
//Get the image of the normal bullet
try {
bullet = ImageIO.read(getClass().getResource("/Bullet.png"));
} catch (IOException e) {
System.err.println("Bullet.png could not be found");
}
//Sets the position and direction of the bullet relative to the spacecraft when it is created
timer.start();
this.x=x;
this.y=y;
this.angle=angle+90;
}
public void paint(Graphics2D g2d)
{
//Since the bullet sprite is not always oriented in the direction of the shot, orient it properly
angle-=90;
double rotationRequired = Math.toRadians(angle);
double locationX = bullet.getWidth() / 2;
double locationY = bullet.getHeight() / 2;
AffineTransform tx = AffineTransform.getRotateInstance(rotationRequired, locationX, locationY);
AffineTransformOp op = new AffineTransformOp(tx, AffineTransformOp.TYPE_BILINEAR);
// Drawing the rotated image at the required drawing locations
int x = (int) this.x;
int y = (int) this.y;
//g.drawImage(img2, x - 150, y - 150, null);
g2d.drawImage(op.filter(bullet, null), x, y, null);
//Change the angle back to the original for the bullet to travel in the correct direction
angle+=90;
}
public void move()
{
//Move the projectile in the direction it is facing
x+=-5* Math.cos(Math.toRadians(angle));
y+=-5* Math.sin(Math.toRadians(angle));
}
//Returns how long the bullet has been in existence
public long getTime()
{
return timer.getElapsedTime();
}
public int getX()//returns the x position of the bullet for collision detection
{
return (int)x;
}
public int getY()//returns the y position of the bullet for collision detection
{
return (int)y;
}
public int getWidth()//returns the width of the sprite for collision detection
{
return bullet.getWidth();
}
public int getHeight()//returns the height of the sprite for collision detection
{
return bullet.getHeight();
}
public int getAngle()//returns the angle of the bullet
{
return (int)angle;
}
}
请注意,select invoicenumber
, date
, itemcode
, quantity
, amountdc
, 0 listprice /* requires extra sql */
, 0 discountpct /* requires extra sql */
, '' serialnumbers /* use left outer on goodsdeliverylineserialnumbers */
, description
, yourref
, ordernumber
from exactonlinerest..transactionlines
where financialyear = ${financial_year}
and financialperiod = ${financial_period}
and journalcode in (select code from exactonlinerest..journals where glaccounttype=20)
order
by date
和${financial_year}
必须提前定义,否则用户界面工具会要求您提供值。
由于发货可以在同一时间,更晚或更早发生,因此您可以使用另一个可以与左外连接一起加入上一个查询的查询:
${financial_period}